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

Data Driven Loop

5 Answers 274 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Godfred
Top achievements
Rank 1
Godfred asked on 12 Feb 2013, 04:39 PM
Hello,

Am creating a test which will insert records into a web portal using data provided in an excel file. Here is the sequence :
1. log in to the application
2. Search for the record
3. Click on update
loop
4. Insert record
end loop

End.Test
If runs alright on the first loop using the first record in the excel file. The problem is if it loops the second time, it uses the 1st record in the excel file which has already been inserted.
I want it to use the next record each time it loops

kindly asist pls

5 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 13 Feb 2013, 02:44 PM
Hello Godfred,

This is an expected behavior. Test Studio will use the second row of the excel file on the second test iteration. During the first iteration the "loop" will take only the first row.

To achieve this please put the "insert record" step in a separate test and add it in the parent test as Test as step. Now on a single iteration of the parent test the test as step will execute as many times as rows in the excel file.

I recorded a short video with demonstrates it.

Let me know if this helps.

Regards,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Godfred
Top achievements
Rank 1
answered on 15 Feb 2013, 02:33 PM
It worked. hanks a lot
0
Boyan Boev
Telerik team
answered on 15 Feb 2013, 03:00 PM
Hi Godfred,

Glad to hear it!

If you have any further questions please do not hesitate to contact us. 
 

All the best,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Godfred
Top achievements
Rank 1
answered on 22 Feb 2013, 10:18 AM
Hello,

Am binding a radio buttons with two options Yes/No. The column has a value of 1/0. Value of 1 sets the radio button to Yes but a value of 0 does not select any option.

Pls assist

Regards 
0
Boyan Boev
Telerik team
answered on 25 Feb 2013, 03:13 PM
Hi Godfred,

I am sorry you are experiencing this issue.

In order to help you best please provide more detailed information.

1. What kind of application do you test ( HTML, Silverlight, WPF)?

2. Please send us the execution log.

3. Send us a screen shot of the DOM tree.

4. Please record a short video to show us the issue you are experiencing. Jing is great for this.

5. Send us the test project and give us a direct access to the application so we can reproduce the issue on our side and give you a working solution.

If it is not possible to grant us access to your application, please take a Fiddler trace using FiddlerCap and send it to us in a zip file. 

Thanks for helping us advise you.
 

Greetings,
Boyan Boev
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Godfred
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Godfred
Top achievements
Rank 1
Share this question
or