Google chrome Selenium WebDriver+;ChromeDriver+;詹金斯&x2B;MSTest

Google chrome Selenium WebDriver+;ChromeDriver+;詹金斯&x2B;MSTest,google-chrome,selenium,jenkins,webdriver,ui-testing,Google Chrome,Selenium,Jenkins,Webdriver,Ui Testing,我有一个C#.NET单元测试项目,它使用ChromeDriver在网页上运行自动化UI测试。这是在64位Windows 7上实现的。这些测试在VisualStudio2010中运行良好 我已经设置了一个Jenkins box来在本地(主服务器上)运行测试,主服务器是Windows2008服务器。测试生成,但我的MSTest命令神秘失败: “c:\program files(x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe“/resu

我有一个C#.NET单元测试项目,它使用ChromeDriver在网页上运行自动化UI测试。这是在64位Windows 7上实现的。这些测试在VisualStudio2010中运行良好

我已经设置了一个Jenkins box来在本地(主服务器上)运行测试,主服务器是Windows2008服务器。测试生成,但我的MSTest命令神秘失败:

“c:\program files(x86)\Microsoft Visual Studio 10.0\Common7\IDE\MSTest.exe“/resultsfile:c:\jenkins\jobs\FXO\u UI\u Tests\workspace\TestResults.TRX /testcontainer:c:\jenkins\jobs\FXO\u UI\u Tests\workspace\bin\Debug\Calculators.FXOptions2.Automation2.dll /testsettings:c:\jenkins\jobs\FXO\u UI\u Tests\workspace\FXO.testsettings

使用此输出:

Microsoft (R) Test Execution Command Line Tool Version 10.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.

Loading c:\jenkins\jobs\FXO_UI_Tests\workspace\FXO.testsettings...
Loading c:\jenkins\jobs\FXO_UI_Tests\workspace\bin\Debug\Calculators.FXOptions2.Automation2.dll...
c:\jenkins\jobs\FXO_UI_Tests\workspace\bin\Debug\Calculators.FXOptions2.Automation2.dll
The file exists.

c:\jenkins\jobs\FXO_UI_Tests\workspace>exit 1 
Build step 'Execute Windows batch command' marked build as failure
令人恼火的是,粘贴在命令窗口中的同一MSTest命令运行得非常好。手动运行时,我看不到“文件存在”

我曾尝试将Jenkins作为服务运行,但它目前在登录用户帐户中独立运行。Jenkins同样的设置可以打开Chrome.exe,所以我不明白为什么命令刚刚结束

请帮忙

找到了!“文件存在。”是密钥。事实证明,Jenkins使用的临时文件夹与登录用户(尽管是同一用户)有所不同。那个文件夹里的所有文件名都被填满了。清除临时文件夹修复了它