通过tfs运行量角器测试时出现Jasmine错误

时间:2017-05-10 19:21:06

标签: visual-studio-2015 protractor jasmine2.0

我正试图通过tfs运行量角器来自我当地的开发部门。我能够在本地和通过eclipse成功运行这些测试但是当我使用测试vs测试资源管理器时,我得到以下错误

ReferenceError: browser is not defined
at Object.<anonymous> (http://localhost:62225/Tests.js:4:9)
at attemptSync (http://localhost:62225/jasmine_2._4.jasmine.js:1886:24)
at QueueRunner.run (http://localhost:62225/jasmine_2._4.jasmine.js:1874:9)
at QueueRunner.execute (http://localhost:62225/jasmine_2._4.jasmine.js:1859:10)
at Spec.queueRunnerFactory (http://localhost:62225/jasmine_2._4.jasmine.js:697:35)
at Spec.execute (http://localhost:62225/jasmine_2._4.jasmine.js:359:10)
at Object.fn (http://localhost:62225/jasmine_2._4.jasmine.js:2479:37)
at attemptAsync (http://localhost:62225/jasmine_2._4.jasmine.js:1916:24)
at QueueRunner.run (http://localhost:62225/jasmine_2._4.jasmine.js:1871:9)
at QueueRunner.execute (http://localhost:62225/jasmine_2._4.jasmine.js:1859:10)

我试着查看jasmine.js文件但是我不知道我在看什么。成功运行它的开发人员拥有所有相同版本的webdriver,protactor,jasmine等等。任何想法可能是什么?

0 个答案:

没有答案