QTP 11 ALM 11: using 'Test Configurations'
Was looking up documentation on 'Test Configurations' to use with QTP 11 & ALM 11. Though description is given, the process to implement usage is not clear. If anyone has understood it & using it, any advise is appreciated.
Also, if any best practices or steps exist...do point to it.
Picked up from the HP forum(thx to martin)...still, if anyone has any more info or experience...pl share.
We use the Test Configurations option with both QTP and BPT tests. Predominately we use it to define different scenarios and set static data. However, we are also looking into the use of the Dynamic option and storing the test data in the Test Resources.
In our case we run a suite of automated Regression tests every month but maintaining the data has started to become a bit of a problem. At the moment the test data is attached to every Test Instance in the Test Lab. This means ensuring that we always have the right test data before testing is very time consuming job.
We want to implement a procedure where the Test data is stored in the Test Resources module so we can send out to the 'user/business' for validation in the week before execution. If there is no change then the same data can be used. If there is a change then we can load the new data into the Test Resources.
Second we want to have the following flexibility :
To run a single senario from the Test Data Sheet ( assuming it can contain multiple scenarios )
To run all the scenarios from the Test Data Sheet and send results for each scenario
To run all the scenarios from the Test Data Sheet and send one result sheet for all scenarios
So if I have 5 scenarios I would set up as follows :
1. Create an excel sheet with all the parameters required and store in Test Resources. There should be 5 rows to represent the 5 scenarios;
2. Create a Test Configuration for each scenario, on the Data tab setting the option Dynamic, override the Test data Resource, select the excel saved in Test Resources, and clicking on the Data Resources settings, matching the Test and Resource parameter names, and selecting the row that matches the scenario;
3. Create a Test Configuration to represent all scenarios, and do the same as above but select all rows
4. To be able to do option 3 requires quite a bit more work - changes to settings in QTP and coding to read thru the excel sheet ( something we already have and needs slight modification )
1. You might have to create more Configurations that 'necessary' - i.e. to cater for different test environments if for instance login details are stored in your excel;
1. In our case it means we can run the full suite of scenarios to start with and then quickly create the necessary Test Instances for any reruns where a scenario has failed - with the correct name ( taken from the Test Configuration ) and correct test data simply by adding the Test configuration to the Test Set - rather than downloading, cutting, and reloading the Excel data sheet to a new Instance of the same test.
2. Single Source of the Truth as regards Test data.