Protractor 我怎样才能看到哪个浏览器使用带selenium网格的量角器产生的错误

Protractor 我怎样才能看到哪个浏览器使用带selenium网格的量角器产生的错误,protractor,selenium-grid,Protractor,Selenium Grid,我们正在运行带有Selenium网格的量角器,目前有两个浏览器。当测试失败时,我看到他们失败了,我看到每个浏览器上有多少测试失败了,但不知何故,我看不到测试在哪个浏览器上失败了。 这是硒或量角器的缺陷,还是我做错了什么?你用茉莉花记者吗?我发现控制台清楚地显示了错误源于哪个浏览器。当然,html报告非常清晰 将它们添加到onprepare块中的dragrator.conf.js中,如下所示 onPrepare: function () { // The require statement

我们正在运行带有Selenium网格的量角器,目前有两个浏览器。当测试失败时,我看到他们失败了,我看到每个浏览器上有多少测试失败了,但不知何故,我看不到测试在哪个浏览器上失败了。
这是硒或量角器的缺陷,还是我做错了什么?

你用茉莉花记者吗?我发现控制台清楚地显示了错误源于哪个浏览器。当然,html报告非常清晰

将它们添加到onprepare块中的dragrator.conf.js中,如下所示

onPrepare: function () {
    // The require statement must be down here, since jasmine-reporters
    // needs jasmine to be in the global and protractor does not guarantee
    // this until inside the onPrepare function.
    require('jasmine-reporters');
    jasmine.getEnv().addReporter(new jasmine.ConsoleReporter());


    jasmine.getEnv().addReporter(new HtmlReporter({
        baseDirectory: 'reports/screenshots'   ,
        takeScreenShotsOnlyForFailedSpecs: true
    }));

},

请务必使用jasmine reporters~0.4.0,1.0.0还不能与量角器配合使用,因为它与量角器目前使用的较新版本一起使用。

是否使用jasmine reporters?我发现控制台清楚地显示了错误源于哪个浏览器。当然html报告是非常清楚的。不,我没有,安装了Digrator html screenshot reporter,这给出了预期的反馈。可惜量角器的输出本身并没有报告它。顺便说一句,添加你的评论作为答案