|
|
|
|
|
|
|
Re: Properly Close AUT [message #1446402 is a reply to message #1446183] |
Thu, 16 October 2014 16:04   |
Eclipse User |
|
|
|
I found a solution for you if you use windows (if need, I have to be able to adapt on linux).
I created 2 scripts cmd (command line windows), and I put them d:\.
test.cmd
start d:\waitAndClose.cmd /wait 1
waitAndClose.cmd
rem sleep 5 sec
ping 1.1.1.1 -n 1 -w 5000 > nul
rem kill application with his name begin javaw
taskkill /IM javaw*
rem quit the window
exit
and your eclscript:
exec-process "d:\\test.cmd" -timeout 1
You have to adapt the directory.
For the explanation,rcptt starts application with name "javaw.exe" (it can possibly rename?)
The function exec-process starts test.cmd and its stop after 1 sec. Just the time starts other script cmd.
Finaly, waitAndClose, it waits 5 sec, it closes application with name begin "javaw" and itself closes.
If your AUT ask a confirmation to quit, you can add /F (taskkill /F /IM javaw*), this option forces the application to terminate
[Updated on: Fri, 17 October 2014 02:21] by Moderator
|
|
|
|
|
Re: Properly Close AUT [message #1708500 is a reply to message #1698231] |
Thu, 17 September 2015 04:06  |
Eclipse User |
|
|
|
Has anyone managed to exit the out via File/Exit and delayed kill script and then restart it in the same testcase yet?
Any testcase that requires an Exit from the AUT by AUT means is quite difficult to manage for a lack of a ECL command that starts the AUT anew when it is already stopped. restart-aut is not an option as the tests require the AUT to exit by it's own mechanics.
|
|
|
Powered by
FUDForum. Page generated in 0.47676 seconds