sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56918
[Question #696007]: Execute tests and Produce single report file
New question #696007 on SikuliX:
https://answers.launchpad.net/sikuli/+question/696007
Hi I am trying to do this in my testing,and I want to create single report file with various tests results in it, but I was having some trouble. I'm getting an error message when I tried. the test scripts run when I run their separate sikuli files but not in RunningMulitpleTest sikuli file.
Code:
import random
import shutil
import os
import xlrd
import BidsAndOffersModule
from SubmittingOffersMisoHourlyParameters import *
from SubmittingOffersMisoEnergySchedOffer import *
#from ddt import ddt, data,unpack
import utils
import HTMLTestRunner
import unittest
outfile = open("RunMultipleTests.html", "w")
runner = HTMLTestRunner.HTMLTestRunner(stream=outfile, title='Test Suite', description='Test Suite')
loader = unittest.TestLoader()
suite1 = loader.loadTestsFromModule(SubmittingOffersMisoHourlyParameters)
suite2 = loader.loadTestsFromModule(SubmittingOffersMisoEnergySchedOffer)
all_suite = unittest.TestSuite([suite1,suite2])
runner.run(all_suite)
I am getting the following error message:
[error] script [ RunMultitpleTest3112021 ] stopped with error in line 24
[error] AttributeError ( 'HTMLTestRunner' object has no attribute 'isAborted' )
[error] --- Traceback --- error source first
line: module ( function ) statement
24: main ( <module> ) loader = unittest.TestLoader()
[error] --- Traceback --- end --------------
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.