def test_interopen_suite(): suite= unittest.TestSuite() suite.addTest(get_order_list('test_get_order_list')) suite.addTest(get_order('test_get_order')) suite.addTest(order_envelope_is_share('test_order_envelope_is_share')) #outfile=open("c://edaixi_testdata//report.html",'wb') #filename = 'G:\\seleniums\\result.html' currenttime=time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) print currenttime #fp = file("/usr/edaixi_report/"+currenttime+"caiwu_test_report.html", 'wb') fp = file("c:\\edaixi_testdata\\"+currenttime+"interopen_test_report.html", 'wb') #fp = file("c:\\edaixi_testdata\\20150717caiwu_test_report.html", 'wb') htmlRunner= HTMLTestRunner.HTMLTestRunner(stream=fp,title="edaixi all open testing result",description="201507 luke") #suite = unittest.TestLoader().loadTestsFromTestCase(MyTest) htmlRunner.run(suite) fp.close()
def test_interopen_suite(): suite = unittest.TestSuite() suite.addTest(get_order_list('test_get_order_list')) suite.addTest(get_order('test_get_order')) suite.addTest(order_envelope_is_share('test_order_envelope_is_share')) #outfile=open("c://edaixi_testdata//report.html",'wb') #filename = 'G:\\seleniums\\result.html' currenttime = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) print currenttime #fp = file("/usr/edaixi_report/"+currenttime+"caiwu_test_report.html", 'wb') fp = file( "c:\\edaixi_testdata\\" + currenttime + "interopen_test_report.html", 'wb') #fp = file("c:\\edaixi_testdata\\20150717caiwu_test_report.html", 'wb') htmlRunner = HTMLTestRunner.HTMLTestRunner( stream=fp, title="edaixi all open testing result", description="201507 luke") #suite = unittest.TestLoader().loadTestsFromTestCase(MyTest) htmlRunner.run(suite) fp.close()
import unittest, time, re import HTMLTestRunner from get_order_list import * from get_order import * from order_envelope_is_share import * from create_order import * if __name__ == '__main__': suite = unittest.TestSuite() suite= unittest.TestSuite() suite.addTest(get_order_list('test_get_order_list')) suite.addTest(get_order('test_get_order')) suite.addTest(order_envelope_is_share('test_order_envelope_is_share')) suite.addTest(create_order('test_create_order')) #outfile=open("c://edaixi_testdata//report.html",'wb') #filename = 'G:\\seleniums\\result.html' currenttime=time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) print currenttime #fp = file("/usr/edaixi_report/"+currenttime+"caiwu_test_report.html", 'wb') fp = file("c:\\edaixi_testdata\\"+currenttime+"interopen_test_report.html", 'wb') #fp = file("c:\\edaixi_testdata\\20150717caiwu_test_report.html", 'wb') htmlRunner= HTMLTestRunner.HTMLTestRunner(stream=fp,title="edaixi all open testing result",description="201507 luke") #suite = unittest.TestLoader().loadTestsFromTestCase(MyTest) htmlRunner.run(suite) fp.close()
import unittest, time, re import HTMLTestRunner from get_order_list import * from get_order import * from order_envelope_is_share import * from create_order import * if __name__ == '__main__': suite = unittest.TestSuite() suite = unittest.TestSuite() suite.addTest(get_order_list('test_get_order_list')) suite.addTest(get_order('test_get_order')) suite.addTest(order_envelope_is_share('test_order_envelope_is_share')) suite.addTest(create_order('test_create_order')) #outfile=open("c://edaixi_testdata//report.html",'wb') #filename = 'G:\\seleniums\\result.html' currenttime = time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime()) print currenttime #fp = file("/usr/edaixi_report/"+currenttime+"caiwu_test_report.html", 'wb') fp = file( "c:\\edaixi_testdata\\" + currenttime + "interopen_test_report.html", 'wb') #fp = file("c:\\edaixi_testdata\\20150717caiwu_test_report.html", 'wb') htmlRunner = HTMLTestRunner.HTMLTestRunner( stream=fp, title="edaixi all open testing result",