【发布时间】:2016-02-11 18:55:49
【问题描述】:
我创建了一个 tern 项目来在 eclipse 中运行量角器测试。当我调用时
C:\Users\***>protractor D:\eclipseProject\sample.js
在 cmd 的上面一行,量角器运行得很好。但这里的问题是,对于每次运行,我都必须打开一个 cmd 窗口并每次都在上面的行中输入,所以我为它创建了一个批处理文件 sampleOne.bat,它工作得很好很好。现在我接下来要做的是在 jenkins 中调用这个 sampleOne.bat 文件,然后单击 Build Now(jenkins 中的选项)。jenkins 能够运行这个批处理文件,但部分运行(假设 sample.js 确实登录一个有角度的网络应用程序,然后验证下一页。)即它在编辑字段中输入用户名和密码,然后在该浏览器关闭(Chrome浏览器)和jenkins显示下面的消息
Started by user anonymous
Building in workspace D:\eclipseProject\***WebApplication\***BatchRunner
[***BatchRunner] $ cmd /c call C:\Users\***\AppData\Local\Temp\hudson4990564856015457437.bat
D:\eclipseProject\***WebApplication\***BatchRunner>sampleOne.bat
Process leaked file descriptors. See http://wiki.jenkins-ci.org/display/JENKINS/Spawning+processes+from+build for more information
Finished: SUCCESS
不确定这是不是正确的方法请帮助
【问题讨论】:
标签: javascript angularjs jenkins protractor