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

dynamically picking a datasource?

1 Answer 11 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Neeraj
Top achievements
Rank 1
Neeraj asked on 17 Dec 2010, 11:06 PM
I have two spreadsheets one for US and one for UK as data sources.

In each individual tests that we recorded - we have put if else conditions depending on the country users have selected for business functionality testing. In some cases the functionality might be similar.

Can we in anyway dynamically pick the spreadsheet that we want because data for US and UK will be different eventhough in some cases the functionality might be similar.

1 Answer, 1 is accepted

Sort by
0
Cody
Telerik team
answered on 20 Dec 2010, 04:42 AM
Hi Neeraj,

Currently WebUI does not have a feature built-in to support this, though there is a feature request already logged for it. There is a small trick you can do however. Using a coded step you can swap the physical file a subtest is bound to then call that subtest. I have attached a sample project that demonstrates how to do this.

Kind regards,
Cody
the Telerik team
Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
Tags
General Discussions
Asked by
Neeraj
Top achievements
Rank 1
Answers by
Cody
Telerik team
Share this question
or