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

Problem with Data Driven test

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 1
Dave asked on 09 Aug 2012, 01:20 PM
Hi,

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:
http://dl.dropbox.com/u/96981414/dd.jpg

thanks for advice!

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 13 Aug 2012, 05:04 PM
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,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Dave
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or