This is a migrated thread and some comments may be shown as answers.
Primary Target changing
4 Answers 11 Views
This is a migrated thread and some comments may be shown as answers.
Pascal
Top achievements
Rank 1
Pascal asked on 24 Nov 2015, 04:52 PM

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.

4 Answers, 1 is accepted

Sort by
0
Sailaja
Top achievements
Rank 1
answered on 24 Nov 2015, 05:31 PM

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

 

 

0
Boyan Boev
Telerik team
answered on 27 Nov 2015, 09:19 AM
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!
0
Pascal
Top achievements
Rank 1
answered on 27 Nov 2015, 12:21 PM
It worked! Thank you Sailaja :)
0
Boyan Boev
Telerik team
answered on 27 Nov 2015, 02:57 PM
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!
Asked by
Pascal
Top achievements
Rank 1
Answers by
Sailaja
Top achievements
Rank 1
Boyan Boev
Telerik team
Pascal
Top achievements
Rank 1
Share this question
or