Primary Target changing

5 posts, 0 answers
  1. Pascal
    Pascal avatar
    2 posts
    Member since:
    Oct 2015

    Posted 24 Nov 2015 Link to this post

    I have a problem with our automation and hopefully, you can help me or direct me to the right person (or forum which I did not found).

    I have a simple test that navigate to our web portal and land on a page where all accounts are listed in a datatable (see Step 1).

    The next step is to search for a specific account (using the search bar) and verify the Company Name is the right one (see Step 2).

    My problem is occurring in this last step where I verify that the name of the company (should be QA Automation EGW here) is correct.
    The test was running yesterday but when I tried it this morning, the last step is failing.
    For some reason, it seems that the name of the PrimaryTarget keep changing. Yesterday, it was named QAAutomationSpan1 (see Step 3) while today, its name is QAAutomationSpan.

    We keep having that specific problem in most of our tests.
    Is there a way to workaround this behavior? Any idea if this comes from Telerik Test Studio or rather from our portal?

    Thanks a lot for your help.

  2. Sailaja
    Sailaja avatar
    7 posts
    Member since:
    Dec 2014

    Posted 24 Nov 2015 Link to this post

    Telerik Test Studio identify the element based on the identification logic defined in Project Settings.

    I suspect you are facing this problem because QAAutomationSpan element identification logic contains some random value for one of its attribute.  You can observe this by seeing the element identification logic from properties tab or by right clicking on the element and choose Edit Element.

    You can modify the identification logic for your QAAutomationSpan element from Elements tab.

    Ensure that in your browser you have reached till step 2 screenshot attached in your mail.

    In Test Studio,

    1. Open Elements tab
    2. Right click on QAAutomationSpan element and select 'Edit in Live' option.
    3. In Find Element dialog, correct the identification logic either by adding unique identifier from suggestions(left pane) or by removing random values from Find Setting (Right pane) and then click on Validate option. Once you ensure that your identification logic is correct. Click on Save button.

    Once this is modified you can remove other QAAutomationSpan1 element from Elements tab.

     Hope this information helps.

    Regards,

    Sailaja

     

     

  3. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 27 Nov 2015 Link to this post

    Hi,

    @Sailaja, thank you for sharing your knowledge and for helping other.

    @Pascal, did the Sailaja suggestions help? Do you need additional assistance?

    Hope to hear from you soon.


    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  4. Pascal
    Pascal avatar
    2 posts
    Member since:
    Oct 2015

    Posted 27 Nov 2015 in reply to Boyan Boev Link to this post

    It worked! Thank you Sailaja :)
  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 27 Nov 2015 Link to this post

    Hi Pascal,

    Glad to hear that!

    If you need further assistance please let us know.

    Regards,
    Boyan Boev
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top