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

Data Driven Execution Error

1 Answer 48 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
lora
Top achievements
Rank 1
lora asked on 30 Aug 2011, 07:16 PM
I am testing a login process using a data binded Excel spreadsheet with an array of usernames. I have attached my data source and binded it. I have also set the data driven editor to $(column name) for the test step.

I performed EVERY step outlined in your Local Data Driven Test and am still getting the following error:

8/30/2011 2:08:41 PM' - Detected DataDriven Test. Starting data iterations.
'8/30/2011 2:08:41 PM' - [Iteration #1: (Login=cindy.thomas)]
Overall Result: Fail'8/30/2011 2:08:52 PM' - 'Fail' :
1. Set 'ContentPlaceHolder1UsernameTextBoxText' text to '' - DataDriven: [$(Login)]------------------------------------------------------------
Failure Information: ~~~~~~~~~~~~~~~Unable to locate element. Details: Attempting to find [Html] element using Find logic (Html): [id 'Exact' ctl00_ContentPlaceHolder1_UsernameTextBox] AND [tagname 'Exact' input]Unable to locate element. Search failed!

Why am I getting this error?

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 31 Aug 2011, 05:03 AM
Hello Lora,

Looking at the core message of the error:

Unable to locate element. Details: Attempting to find [Html] element using Find logic (Html): [id 'Exact' ctl00_ContentPlaceHolder1_UsernameTextBox] AND [tagname 'Exact' input]Unable to locate element. Search failed!

We can see that the problem actually has nothing to do with the test being data driven. The test was simply unable to locate the needed textbox to be acted on. There are multiple possibilities that can cause this problem. I have outlined some of there in this KB article.

If you're still unable to resolve this problem yourself after following these steps, please export the test results and attach the exported .zip file for us to analyze.

Regards,
Cody
the Telerik team
Vote for Telerik Test Studio at the Annual Automation Honors Voting!
Tags
General Discussions
Asked by
lora
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or