Data driven find logic in test as step

2 posts, 0 answers
  1. te
    te avatar
    1 posts
    Member since:
    Mar 2019

    Posted 16 Apr Link to this post

    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?
  2. Elena
    Admin
    Elena avatar
    1153 posts

    Posted 18 Apr Link to this post

    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!
Back to Top