cancel
Showing results for 
Search instead for 
Did you mean: 

Start Testexecute remotely

SOLVED
Contributor

Start Testexecute remotely

Hi to all,


i just wanna to know how can i start a TE projekt remotely. I dont wont to start a Remotedesktopsession i just wanna to click a .bat with the regular commandline statement and the test on the TE VM is running. Is there any way to get this done?


regards

 

Kai

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: Start Testexecute remotely

Hi Kai,

 

I dont wont to start a Remotedesktopsession

Note, that while RDP session is not a requirement, it is required by the operating system to have active not locked desktop session for the user on behalf of which tests are executed.

If RDP session exists, then the mentioned desktop session is connected to this RDP session. If RDP session is absent, then desktop session is connected to console. https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...

 

So, if you have active unlocked session connected to console on the remote machine, you may write a code that will find out the id of this session and then remotely start TestExecute within this session and trigger tests execution. The above actions can be done with the help of either WMI, or Power Shell or some other programming language that supports remote COM calls.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
2 REPLIES 2
Community Hero

Re: Start Testexecute remotely

You can't run a command line locally for TE and have it execute on a different machine.  You need to execute the command line ON that remote workstation somehow, either using some kind of tool like Jenkins or QA complete or setting up an Windows task in Task Scheduler on that remote machine.

 

Regardless of which way you do it, you HAVE to have that remote machine logged in somehow and with an active user session with a desktop.  There are plenty of ways of doing this as documented in the help.  While you don't necessarily NEED to do a Remote Desktop, you DO need to activate a user session on that machine... TE and TC work with the UI... so you need a UI for them to run.


Robert Martin
[Community Expert Group]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Extensions available
Highlighted
Community Hero

Re: Start Testexecute remotely

Hi Kai,

 

I dont wont to start a Remotedesktopsession

Note, that while RDP session is not a requirement, it is required by the operating system to have active not locked desktop session for the user on behalf of which tests are executed.

If RDP session exists, then the mentioned desktop session is connected to this RDP session. If RDP session is absent, then desktop session is connected to console. https://support.smartbear.com/testcomplete/docs/testing-with/running/via-rdp/keeping-computer-unlock...

 

So, if you have active unlocked session connected to console on the remote machine, you may write a code that will find out the id of this session and then remotely start TestExecute within this session and trigger tests execution. The above actions can be done with the help of either WMI, or Power Shell or some other programming language that supports remote COM calls.

 

Regards,
Alex
[Community Expert Group]
____
[Community Expert Group] members are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Postings made by [Community Expert Group] members
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
[Community Expert Group] signature is used with permission by SmartBear Software.
http://smartbear.com/forums/f83/t86934/community-experts/
================================
New Here?
Join us and watch the welcome video: