sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #53618
[Question #686849]: AttributeError ( '_TestResult' object has no attribute 'isAborted' )
New question #686849 on Sikuli:
https://answers.launchpad.net/sikuli/+question/686849
SikuliX version - 2.0.1
Jython version - 2.7.1
Virutal Machine - Ubuntu 18.04.3 LTS
Code -
# Paths of timeNET, PetriNet Models have to be set in the test script
localtime = time.localtime(time.time())
timestring = time.strftime ('%d-%m-%Y_%H-%M-%S')
#Directory in which all the .sikuli folders are present
dir = "/home/suman/Desktop/Automated-Testing-TimeNET/TimeNET-TestCases/"
from sikuli import*
import os
import unittest
import HTMLTestRunner
###########
## Class 1 ##
###########
class TimeNet_Open(unittest.TestCase):
#Case1
def test_TimeNet_Open(self):
import TimeNET_Open
###########
## Class 11 ##
###########
class CloseTimeNET(unittest.TestCase):
#Case1
def test_timenet_close(self):
import TimeNET_Close
#############################
## TestLoad and TestSuite ##
#############################
suite = unittest.TestLoader().loadTestsFromTestCase(TimeNet_Open)
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(CloseTimeNET))
outfile = open("/home/suman/Desktop/Automated-Testing-TimeNET/Continuous_Integration_Server/TestResults/Testing/Report_Linux_"+timestring+".html","w")
runner = HTMLTestRunner.HTMLTestRunner(stream = outfile, title = 'TimeNET Test Suite', verbosity=2).run(suite)
outfile.close()
NOTE - - Everything runs fine. Test report is also generated in the mentioned directory. However, the message consoles shows this below error -
[log] TYPE "t"
[log] TYPE "cd /home/suman/Desktop/Automated-Testing-TimeNET/TimeNET-4.5/TimeNET/bin/#ENTER."
[log] TYPE "sudo ./startGUI#ENTER."
[log] TYPE "suman#ENTER."
[log] CLICK on L[1877,8]@S(0) (630 msec)
[log] CLICK on L[1899,10]@S(0) (565 msec)
ok test_TimeNet_Open (__main__.TimeNet_Open)
ok test_timenet_close (__main__.CloseTimeNET)
Time Elapsed: 0:00:30.699000
[error] script [ TestRunner ] stopped with error in line 38
[error] AttributeError ( '_TestResult' object has no attribute 'isAborted' )
[error] --- Traceback --- error source first
line: module ( function ) statement
38: main ( <module> ) outfile.close()
[error] --- Traceback --- end --------------
NOTE - Everything runs fine. Test report is also generated in the mentioned directory. However, the message consoles shows this above error.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.