Hi All,
Requirement:-
I want to execute same composite script across different system clients(Target System) with different data.
We are using CBTA quite extensively and have already automated quite a large number of end to end test scripts.
Our system landscape for release is as follow-
Dev system-->Regression Test system (RT01)-->Release Test System (RX01)-->Production
We have developed all our CBTA scripts on "RT01" and now we want to use all of them for "RX01" executions also.
Test Data for "RT01" and "RX01" are different.
How to use same scripts across multiple clients with different test data?
Solution 1:-
So we have created two variats "RT01" and "RX01" which have respective test data for each scripts.
For example below mentioned are variants for one script->
| Variant | Company Code | Customer No. | Address | Postal_Code |
|---|---|---|---|---|
| RT01 | CH01 | 112233 | address 01 | 1001 |
| RX01 | CH01 | 998877 | Address 5555 | 2002 |
For individual script execution, i can change the variant and "Target System" and "Variant" in "Start Option" window and I can use same script on multiple clients.
- Issue-> But there is an issue with this approach. If I want to execute in batch there will be a problem.
When I want to execute through test plan, while test plan creation I can select the "Target system" at test plan level and not the variant.
I didn't find any option where I can select test cases for test plan creation based on Variants.
If anyone has used same scripts for multiple system clients having different test data through Test Plan, please share your view.
Workaround:-
I already know the work around for this. I can create copies of same composite script for each system client with each having unique variant.
But this will cause duplication of scripts and will result into lot of scripts for each system Client.
Also effort to duplicate, maintain will be too much.