Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
257 views
in Technique[技术] by (71.8m points)

javascript - How to display protractor-image-comparison diff in jasmine reporter

I have protractor-image-comparison working by using checkFullPageScreen and checkElement. Baseline, Actual and Diff folders are all created and saved correctly but my question is, when test fails, how do I display the DIFF image in the Jasmine reporter for the failed tests?

My current htmlReporter in config looks like this...

function setupHtmlReporter (){
   jasmine.getEnv().addReporter(new HtmlReporter({
       baseDirectory: 'testReport',
       docName: 'testReport.html',
       preserveDirectory: false,
       jsonsSubfolder:'jsons',
       screenshotsSubfolder:'screens',
        docTitle: 'Test Result'
       }).getJasmine2Reporter());
}

Is there a way to add path to diff folder here?

Or... Is there a better assert tool I can use to display the image diff on failure using jasmine??

question from:https://stackoverflow.com/questions/65602384/how-to-display-protractor-image-comparison-diff-in-jasmine-reporter

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...