Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Generate Custom Report #1140

Answered by mdmintz
abdurraheemj asked this question in Q&A
Discussion options

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!

You must be logged in to vote

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

Comment options

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.

You must be logged in to vote
0 replies
Answer selected by mdmintz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /