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

Repeat step n to step m and repeat times based on data table row count

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Senthilraja
Top achievements
Rank 1
Senthilraja asked on 13 Jun 2011, 08:33 AM
Hello

We have to create a test with the following steps,

step1: Login to application
step2: Open user list page
stpe3: Verify user name from data table
step4: Logout

Data Table:

UserName
A
B
C

Step1 and step4 should run only one time. Step2 and step3 should run data table row count (3) times. Please provide the solution for this scenario.



Thanks,
Senthil

1 Answer, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 13 Jun 2011, 04:04 PM
Hello Senthilraja,

As your test is written, it will iterate four times, executing all four steps in each iteration.

Your desired scenario is possible, however. Create two tests, one parent and one child.

Parent Test
  1. Login to application
  2. Test as Step: Child Test
  3. Logout

Child Test

  1. Open user list page
  2. Verify user name from data table

 The Child Test is data driven. When you execute the Parent Test, it will log in and out only once, but iterate the Test as Step (which contains the original steps 2 and 3) three times.

Regards,

Anthony
the Telerik team

 

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
General Discussions
Asked by
Senthilraja
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Share this question
or