dbruning
15 years agoNew Contributor
Problem running script from TestExecute, but only from the commandline.
Hi,
I'm trying to execute a master script (from the commandline) which will in turn execute a slave script on a remote host.
I've got the master script to the point where it's working if I invoke it from TestComplete or TestExecute (using the TestComplete or TestExecute GUI). However, it's failing if I run it with the TestExecute commandline.
I've simplified down the master script to just a single "Verify" statement:
procedure verifyhost;
begin
if not NetworkSuite.Hosts.ItemByName['FSWinXPSP201'].Verify() then
raise ('Unable to verify host')
else
Log.Message('Host verified');
end;
The commandline I'm using is:
"C:\Program Files\Automated QA\TestExecute 7\Bin\TestExecute.exe" "<full_path_to_my_project_suite>.pjs" /run /project:"<my_master_project_name>" /exit
Note that the script *does* actually run, and I do get a log file with the "Unable to verify host" message. If I run the same script from TestExecute or TestComplete GUI, I get the "Host verified" log message.
It's just that I can't verify the host (or go on to actually run a script on a slave) when run from the commandline.
Help?!?
Darren.
I'm trying to execute a master script (from the commandline) which will in turn execute a slave script on a remote host.
I've got the master script to the point where it's working if I invoke it from TestComplete or TestExecute (using the TestComplete or TestExecute GUI). However, it's failing if I run it with the TestExecute commandline.
I've simplified down the master script to just a single "Verify" statement:
procedure verifyhost;
begin
if not NetworkSuite.Hosts.ItemByName['FSWinXPSP201'].Verify() then
raise ('Unable to verify host')
else
Log.Message('Host verified');
end;
The commandline I'm using is:
"C:\Program Files\Automated QA\TestExecute 7\Bin\TestExecute.exe" "<full_path_to_my_project_suite>.pjs" /run /project:"<my_master_project_name>" /exit
Note that the script *does* actually run, and I do get a log file with the "Unable to verify host" message. If I run the same script from TestExecute or TestComplete GUI, I get the "Host verified" log message.
It's just that I can't verify the host (or go on to actually run a script on a slave) when run from the commandline.
Help?!?
Darren.