在Jenkins上运行selenium测试

时间:2016-07-01 13:14:09

标签: batch-file selenium testing jenkins

我在Visual Studio 2012中进行了测试,对于网站,我想从Jenkins自动运行这些测试,我写了一个Windows批处理命令

<Path to PsExec.exe> -i \\remotemachineName -u UserName -p password <vstest.console.exePath> <Path to the MyTest.dll on the remotemachineName> /logger:trx

但是没有测试正在运行,如果我直接在remotemachineName上执行相同的命令,那么测试就会运行,而不是来自jenkins

我将此命令放在批处理文件上,尝试直接在remotemachineName上运行它:它没关系,但不是来自jenkins

1 个答案:

答案 0 :(得分:0)

使用&#34; BUILD_ID = dontKillMe&#34;过程树杀手 参考:https://wiki.jenkins-ci.org/display/JENKINS/ProcessTreeKiller