sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #57005
[Question #696217]: Run Multiple test and generate results in one test report
New question #696217 on SikuliX:
https://answers.launchpad.net/sikuli/+question/696217
so for my test result it generating 3 reports and the one that has both of the test is blank though and the other 2 have the individual test results. Is there a way to have results appear in just one report? Or atleast have the results appear in one html file.
This is what I have in the Test Suite:
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 tried to replace (in the individual tests)
suite = unittest.TestLoader().loadTestsFromTestCase(SubmittingOffersMisoHourlyParameters)
outfile = open("SubmittingOffersMisoHourlyParameters.html", "w")
myrunner = HTMLTestRunner.HTMLTestRunner(stream = outfile, title = 'SubmittingOffersMisoHourlyParameters', description = 'NEW').run(suite)
with this
if __name__ == '__main__':
unittest.main(testRunner=HTMLTestRunner.HTMLTestRunner())
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.