cancel
Showing results for 
Search instead for 
Did you mean: 

Scheduling automated TestComplete Script on TestExecute machine

SOLVED
Highlighted
Super Contributor

Scheduling automated TestComplete Script on TestExecute machine

What is the best way to schedule automated TestComplete Script on TestExecute machine ?

For e.g. I need to run one TestComplete project after every 15 minutes . How we can do it ?

 

Please advise 

 

Thanks

Nishchal

1 ACCEPTED SOLUTION

Accepted Solutions
Super Contributor

Re: Scheduling automated TestComplete Script on TestExecute machine

Finally I figured out. 

Here we can mention the following commands in bat file when running multiple projects in sequence

 

"C:\Program Files (x86)\SmartBear\TestExecute 14\Bin\TestExecute.exe"  "Path to the Project1.mds" /run /exit

"C:\Program Files (x86)\SmartBear\TestExecute 14\Bin\TestExecute.exe" "path to Project2.mds" /run /exit

 

We can also continue running the GUI tests if close the RDP connection. The details are in the link below.

https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock... 

To disconnect from Remote Desktop, run the following command on the remote computer (in the Remote Desktop window) as an Administrator:

%windir%\System32\tscon.exe RDP-Tcp#NNN /dest:console

RDP-Tcp#NNN is the ID of your current Remote Desktop session, for example, RDP-Tcp#0. You can see it in the Windows Task Manager on the Users tab, in the Session column.

 

View solution in original post

23 REPLIES 23
Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

Do you have Bamboo or Jenkins or GoAnywhere or any other tool that lets you schedule jobs?  That will work for TestExecute.

Community Leader

Re: Scheduling automated TestComplete Script on TestExecute machine

Hi, We are using Jenkins with TestComplete plugin installed and it works perfect. Try this too.

 

https://support.smartbear.com/testcomplete/docs/working-with/integration/jenkins/index.html

Super Contributor

Re: Scheduling automated TestComplete Script on TestExecute machine

@Marsha_R 

@Wamboo 

 

We are not using Jenkins due to some limitations.  We will simply use the TestExecute machine . So what are the options  we have ?

Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

Create a batch file to kick off Test Complete from the command line and use windows task scheduler.


Thanks,
Carson

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

Re: Scheduling automated TestComplete Script on TestExecute machine

@cunderw 

Thanks for the updates.

 

As I am running on TestExecute machine , I am looking at the documentation and I see only Window task scheduler and from there it also point to bactch file.

https://support.smartbear.com/testexecute/docs/running/scheduling-runs.html

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

 

Now the question is if we create batch file then where we can save the batch file ?

I am under the impression window task schduler will pick the batch file and run the batch according to the time specified in Task Scheduler.

 

Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

You could save the batch file pretty much anywhere so long as the user that is running the task has access to the location.


Thanks,
Carson

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

Re: Scheduling automated TestComplete Script on TestExecute machine

@cunderw 

Ok I got some sucess .

 

Here are few concerns

 

1.  For different project Suites do we have to create different batch files - mean each batch files for each project

     suite ?

 

2.   If project suite contain multiple projects/TestItems in each projects then how do we know to set up the time

       interval ?

 

3.   Since TestExecute machine is on VM which can be accessed using Remote desktop then how task scheduler

       works if 

      a)  we miniize the Remote desktop window

      b)  we close the Remote desktop

       c)   how can we see the reuslt fo batch file      

 

Community Hero

Re: Scheduling automated TestComplete Script on TestExecute machine

  1. 1. I would create one single batch file that calls all the projects
  2. 2. You can set windows task scheduler to let the running instance finish before firing off a new one
  3. 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.

Thanks,
Carson

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

Re: Scheduling automated TestComplete Script on TestExecute machine

@cunderw 

 

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/...

New Here?
Join us and watch the welcome video:
Watch the new Interview
Top Kudoed Authors