Search code examples
python-3.xseleniumpytest-html

How to share html report of pytest-html with out changing the css


I am using python 3.6 and pytest-html to generate HTML reports . Everything is successfully working but when i share my html report to my manager the css of the entire document is out of placed .can someone tell the reason to why it is happening and the solution for it .

The view of reports when i run:enter image description here

The view of the reports when i share the document with my manager enter image description here


Solution

  • It seems like you are not sharing whole bunch of items like CSS with html file you are giving. Just place the CSS code inside your HTML rather than giving the path and it will solve your problem.