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

Data Binding in Web Testing

4 Answers 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aswin
Top achievements
Rank 2
Aswin asked on 01 Mar 2013, 05:51 AM
Hi, I'm creating a test Scenario (Silverlight based website) as follows:

There will be several elements listed in a page like below:

Apple
Orange
Banana

Each one of them will have ElementID as usual. My test has to click the first Element, i.e, Apple and have to perform some operations. After those operations that element will go away. Now Orange will be the first element. Then the test steps have to be repeated. After Orange has gone, same for Banana.

In other words, I want to Data Drive "Target Element" in the Step. I have a list of target elements that has to be executed one by one.

So please tell me how to data drive this scenario. Thanks !

4 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 01 Mar 2013, 05:20 PM
Hello Aswin,

This sounds like a perfect scenario for a data-driven find expression. Please see this article(point 4) for more information on how to data drive the element find expression and let me know if you need further assistance.

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Aswin
Top achievements
Rank 2
answered on 04 Mar 2013, 05:37 AM
That works perfectly ! Thanks a lot Plamen. I will be more grateful if these are available in Videos... And please provide the link if they already exists... :)

And I would like to know about one more thing... I want the test to Freeze if any of the step Fails, But it is closing my browser now. So the data created in prev steps are not stored. So please help me to set that Test should Freeze and wait for my command IF any step Fails by chance... Thanks again...
0
Accepted
Plamen
Telerik team
answered on 06 Mar 2013, 10:43 AM
Hello Aswin,

You can select "On All Errors" from the Auto-Pause options(see screenshot). When this option is checked, our Visual Debugger will pause the execution if a failure is detected. 

Regards,
Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Aswin
Top achievements
Rank 2
answered on 06 Mar 2013, 01:01 PM
That was very Helpful... Thanks a Lot !!!
Tags
General Discussions
Asked by
Aswin
Top achievements
Rank 2
Answers by
Plamen
Telerik team
Aswin
Top achievements
Rank 2
Share this question
or