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

2 posts, 0 answers
  1. Senthilraja
    Senthilraja avatar
    11 posts
    Member since:
    Jun 2010

    Posted 13 Jun 2011 Link to this post


    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:


    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.

  2. Anthony
    Anthony avatar
    19 posts

    Posted 13 Jun 2011 Link to this post

    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.


    the Telerik team


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

Back to Top