Closing browsers after test completion

195 views
Skip to first unread message

Gavin

unread,
Jan 23, 2012, 10:18:49 AM1/23/12
to JsTestDriver
Hi,

Whenever JstestDriver completes a test run on my windows box, the
browser window (tab) does not close after a test run. I start the
JsTestDriver server from within rake script, using -

output = IO.popen("java -jar JsTestDriver.jar --port 9876 --browser C:\
\Progra~2\\Mozill~1\\firefox.exe --runnerMode DEBUG ") do |pipe|
sleep(SERVER_START_UP_WAIT_TIME)
IO.popen("java -jar JsTestDriver.jar --tests all --server
http://localhost:9876 --testOutPut test--runnerMode DEBUG") do |pipe2|
sleep(SERVER_START_UP_WAIT_TIME)
puts pipe2.pid
pipe2.close
Process.kill("KILL", pipe.pid) #Kill the parent process
pipe.close
end
end

However, this leaves the captured browser window open. Is there any
way to close this window via a command? without having to write a
script to do the same for windows and unix?

Running JsTestDriver directly from command line leaves the browser tab
open.


Thank you!
Gavin

jason marshall

unread,
Feb 7, 2012, 6:51:30 PM2/7/12
to js-test...@googlegroups.com
I have the same problem.  It would be great to get this fixed at the source.  In the meanwhile, I use this:

taskkill /f /im iexplore.exe

It's the Windows equivalent of "kill -9 iexplore.exe"

Gavin

--
You received this message because you are subscribed to the Google Groups "JsTestDriver" group.
To post to this group, send email to js-test...@googlegroups.com.
To unsubscribe from this group, send email to js-test-drive...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/js-test-driver?hl=en.




--
- Jason
Reply all
Reply to author
Forward
0 new messages