← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #251396]: How to create xml report using xmltestrunner for test suite

 

Question #251396 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251396

    Status: Open => Answered

RaiMan proposed the following answer:
# some code above --- ok

def suite():
    suite.addTest(xmlreport('open_the_emulator_and_launch_the_securechatapp'))
    suite.addTest(xmlreport('phone_number_validations'))
    suite.addTest(xmlreport('putting_invalid_otp_code'))
    suite.addTest(xmlreport('getting_otp_code_through_phone_call'))
    return suite

suite = suite()

timestamp = time.strftime('%Y_%m_%d_%H_%M')
rname = 'Test_Report_'+timestamp+'.xml'
my_dir="path"

result = xmlrunner.XMLTestRunner(file(my_dir+rname,"w")).run(suite)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.