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

Data driven test execution

1 Answer 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Prasanna
Top achievements
Rank 1
Prasanna asked on 03 Oct 2012, 01:32 PM

Data source contains 3 rows each with 3 user details
Scenario:
Step1: Login to the portal
Step2: Enter user1 data from data source and save
Step3: Enter user2 data from data source and save
Step3:Enter User3 data from data source and save
Step4: log off from the portal

Here when i run the scenario, for each and every Iteration, test studio is prompting to the login page of the portal, which is not required.
So our expectation is.. once we login to the portal, 3 iterations should get completed then log off. No need to login and logoff for each iteration.

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 05 Oct 2012, 07:27 PM
Hi Prasanna,

I recommend creating a parent test that executes the login step, a datadriven subtest that enters user data from the data source and saves, and the logoff step. This structure will only call the steps in the subtest for each row of the data source. To illustrate:

Test A:
1. Login step;
2. Test as step (Test B): Enter user data and save [data driven];
3. Log off step;

Test B:
1. Enter user data from data source [data bound]
2. Save

Please let us know if we can assist you further.

Regards,
Byron
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Prasanna
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or