Forum Discussion

rdpatil's avatar
rdpatil
Occasional Contributor
7 years ago

How to configure TC to Execute tests on various environment

Team,

 

I have following test flow. I want to configure a Executable file to Run it on QA/ Prod Environment from config file.

please guide us.

 

Unit 1: Test A  Env- Prod

Unit 2: Test B Env QA or Prod - Different Url

Unit 3: Test C  Env QA or Prod -Different Url

Unit 4: Test D  Env QA or Prod -Different Url

 

How to configure this file so that we can make the Changes to QA/ Prod for Unit-2, 3, & 4.

1 Reply

  • shankar_r's avatar
    shankar_r
    Community Hero

    Hi,

     

    Step 1: refer this link https://support.smartbear.com/viewarticle/9021/ to get your url value from command line into TestComplete project variable

    Step 2: Make changes in your tests to use the Project Variable to access the URL

    Step 3: Get help from this link to frame your command line.

     

    Sample batch file content will look like,

     

    "C:\Program Files (x86)\SmartBear\TestComplete 12\x64\Bin\TestComplete.exe" "D:\myHTMLTest\myHTMLTest.mds" /r /test:Unit1 /exit /SlientMode AppURL="mytest.com"
    "C:\Program Files (x86)\SmartBear\TestComplete 12\x64\Bin\TestComplete.exe" "D:\myHTMLTest\myHTMLTest.mds" /r /test:Unit1 /exit /SlientMode AppURL="mytest1.com"
    "C:\Program Files (x86)\SmartBear\TestComplete 12\x64\Bin\TestComplete.exe" "D:\myHTMLTest\myHTMLTest.mds" /r /test:Unit1 /exit /SlientMode AppURL="mytest2.com"