Ability to run same Projects using 2 different database under one Project Suite
- 5 years ago
Hi,
There are many options available in TestComplete to achieve this.
1) Project and project set variables
Use temporary variables to configure a specific environment for your tests. For example:
a) Create a variable (str) -> "app1".
b) Send its value by cmd
c) use onTestStart to perform the correct operation2) CI - If you are using software like Jenkins, you can always pass the value by cmd and follow step 1.
3) Divide your whole project into two smaller ones and inside it:
a) Use file references
b) or If you have a big difference create another project -> copy files to -> and use one nameMapping file with a specific configuration for the value.4)
"In addition, I need to restore the appropriate database under each project when I turn on and off the new option. Is there any global parameter/setting that can help me achieve this output".Install the correct driver -> connect to DB -> run the script and you are ready to work.
Remember that you can always store temporary data between tests in an external file like .json or excel file.