使用SpecFLow和Selenium DLL运行功能测试任务

时间:2016-07-01 20:42:56

标签: tfs specflow nunit-3.0

使用运行功能测试任务进行分布式测试时遇到严重问题。

我的场景是:我为Selenium和SpecFLow构建并运行单元测试。之后,我为测试环境机器复制DLL,安装测试机构并运行Functional Test Task。代理安装没问题,但运行Specflow和Selenium DLL是我的问题。

首次尝试时,我只为机器测试复制了Specflow和Selenium DLL,我有这个错误:

2016-06-30T23:12:19.5087649Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:12:29.5121638Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:12:39.5531864Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:12:49.5714200Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:12:59.5907849Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:13:09.6050718Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:13:19.6276865Z DistributedTests: Test run '327' is in 'InProgress' state.

2016-06-30T23:13:29.6528948Z DistributedTests: Test run '327' is in 'Aborted' state.

2016-06-30T23:13:39.6659731Z ##[warning]DistributedTests: Test run is aborted. Logging details of the run logs.

2016-06-30T23:13:39.6972230Z ##[warning]DistributedTests: New test run created.

2016-06-30T23:13:39.7128461Z ##[warning]Test Run queued for Project Collection Build Service (TEAM FOUNDATION).

2016-06-30T23:13:39.7128461Z ##[warning]DistributedTests: Test discovery started.

2016-06-30T23:13:39.7128461Z ##[warning]DistributedTests: Test Run Discovery Aborted . Test run id : 327

2016-06-30T23:13:39.7128461Z ##[warning]DistributedTests: UnExpected error occured during test execution. Try again.

2016-06-30T23:13:39.7128461Z ##[warning]DistributedTests: Error : No tests were discovered from the specified test sources

2016-06-30T23:13:39.7128461Z ##[warning]DistributedTests: Test run aborted. Test run id: 327

2016-06-30T23:13:39.8690942Z ##[error]The test run was aborted, failing the task.

我还试图复制所有DLL,包括SpecFLow和Selenium DLL以及网站DLL,它仍然返回相同的错误。全部配置好了。在最后一次尝试中,我已经将VSStudio安装到测试环境中,没有任何反应。

我有一个类似的测试环境,运行正常。 修改

Agent Deployment Task

Run Functional Test Task

0 个答案:

没有答案