Jasmine2 Stacktrace

时间:2015-05-12 00:34:15

标签: jasmine protractor stack-trace jasmine2.0

当我们使用jasmine2框架运行我们的Protractor测试时,我们会得到相当无用的堆栈跟踪,如下所示。这些是零星的,从不在同一个地方两次。我可以重新运行测试,它可以正常工作。

究竟是什么导致了这种类型的错误,我该如何解决?

 should log in as admin user and do something (22 secs)
   - Failed: null
     at /var/lib/jenkins/jobs/Code-Test/workspace/node_modules/protractor/node_modules/jasminewd2/index.js:102:16
     at [object Object].promise.ControlFlow.runInFrame_ (/var/lib/jenkins/jobs/Code-Test/workspace/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:1877:20)
     at [object Object].promise.Callback_.goog.defineClass.notify (/var/lib/jenkins/jobs/Code-Test/workspace/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:2464:25)
     at [object Object].promise.Promise.notify_ (/var/lib/jenkins/jobs/Code-Test/workspace/node_modules/protractor/node_modules/selenium-webdriver/lib/webdriver/promise.js:563:12)

1 个答案:

答案 0 :(得分:0)

您需要将StricktHostKeyChecking升级为> = 2.2版本(2.3目前是最新版本),参考: