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

Multilevel datadriven tests

1 Answer 42 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepa
Top achievements
Rank 1
Deepa asked on 30 Dec 2016, 07:11 PM

Hello

Had posted this earlier in the Telerik framework discussion, guess this is the right place!

I am trying to create a multilevel test for entering 100 records in a Client profile table through 5 different pages called in a specific order (each having some 30-40 fields).

Scenario (created a driver script for this) -
1. Login and initialize application
2. Call Test A (parent test - data bound to 100 records in excel)
3. Logout

Steps in Test A
1. Enter data in Page1 and continue to Pg2(Test B1)
2. Enter data in Page2 and continue to Pg3(Test B2)
3. Enter data in Page3 and continue to Pg4(Test B3)
4. Enter data in Page4 and continue to Pg5(Test B4)
5. Enter data in Page5 and save record(Test B5)
6. Navigate back to Page 1 for next iteration

My issue is:
1. Data for Test B1, B2 .. B5 are in 5 different sheets in excel. And I can bind the parent TestA to only one sheet at a time. So I consolidated all of them into one sheet. Is there any other better solution to this?

2. InheritParentDatasource set to True for Tests B1 to B5. Even after binding all the variable manually in the child tests, they are not taking the values from the parent table when the test is run
eg- Enter text in "ClientProfilePersonNameBirthNameTest" - DataDriven : [$(BirthName)] is shown when I bind the step in Test B1 to the BirthName variable coming from TestA but it doesn't actually enter that value during runtime. Iteration#1 line in runtime log shows the value in this variable so its available to Test B1

Can anyone tell what the issue might be?

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 03 Jan 2017, 09:14 AM
Hi Deepa,

1. Yes, unfortunately you can bind only one sheet to a single test, so yes this is the only option.

2. In order to use InheritParentDataSource you should first add a data source to Test A, enable InheritParentDataSource for Test B and the most important thing is that you should manually type the name of the columns in the bindings properties of the Test B steps.

See the 4th step in this article.

Let me know if that helps.

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