Multi-level Data Driven Testing

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    1 posts
    Member since:
    Feb 2012

    Posted 10 May 2012 Link to this post

    I was reading the documentation on data driven testing and I had a few questions in regards to data driven tests on multiple levels.

    The User Guide gave an example of a data-bound test executing a test as step where the test inherited the parent's data. Is this possible to do when the parent test is using local data, too or does this only work with data bound from elsewhere?

    In the case of a data-bound test calling another data-bound test, is it possible for the child test to still use values from the parent test?

    Not quite related to data-bound testing, can a child test use values extracted in a parent test using the extract feature?

    It doesn't matter if it has to be coded or not, I just want to know if it's possible.

    Thanks in advance
  2. Anthony
    Anthony avatar
    19 posts

    Posted 10 May 2012 Link to this post

    Hello Samuel,

    1. Yes, the InheritParentDataSource Test Property also works with Local Data.

    2. No, a test can only be bound to one data source at a time. You can, however, access the parent's data source in code, set an extracted variable in code, and use that in the child test (either by data binding it to a standard action/verification step, or in code).

    3. Yes, see here for an example.

    Kind regards,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top