Problem running script from TestExecute, but only from the commandline.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2010
12:08 PM
02-15-2010
12:08 PM
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.
4 REPLIES 4
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2010
12:00 AM
02-19-2010
12:00 AM
Hi Darren,
First of all, please make sure that you are using the same version of TestExecute (7.52) on the master and slave computers.
To help us investigate the problem, please follow the steps below:
1. Restart the master computer.
2. Restart the slave computers.
3. Run the test via the command line.
If you get the message saying that the verification is successful, it seems we have a patch that should solve the problem. To get it, please contact us via our Contact Support Form.
If you get the error message (the verification was not successful), please send us the master and slave projects via our Contact Support Form. Also, send us detailed information on your system (the slave and master computers).
-----
Alexander
Customer Care Manager
Alexander
Customer Care Manager
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2010
12:51 PM
02-25-2010
12:51 PM
Hi,
Thanks for the reply. Restarting the master computer solved my problem.
I've since had the problem resurface, and restarted the master again to fix.
Hope this doesn't happen too often & that it's on your list to fix...
Thanks
Darren.
Thanks for the reply. Restarting the master computer solved my problem.
I've since had the problem resurface, and restarted the master again to fix.
Hope this doesn't happen too often & that it's on your list to fix...
Thanks
Darren.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010
10:19 AM
04-21-2010
10:19 AM
Hi,
Restarting the VM did not seem to help, however once the Host was restarted the task verified. However the issue seems to be intermitent and keeps coming back.
If you think the patch will help could you please send me a link to where I can download it.
Restarting the VM did not seem to help, however once the Host was restarted the task verified. However the issue seems to be intermitent and keeps coming back.
If you think the patch will help could you please send me a link to where I can download it.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2010
11:06 PM
04-21-2010
11:06 PM
Hi Kyle,
Are you using the latest TestComplete version (7.52)? If you are, contact our Support Team via our Contact Support form to get the patch.
-----
Alexander
Customer Care Manager
Alexander
Customer Care Manager
