AlexKeil
12 years agoNew Contributor
Data driven 'Items' in keyword test
I have several scenarios in tests that we are performing something like the following:
- Form has two radio buttons
- Under each radio button are some text boxes in groups.
-- If the first radio button is enabled, you enter info into the text boxes for the first group
-- If the second radion button is enabled, you enter info into the text boxes for the second group
What we are looking to do is use an excel file to store scenarios (eg, click radio button 1, enter some info, click radio button 2, enter some info)
Is there a way using Keyword tests to click on the radio buttons based on data from an external source? Or are you better off having a keyword test for each scenario?
I managed to get it to work by manually coding tests where i dynamically assigned value of Project.Variables.variableName.columnName.value into a parameter and then subbing that parameter into a click call. This does mean manually writing scripts v.s. using the recording tool (recording tool is ideal).
Any advise would be great!.
- Form has two radio buttons
- Under each radio button are some text boxes in groups.
-- If the first radio button is enabled, you enter info into the text boxes for the first group
-- If the second radion button is enabled, you enter info into the text boxes for the second group
What we are looking to do is use an excel file to store scenarios (eg, click radio button 1, enter some info, click radio button 2, enter some info)
Is there a way using Keyword tests to click on the radio buttons based on data from an external source? Or are you better off having a keyword test for each scenario?
I managed to get it to work by manually coding tests where i dynamically assigned value of Project.Variables.variableName.columnName.value into a parameter and then subbing that parameter into a click call. This does mean manually writing scripts v.s. using the recording tool (recording tool is ideal).
Any advise would be great!.