How to append saved screenshot to htmltestrunner report
Hi,
I have a working htmltestrunner report I want to find out how do I display the screenshot I saved on a failed test? I think I am using the htmltestrunner with the screenshot for failed tests but when I run my code it doesn't seem to display the screenshot on the report.
Here is the code from the htmltestrunner:
def addFailure(self, test, err):
_, _exc_str = self.failures[-1]
output = self.complete_
if self.verbosity > 1:
else:
My script:
from sikuli import *
import sys
import HTMLTestRunner
import unittest
import shutil
class ReturnToHomePag
def testA_ReturnHom
wait(3)
wait(5)
wait(3)
img = capture(
assert exists(
suite = unittest.
outfile = open('C:
myrunner = HTMLTestRunner.
myrunner.run(suite)
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask JP for more information if necessary.