将 Selenium 作为预构建事件运行时,Visual Studio 2010 挂起
我创建了一个bat文件,它调用名为run-selenium-server.bat的selenium服务器,其中包含:
java -jar D:\temp\selenium-server\selenium-server.jar
此外,我还在项目属性“构建事件”中添加了预构建事件命令行:
"$(SolutionDir)..\references\selenium-server\run-selenium-server.bat"
路径是正确的,但是当我构建项目:Visual Studio 2010 挂起,我必须打开 Process Explorer 来终止 java 进程。
我注意到输出窗口显示了预构建命令输出。有没有办法直接从 Visual Studio 中将此 bat 文件作为单独的 DOS 进程运行?
I have created a bat file which calls selenium server called run-selenium-server.bat which has:
java -jar D:\temp\selenium-server\selenium-server.jar
Also I have added in my project properties "Build Events" the pre-build event command line:
"$(SolutionDir)..\references\selenium-server\run-selenium-server.bat"
The path is correct but when I build the project: Visual Studio 2010 just hangs and I have to open Process Explorer to kill java process.
I noticed Output window is showing the pre-build command output. Is there a way to run this bat file as a separate DOS process directly from Visual Studio?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以尝试
此 MSDN 页面< /a>.另请注意,最好使用
start
命令启动 java.exe,如下所示:You could try
This is noted on this MSDN page. Also note that it's probably best to start the java.exe using the
start
command like so: