Start/Stop Agent on Remote Machine as needed
I run my automation scripts on a local client which has Silk and the Agent installed. However some tests require me to connect to a remote machine and run tests there.
I have many different Remote Machines (hosts) which I connect to and currently I have the Silk Agent started on all of these machines. Most of the time they sit inactive and take up agent license.
I tried to come up way to start the Agent on the Remote Machine when I need to connect to it and then kill the process when I am done
Currently I tried doing this using PSTools (pslist, psexec and pskill)
Tp Start SilkTest Agent on the Remote Machine I created a function which uses SYS_Execute and runs the following:
psexec \\10.15.51.13 -i -d "C:\Program Files\Segue\SilkTest\Agent.exe"
It Starts the SilkTest Agent, However once the function end/returns the SilkTest agent process gets stopped
If I run the same cmd from a Cmd Window on my client it starts the SilkTest Agent on the Remote Machine and Closing the Cmd window keeps the agent running.
I even tried kicking off a Perl script with SYS_Execute and the same problem. The Agent Starts on the Remote Machine then as soon as the function / testcases ends the Agent is no longer running.
Can anyone help me with this?
How can I kick off the Silk Agent on my remote machine from my client machine and have the Agent stay running
pslist and pskill work fine.
Do I need to make the agent a service, if so can anyone help with that.
Re: Start/Stop Agent on Remote Machine as needed
Im an idoit
Using psexec works fine ..
I had code in TestCaseExit to stop the agent once the testcase finishes so no wonder why when I went to look back at the machine the agent was not running.
Time for a vacation.