Forum Discussion
- 1. I would create one single batch file that calls all the projects
- 2. You can set windows task scheduler to let the running instance finish before firing off a new one
- 3. You can miminize but not close the RDP connection. There HAS to be an active user session for GUI tests to run. You can specify where to save logs from the command line and save then on a network share for example.
How will you include multiple projects in different suites in a single batch file ? do you hav sample or example ? I can only see the example of one project in Testcomplete documentation .
https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/exit-codes.html
Per the documentation above, you can specify the .pjs file and it should run every project in the file.
You could also specify each project individually insuccession.
file_name
Launches TestComplete and loads the specified project (.mds file) or project suite (.pjs) into it
Hi guys,
The next solution in my opinion is the 'Network Suite Core' option in your project. With this option you can create jobs, connect your remote mashines and even distribute your project code in remote machines.
I suggest you to read this doc topics:
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/distributed/index.html
https://support.smartbear.com/testcomplete/docs/testing-with/advanced/distributed/requirements.html
Also there is great online video on SmartBear Academy, click this link:
https://smartbearacademy.learnupon.com/dashboard
register -> and assain to first free training.
In video there is a 'TestComplete 101, 201, and 301' watch 301.
Hope this help you.
Attached the scrpt/. This is how I am trying to do .
REM Clears the screen
CLS
@ECHO OFF
REM Launches TestComplete,
REM executes the specified project
REM and closes TestComplete when the run is over
start /wait "C:\Program Files (x86)\SmartBear\TestExecute 14\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Infrastructure\HSC\SECCProjectSuite\SECCProjectSuiteHSC.pjs" /r /e
start /wait "C:\Program Files (x86)\SmartBear\TestExecute 14\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Student\FASBS\HSC Financial Aid SBS\HSC Financial Aid SBS.pjs" /r /e
IF ERRORLEVEL 1001 GOTO NotEnoughDiskSpace
IF ERRORLEVEL 1000 GOTO AnotherInstance
IF ERRORLEVEL 127 GOTO DamagedInstall
IF ERRORLEVEL 4 GOTO Timeout
IF ERRORLEVEL 3 GOTO CannotRun
IF ERRORLEVEL 2 GOTO Errors
IF ERRORLEVEL 1 GOTO Warnings
IF ERRORLEVEL 0 GOTO Success
IF ERRORLEVEL -1 GOTO LicenseFailed
:NotEnoughDiskSpace
ECHO There is not enough free disk space to run TestComplete
GOTO End
:AnotherInstance
ECHO Another instance of TestComplete is already running
GOTO End
:DamagedInstall
ECHO TestComplete installation is damaged or some files are missing
GOTO End
:Timeout
ECHO Timeout elapses
GOTO End
:CannotRun
ECHO The script cannot be run
GOTO End
:Errors
ECHO There are errors
GOTO End
:Warnings
ECHO There are warnings
GOTO End
:Success
ECHO No errors
GOTO End
:LicenseFailed
ECHO License check failed
GOTO End
:End