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

CSV data driven for checkbox and dropdown list

1 Answer 185 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
christo
Top achievements
Rank 1
christo asked on 18 Mar 2015, 10:19 AM
1. How to select a checkbox based on value from CSV data sources
(eg, 'true' in csv, checkbox will be checked)

2. Dropdown list item is selected based on value from CSV data sources
(eg, 'Germany' in csv, country 'Germany' will be selected in dropdown list)

How can this be done in Telerik Test Studio without code?
If must customize, please provide sample code in VB.NET, thanks

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 18 Mar 2015, 08:53 PM
Hello Christo,

Item 1) First we must keep in mind that checkboxes are a set of disconnected and unrelated UI elements shown in the browser. They may act mutually exclusive sometimes, but that's only because JavaScript is intervening on the OnChange event and making them act that way.

To make the test select the right checkbox based on the data source you want to use a data driven find expression. Now Test Studio will locate the checkbox you want and act on it based on what the data in the data source tells it to find.

If, on the other hand, you want to always target the same checkbox and either check it or uncheck it based on the data, you can use a data driven test.

Item 2) Selecting an item from a drop down is also a data driven test.



Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
christo
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or