How do I stop selenium server from ant task forked from ‘Java’ target?

I write an ant target, start selenium server, run my test code, and then... I want it to stop selenium How do I track a forked thread created by ant to prevent it?

Solution

You should be able to shut down the selenium server through a direct web request

http://localhost:4444/selenium -server/driver/? cmd=shutDownSeleniumServer

The http get task will do for this.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>