Example #1
0
 def setUpClass(cls):
     cls.dates = commons.commonMethod().readExcel('Lsh_Interface.xlsx','Test_Sale_Funnel_Operation')
     cls.dates_new = commons.commonMethod().readNewExcel('testcase.xlsx')
     cls.testUrl = cls.dates[0][0]
     cls.testmethod = cls.dates[1][0]
     cls.log = logger.Log('salesFunnelOperation')
     cls.logger = cls.log.getLog('test_salesFunnelOperation_interface')
Example #2
0
def get_email_path():
    #report_path = os.path.join(readConfig.proDir,'test_report')
    #将测试报告放置到Tomcat下
    report_path = "D:\\apache-tomcat-8.5.33\\webapps\\Lsh_Interface_Test_Report"
    report_file = commons.commonMethod().sortReport(report_path)
    local_time = commons.commonMethod().getTime()
    report_name = "LSH_" + local_time + "TestReport.html"
    send_report = os.path.join(report_path, report_file)
    #print(send_report)
    #configEmail.Email().sendEmail(send_report,report_name)
    return send_report, report_name
Example #3
0
 def setUpClass(cls):
     cls.dates = commons.commonMethod().readExcel('test_submitOrder.xlsx',
                                                  'Sheet1')
     cls.testUrl = cls.dates[0][0]
     cls.testmethod = cls.dates[1][0]
     cls.log = logger.Log('submitOrder')
     cls.logger = cls.log.getLog('test_SubmitOrder_interface')
 def setUpClass(cls):
     cls.dates = commons.commonMethod().readExcel(
         'Lsh_Interface.xlsx', 'Sales_Management_Report')
     #cls.dates_new = commons.commonMethod().readNewExcel('testcase.xlsx')
     cls.testUrl = cls.dates[0][0]
     cls.testmethod = cls.dates[1][0]
     cls.log = logger.Log('salesManagementReport')
     cls.logger = cls.log.getLog('test_ManagementReport_interface')
Example #5
0
def get_report_path():
    #本地路径
    #report_path = os.path.join(readConfig.proDir,'test_report')
    #将测试报告放置到Tomcat下
    report_path = "D:\\apache-tomcat-8.5.33\\webapps\\Lsh_Interface_Test_Report"
    #print(report_path)
    local_time = commons.commonMethod().getTime()
    report_name = "LSH_" + local_time + "TestReport.html"
    #print(report_name)
    report = os.path.join(report_path, report_name)
    send_url = "http://192.168.13.56:8080" + report.split(
        "webapps")[-1].replace("\\", "/")
    return report, send_url