HTMLTestRunner: Failure Screenshots with timestamp
@Raiman:
I am using your modified version of html test runner which takes screenshots on failures.
The thing is screenshots are replaced and overwritten on every run of the sikuli report.
Can you help me to keep the failure screenshot names unique with a timestamp or something? so that the previous screenshots will not be overwritten and i can keep those for future reference.
def addFailure(self, test, err):
_, _exc_str = self.failures[-1]
output = self.complete_
if self.verbosity > 1:
else:
Do i have to make any modifications in html test runner?
# added by RaiMan
def generateTestScr
imgdir = self.dirTestScr
imgpath = ''
if imgdir:
x = str(test).split()
tf = x[0]
tc = x[1].split(
imgpath = os.path.
shutil.
return imgpath
Thanks in Advance!!
Cheers :)
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: