RadButtons and TextBoxes ID changing

4 posts, 0 answers
  1. Piotr
    Piotr avatar
    2 posts
    Member since:
    Jul 2012

    Posted 29 Oct 2012 Link to this post

    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
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 01 Nov 2012 Link to this post

    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
  3. DevCraft banner
  4. Piotr
    Piotr avatar
    2 posts
    Member since:
    Jul 2012

    Posted 05 Nov 2012 Link to this post

    Thank you Plamen, gonna check your tips :)
  5. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 05 Nov 2012 Link to this post

    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
Back to Top