cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling automated TestComplete Script on TestExecute machine

SOLVED
Highlighted
Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

https://support.smartbear.com/testcomplete/docs/working-with/automating/command-line-and-exit-codes/...

 

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

 

 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Highlighted
Community Leader

Re: Scheduling automated TestComplete Script on TestExecute machine

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

 

https://support.smartbear.com/testcomplete/docs/testing-with/advanced/distributed/processing/running...

 

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.

Highlighted
Super Contributor

Re: Scheduling automated TestComplete Script on TestExecute machine

@cunderw 

 

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

Highlighted
Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

What specifically is not working with your approach?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Highlighted
Super Contributor

Re: Scheduling automated TestComplete Script on TestExecute machine

@cunderw 

 

It will invoke testexecute only but do not run the projects 

Highlighted
Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

What do the project suite and projects look like? Do you have your projects added to the project suite and enabled? Do you have Test Items added and enabled in your projects?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Highlighted
Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

Yes, what @cunderw said.  Do the TestComplete tests run on the TestExecute machine by running them from the TC project suite directly?  

Highlighted
Super Contributor

Re: Scheduling automated TestComplete Script on TestExecute machine

@cunderw 

I have 2 project suites .Each project Suite has one project. 

Projects are enabled. I have mentioned the location of project suites in the script .

 

Highlighted
Super Contributor

Re: Scheduling automated TestComplete Script on TestExecute machine

@Marsha_R 

 

we can run the prpject suite directly on TestExecute machine.

Highlighted
Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

What do you get when you run "C:\Program Files (x86)\SmartBear\TestExecute 14\Bin\TestExecute.exe" "C:\Users\nisgupta\Documents\TestComplete\IS\Infrastructure\HSC\SECCProjectSuite\SECCProjectSuiteHSC.pjs" /r /e directly from cmd window?


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors