Using a data driven data source for an inner test case
Posted: Thu Jun 19, 2014 10:53 pm
Hello,
I am a tester with virtually no knowledge of code. I have some developers on my team but the less they have to support me the better. Ideally, the hope is the solution for the following issue can be done without writing code.
Using:
Operating System: Windows 7 Professional Service Pack 1
Ranorex Version: 5.0.1.17706
Browser Version: IE10 v10.0.9200.16921
In this screen shot you can see the structure of the test case I am creating (not finished yet): Here is what we plan to do.
1) Create a data source for the modules at the top of the list
2) Create a data source (or sources if needed) for the modules in the inner test case at the bottom of the list.
3) As the test case iterates through the rows of the first data source we want it then to iterate through a data source specific to the row that is being used in the other data source.
Another explanation:
What we are creating here is media items that have varying numbers of language elements assigned to them. Some of the media will have 6 languages while some have 3.
So the flow would be:
1) To create Movie 1 the test case runs through the first steps using the first data source to populate the data (we have to also skip empty values but there is another post from someone else about that we can reference).
2) When the test case gets to the inner test case we want to enter values from another data source based on the Parent title that was entered in the surrounding test case.
I'm thinking that we have 2 options here:
1) Make multiple Data Sources for the inner test case
2) Make one data source for the inner test case that only use rows that match the outer test cases current iteration
For Option 1 I think we would have this: In that example the outer test case runs the test for Movie 1, then when it gets to languages it knows to use the Movie 1 language data source. When it iterates through Movie 2 and gets to languages it then knows to use the Movie 2 language data source.
For Option 2 I think we would have this: In that example the outer test case runs the test for Movie 1, then when it gets to languages it knows to use only the rows in the second data source that match the parent title being entered by the first source for Movie 1. When it iterates through Movie 2 and gets to languages it knows to use only the rows in the second data source that match the parent title being entered by the first source for Movie 2.
Which is the best solution? Can I do this with minimum or no code?
I have also attached a SnapShot of the page this test is automating.
I am a tester with virtually no knowledge of code. I have some developers on my team but the less they have to support me the better. Ideally, the hope is the solution for the following issue can be done without writing code.
Using:
Operating System: Windows 7 Professional Service Pack 1
Ranorex Version: 5.0.1.17706
Browser Version: IE10 v10.0.9200.16921
In this screen shot you can see the structure of the test case I am creating (not finished yet): Here is what we plan to do.
1) Create a data source for the modules at the top of the list
2) Create a data source (or sources if needed) for the modules in the inner test case at the bottom of the list.
3) As the test case iterates through the rows of the first data source we want it then to iterate through a data source specific to the row that is being used in the other data source.
Another explanation:
What we are creating here is media items that have varying numbers of language elements assigned to them. Some of the media will have 6 languages while some have 3.
So the flow would be:
1) To create Movie 1 the test case runs through the first steps using the first data source to populate the data (we have to also skip empty values but there is another post from someone else about that we can reference).
2) When the test case gets to the inner test case we want to enter values from another data source based on the Parent title that was entered in the surrounding test case.
I'm thinking that we have 2 options here:
1) Make multiple Data Sources for the inner test case
2) Make one data source for the inner test case that only use rows that match the outer test cases current iteration
For Option 1 I think we would have this: In that example the outer test case runs the test for Movie 1, then when it gets to languages it knows to use the Movie 1 language data source. When it iterates through Movie 2 and gets to languages it then knows to use the Movie 2 language data source.
For Option 2 I think we would have this: In that example the outer test case runs the test for Movie 1, then when it gets to languages it knows to use only the rows in the second data source that match the parent title being entered by the first source for Movie 1. When it iterates through Movie 2 and gets to languages it knows to use only the rows in the second data source that match the parent title being entered by the first source for Movie 2.
Which is the best solution? Can I do this with minimum or no code?
I have also attached a SnapShot of the page this test is automating.