Problem with Data Driven test

2 posts, 0 answers
  1. Dave
    Dave avatar
    1 posts
    Member since:
    Aug 2012

    Posted 09 Aug 2012 Link to this post


    I have this little issue, that I don't know how to change rows in my data driven test..

    There is my example:

    1. Navigate to SL application
    2. Loop 2 times
    2.1 Fill username textbox - DataDriven: [$(username)]
    2.2 FIll password textbox - DataDriven: [$(password)] 

    3. Click OK button

    Excel file contains 2 columns called username and password. The excel sheet look like this:
    username password
    automat         automat
    robot robot

    And my problem is, when I run my test, the loop section fill textboxes only with automat - automat 2 times.. Shouldn't it to skip to second row and fill it with robot - robot on second iteration?

    My code look like this:

    thanks for advice!
  2. Byron
    Byron avatar
    184 posts

    Posted 13 Aug 2012 Link to this post

    Hi David,

    You are correct: if there are three rows in your Excel spreadsheet including column names, then your test should iterate twice, once for each row beneath the column names. Using filter between rows, it is possible to restrict the test to only executing one row, but Test Studio would only iterate the test once in this case.

    In order to help with your issue, we need more information about your test scenario. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here. A Jing video demonstrating the issue may also help us to better understand what is happening. Thanks for helping us advise you best.

    Kind regards,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top