Multiple DataSources For a Single Test
Multiple Data Sources For a Single Test would allow a us to set a list of users in a single csv, a list of customers in anotehrs and a list of products in a third then combine them with all possible iterations over the set for exhaustive testing. Currently we have to nest test cases to get this functionality which junks up the test suite.
Thank you for your input.
We have talked about this in the past before. The problem with multiple data sources for one test case is actually the way the iterations work and how the iterations over the test case should be handled. This could potentially get very confusing.
However, we will evaluate if there is a solution that will both make sense and won’t be too confusing with the way iterations work with data connectors.
The Ranorex Product Management Team
Right now I am evaluating Ranorex tool for this feature only.
If it's achievable via Ranorex APIs, please suggest some code snippets to my email or may update at API documentations with examples..
I understood and learned that using Ranorex IDE, it is not possible to link more than one data sources with a test.
However, if it is possible programmatically to
a) Associate more than one datasources with a TestCase
b) Bind variables to datasources (provided all the data sources have same column-headers)
c) Add rule to meet a condition for choose one of the associated datasources
d) Iterate through rows.
My AuT does not has login-window implemented, it launches using after in-built authentication using current logged-in windows user profile.
So I have saved current username in Global variable using
string loggedInUserName = Environment.UserName;
In the AuT, each logged in user is assigned a culture, and thus the AuT launches in that Culture. So, I need to validate the object labels text/string in different culture.
But the Stakeholders want me to record/write one test and make use of it only to validate object-label using data-driven testing.
e.g. I want to associate 4 different TestData csv files(e.g. TestDataEn.csv, TestDataFr.csv, TestDataDe.csv, TestDataIt.csv) so that during runtime execution only one of these TestData file is chosen based on a global parameter value.
For a start, it would already be helpful to have a "static" and an "iteration" datasource. The values in the (one-line) static datasource are valid in each iteration cycle. This would avoid repeating constant values in each line of the datasource table.
Roy Fox commented
This would be very useful and make test cases a lot easier to read - it would remove the need to add smart folders to introduce datasets.
The same functionality applied to smart folders would also be useful.
This would be very helpful.
It could be very helpful to have:
Multiple data source files input for test cases.
I think at the moment, each test case can have only one data source.
When the test system is big, organization of test cases will be more easy with multi data source installed of just one data source.