Forem

Cover image for Generate HTML Reports with SeleniumBase
Dilpreet Johal
Dilpreet Johal

Posted on

7 4

Generate HTML Reports with SeleniumBase

In this post, we will go over how we can generate Dashboard and HTML reports with the SeleniumBase framework. SeleniumBase has in-built capabilities to generate reports without having to do any additional configuration. Let’s take a look at how we can do that:

Dashboard Report

Dashboard reports can be used to get a high-level overview of all the test runs. You can generate the reports by running the following command –

pytest --dashboard --rs --headless

generate dashboard report


HTML Report

Along with the Dashboard report, you can also generate a detailed HTML report which will provide you with log information if tests failed. The HTML report can also be easily generated by running a single command –

pytest --html=report.html

generate html report

The HTML report will also attach the screenshot if a test fails which will make debugging your code a lot easier.


Check out the video below to learn more about generating reports using the SeleniumBase framework –


πŸ“§ Subscribe to my mailing list to get access to more content like this

πŸ‘ Follow automationbro on Twitter for the latest updates

...

I love coffees! And, if this post helped you out and you would like to support my work, you can do that by clicking on the button below and buying me a cup of coffee -

Buy me a coffee

You can also support me by liking and sharing this content.

Thanks for reading!

Image of Datadog

How to Diagram Your Cloud Architecture

Cloud architecture diagrams provide critical visibility into the resources in your environment and how they’re connected. In our latest eBook, AWS Solution Architects Jason Mimick and James Wenzel walk through best practices on how to build effective and professional diagrams.

Download the Free eBook

Top comments (0)

Retry later
πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay