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

Multi-level Data Driven Testing

1 Answer 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 10 May 2012, 08:57 PM

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

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 10 May 2012, 10:04 PM
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,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Samuel
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or