This is a migrated thread and some comments may be shown as answers.

RadButtons and TextBoxes ID changing

3 Answers 20 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Piotr
Top achievements
Rank 1
Piotr asked on 29 Oct 2012, 08:22 AM
Hello,

I've got a problem when executing tests. From time to time IDs of RadButtons and TextBoxes change so all the tests that were based on clicking on that buttons are failed. After each IDs change, I have to edit all tests connected with them.

How to set static IDs for these items, so that Test Studio will always recognize them and they won't be chenged?
or
How to set in the Test Studio, so that it will recognize mentioned buttons/boxes even after it changed IDs?

Thanks in advance
Piotr

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 01 Nov 2012, 11:01 AM
Hi Piotr,

When you are dealing with an application that dynamically generates random ID's like that we recommend the following two options. 
  • Edit the Find Settings for the element so it is located with a static attribute (non-dynamic and unique to that element).
  • Have your developers implement static IDs and rerecord against the element. See here for more information.

 

Kind regards,

Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
0
Piotr
Top achievements
Rank 1
answered on 05 Nov 2012, 07:18 AM
Thank you Plamen, gonna check your tips :)
0
Plamen
Telerik team
answered on 05 Nov 2012, 02:01 PM
Hello Piotr,

Ok, we'll stand by to help out if you're having any trouble getting this to work.

All the best,
Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Piotr
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Piotr
Top achievements
Rank 1
Share this question
or