protractor-html-screenshot-reporter在测试执行后没有显示任何报告 [英] protractor-html-screenshot-reporter not showing any report after test execution

查看:103
本文介绍了protractor-html-screenshot-reporter在测试执行后没有显示任何报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用量角器来自动化混合移动应用程序,我使用的是Protractor-HTML-screenshot-reporter,但是在成功执行测试后它没有显示任何报告。

I am using protractor to automate a hybrid mobile app, I am using the Protractor-HTML-screenshot-reporter, but it is not displaying any report after successful test execution.

以下是我的代码:

var HtmlReporter = require('protractor-html-screenshot-reporter');

var reporter=new HtmlReporter({
        baseDirectory: 'C:\\Users\\bhawani.prasad\\Desktop\\Protractor\\PageObject\\report', // a location to store screen shots.
        docTitle: 'Protractor Demo Reporter',
        docName:    'protractor-demo-tests-report.html'
    });


 onPrepare: function() {
        jasmine.getEnv().addReporter(reporter);
        } ,


推荐答案

对于那些想知道的人为什么没有 protactor-html-screenshot-reporter 生成的截图,如果你使用的是 jasmine2

For those who are wondering why there are no screenshots generated by protactor-html-screenshot-reporter and, if you are using jasmine2:


protractor-html-screenshot-reporter 与jasmine 2不兼容

切换到 protractor-jasmine2-screenshot-reporter

这篇关于protractor-html-screenshot-reporter在测试执行后没有显示任何报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆