← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #212372]: How to get the test reports after running the sikuli scripts

 

Question #212372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/212372

    Status: Open => Answered

nupur proposed the following answer:
first of all, download HTMLTestRunner.py file and placed it in your
Sikuli script folder.

--script--

from sikuli import *
import unittest
import HTMLTestRunner

Class ClassName(unittest.TestCase):
# paste your script

suite = unittest.TestLoader().loadTestsFromTestCase(ClassName)
outfile = open("C:\\Sikuli\\Reports\\report.html", "w")    # path to report folder
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title=' Report Title', description='desc..' )
runner.run(suite)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.