cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure TC to Execute tests on various environment

Highlighted
Occasional Contributor

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 1
Highlighted
Community Hero

Re: How to configure TC to Execute tests on various environment

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"

Thanks
Shankar R

LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com

“You must expect great things from you, before you can do them”


Extension Available

New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors