|Re: Starting SWT AUT [message #690977 is a reply to message #690958]
||Thu, 30 June 2011 13:49
| Francois Genolini
Registered: June 2011
Location: UK, Aberdeen
I have tried to do something similar to what you suggest, but mine works.|
The difference seems to be that I have a few more lines at the start of my batch file:
"C:\Program Files\Java\jdk1.6.0_26\bin\javaw.exe" -jar name_of_jar_file.jar %1 %2 %3
As long as all the paths are known, this should work.
I have not managed to get the same error as you have, but I have others.
For example if deliberately specify the wrong jar file (typo, jar file not in class path because batch file started from another drive and folder...) I get the following error message in the client log:
[Connection.ReaderThread:Socket[addr=/myIP,port=60000,localport=63748]] ERROR o.e.j.c.c.c.StartAUTServerStateCommand - AUTServer could not start: invalid arguments
Also if I deliberately make my Java application fail and return error code -1 using System.exit(-1), I get an error message in the standalone ITE saying:
5009: AUT start failed
Establishing connection to AUT failed.
Please check the AUT configuration.
I also get an error message in the Client log:
[Connection.ReaderThread:Socket[addr=/myIP,port=60000,localport=64068]] ERROR o.e.j.c.c.c.StartAUTServerStateCommand - AUTServer could not start: unknown AUTServer exit code: '-1'
This all seems to work as designed and be rather good at error reporting
[Updated on: Thu, 30 June 2011 14:24]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.02681 seconds