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

Data driven find logic in test as step

1 Answer 60 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
te
Top achievements
Rank 1
te asked on 16 Apr 2019, 11:13 AM
Hi everybody,

I have a "test as step" in my parent test, and it's inheriting the parent data source. The child test is using locator which is data driven. Both child and parent tests are working on the same data, and child test works just fine on its own, but when I run it inside the parent I'm getting exception "The data column was not found".  What seems to be a problem?

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 18 Apr 2019, 12:03 PM
Hello Te,

Since you are using nested files with data sources, you need to verify the child test's properties and if it is set to use the parent test's data or its own. The property to look for is named InheritParentDataSource. 

What I suspect is that the child test is set to use the parent's data, but this data file does not have a column with the necessary data. There are two possible approaches to fix the issue: 
1. Leave the child test to use the parent data and modify the data file to have a column for the child's test bound steps. 
2. Disable the child's test property InheritParentDataSource and leave the two data files as they currently are. 

In addition to the above notes, please have some additional notes on data bound multi-level tests and what behavior to expect from their execution. 

I hope this will be helpful for you. 

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
te
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or