-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Generate Custom Report #1140
-
Hi Michael,
I am using SeleniumBase for my Test Automation Project, You are being so helpful by answering all questions.
Requirement is " I have to test multiple urls, to look for more than 10 items for each page. Have to generate one single text file, have to mention how many urls ran, how many items are pass, how many of them are fail.for failures have to capture the url and error message in that file.Not sure how to achieve, do I have to create separate methods for each items or it is possible to achieve by using single method? Answer with Examples would be really appreciated. I am new to Automation. God Bless You! Thanks in Advance!
Beta Was this translation helpful? Give feedback.
All reactions
Hello @abdurraheemj, self.assert_no_404_errors()
and self.assert_no_js_errors()
can help you make assertions with a single line of code. For the report, --html=report.html
on the pytest command-line will generate the report for you.
Replies: 1 comment
-
Hello @abdurraheemj, self.assert_no_404_errors()
and self.assert_no_js_errors()
can help you make assertions with a single line of code. For the report, --html=report.html
on the pytest command-line will generate the report for you.
Beta Was this translation helpful? Give feedback.