Html Test report is blank when generated

Asked by Ali Ahmed

When I run my code, it produces the HTML code in the console and generates a report file but the report file is blank.

Here is the code I'm running:

from HTMLTestRunner import HTMLTestRunner


class Test(unittest.TestCase):
    def setUp(self):
        utils.openApplication("Appname")'Setup Called')

    def test_isupper(self):

if __name__ == '__main__':
    loader = unittest.TestLoader()
    suite = unittest.TestSuite((loader.loadTestsFromTestCase(Test)))

    outfile = file("Report.html", "w")
    runner = HTMLTestRunner()

I'm using Sikuli IDE 1.1.3, I tried using 2.0.4 but its not running there

Question information

English Edit question
SikuliX Edit question
No assignee Edit question
Solved by:
Ali Ahmed
Last query:
Last reply:
Revision history for this message
Ali Ahmed (ali13xii) said :

And it should have screenshot with report when it fails, correct?

Revision history for this message
Ali Ahmed (ali13xii) said :

Also I am not able to use sikuli methods in 1.1.3, to my test. I am able to do it in 2.0.4 for some reason

Revision history for this message
Ali Ahmed (ali13xii) said :

Found old question that help me resolve issue

Revision history for this message
RaiMan (raimund-hocke) said :

Posting the link to the helping question would be appreciated by other readers.