HTML reports shows pass even if the test Fails in Sikuli
Hi
I am new to sikuli and currently automating my Desktop application
I am writing a script to check if the image is present on the application or not and generating the HTML report
But the report always shows the tests pass even if i close the application to check if it shows fail or not
Please tell me how to solve this error
Thank you in advance
Here is the code:
import os
import HTMLTestRunner
import unittest
import sys
import logUtils
logger = logUtils.
class Util(unittest.
def setUp(self):
# setup the test environment needed to execute the tests in this function
try:
TD5 = os.popen(
if exists(
else:
except Exception, e:
str(e)
def tearDown(self):
# After completion of the tests tear down exits the application
try:
if exists(
else:
except Exception:
print Exception
def test_newProject
try:
if exists(
if exists(
else:
except Exception, e:
str(e)
suite = unittest.
outFile = open(r"
runner = HTMLTestRunner.
runner.run(suite)
HTML report:
It shows pass in the report and when i click pass it shows me this
pt1.1: Traceback (most recent call last):
File "C:\Tools\
stream.write(fs % msg)
File "C:\Tools\
stream.write(fs % msg)
ValueError: I/O operation on closed file
Logged from file ToolbarUtil.py, line 18
.... repeated
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Vishal singh
- Solved:
- Last query:
- Last reply: