Here we will learn how to incorporate protractor-jasmine2-html-reporter In Protractor
Step 1:
Add dependency in package.json like below
Step2:
Add the following details in protractor configuration
We can find the more configuration from here.
Step 3:
After executing the script, we will get the report under the target folder.
Step 4:
We will get the report looks like below.
Step 1:
Add dependency in package.json like below
"dependencies": {
"protractor": "5.4.2",
"jasmine": "3.4.0",
"protractor-jasmine2-html-reporter": "0.0.7"
},
Step2:
Add the following details in protractor configuration
onPrepare: function() {
jasmine.getEnv().addReporter(
new Jasmine2HtmlReporter({
savePath: 'target/screenshots'
})
);
}
We can find the more configuration from here.
Step 3:
After executing the script, we will get the report under the target folder.
Step 4:
We will get the report looks like below.
I have been searching for a useful post like this on salesforce course details, it is highly helpful for me and I have a great experience with this Salesforce Training who are providing certification and job assistance. Best Salesforce training in Noida
ReplyDelete