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

Element was found by backup search only!

3 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Brindha
Top achievements
Rank 1
Brindha asked on 17 Jan 2013, 02:15 PM
My test step passed. But i see the below message in the test log. 
"Element was found by backup search only!  We recommend editing the element to correct the primary find expression."
Can you please help me ? What i should do ?

3 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 17 Jan 2013, 03:06 PM
Hi Brindha,

This means that your find logic is not absolutely correct. Test Studio is able to locate the right element by a backup search not by the primary find logic.

It seems you are using an older version since it's disabled by default in the latest version. In order to disable the backup search in the current version you are using go to step properties and set the UseBackupSearch property to false, as shown in the screenshot provided. Now your test will fail with "Element not found" exception. So you need to change the find logic.

In older versions if the element is not found by the primary find expression, you will get the following message in the log, but the test will PASS:

"Element was found by backup search only! We recommend editing the element to correct the primary find expression."

In 2012.2.1204.0 if the element is not found by the primary find expression, you will get the same message in the log, but the test will FAIL.

Let me know if this helps.

All the best,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
MarketSharp User
Top achievements
Rank 1
answered on 03 Apr 2013, 04:11 PM
I am running the new version, 2012.2.1425.0.  I am trying to change the Use backup search property to true.  I don't have this option for my step??  How do I turn this feature back on?

Thanks!  Sarah
0
Boyan Boev
Telerik team
answered on 04 Apr 2013, 08:34 AM
Hi Sarah,

I am sorry but you cannot turn on the backup search.

We took a long hard look and concluded it was causing more harm than good. As a result we have made a firm decision it will never come back. It's important to create/update tests to work properly despite dynamically created html pages.  

Please don't hesitate if you have additional questions. 

Greetings,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Brindha
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
MarketSharp User
Top achievements
Rank 1
Share this question
or