def test_invoice_packing_list(self): u'''测试销项发票明细表''' excel = excelHandle() filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\6.销项统计\销项发票明细表-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables)
def test_dhistorical_records(self): u'''查验历史记录''' excel = excelHandle() logger.info("开始回放脚本查验历史记录") logger.info("开始回放脚本查验历史记录") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\5.企业受票\查验历史记录-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本查验历史记录") logger.info("结束回放脚本查验历史记录")
def test_dstaff_management(self): u'''测试员工管理''' excel = excelHandle() logger.info("开始回放脚本员工管理") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\3.应用设置\员工管理-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本员工管理") logger.info("结束回放脚本员工管理") logger.info("结束回放脚本员工管理") logger.info("结束回放脚本员工管理")
def test_code_open(self): u'''码上开票''' excel = excelHandle() logger.info("开始回放脚本码上开票") logger.info("开始回放脚本码上开票") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\4.企业开票\码上开票-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本码上开票") logger.info("结束回放脚本码上开票") logger.info("结束回放脚本码上开票") logger.info("结束回放脚本码上开票")
def test_reimbursement_statistics(self): u'''测试报销统计表''' excel = excelHandle() logger.info("开始回放脚本报销统计表") logger.info("开始回放脚本报销统计表") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\7.进项统计\报销统计表-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本报销统计表") logger.info("结束回放脚本报销统计表") logger.info("结束回放脚本报销统计表") logger.info("结束回放脚本报销统计表")
def test_dpersonal_center(self): u'''测试个人中心''' excel = excelHandle() logger.info("开始回放脚本个人中心") logger.info("开始回放脚本个人中心") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\11.个人用户操作\个人中心-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本个人中心") logger.info("结束回放脚本个人中心") logger.info("结束回放脚本个人中心") logger.info("结束回放脚本个人中心")
def test_fkhda_management(self): u'''测试客户档案''' excel = excelHandle() logger.info("开始回放脚本客户档案") # filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\3.应用设置\客户档案-正.xlsx' filename = r'C:\Users\Administrator\Desktop\Demo.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本客户档案") logger.info("结束回放脚本客户档案") logger.info("结束回放脚本客户档案") logger.info("结束回放脚本客户档案")
def test_other_operation(self): u'''测试修改企业密码,在线客服,帮助文档''' excel = excelHandle() logger.info("开始回放脚本首页") logger.info("开始回放脚本首页") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\2.首页\其他操作.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本首页") logger.info("结束回放脚本首页") logger.info("结束回放脚本首页") logger.info("结束回放脚本首页")
def test_caigou_account(self): u'''采购台账''' excel = excelHandle() logger.info("开始回放脚本采购台账") logger.info("开始回放脚本采购台账") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\5.企业受票\采购台账-正.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本采购台账") logger.info("结束回放脚本采购台账") logger.info("结束回放脚本采购台账") logger.info("结束回放脚本采购台账")
def test_dnot_open(self): u'''未开票''' excel = excelHandle() logger.info("开始回放脚本未开票") logger.info("开始回放脚本未开票") filename = r'D:\PycharmProjects\AutoTestEinvoice\script\税务云-正式环境fapiao\4.企业开票\未开票-正.xlsx' # filename = r'C:\Users\Administrator\Desktop\Demo.xlsx' sheetname = 'Sheet1' tables = excel.read_excel(unicode(filename, "utf-8"), sheetname) # 公共部分,读取表格 util = Utils(BasePage) util.util(self.driver, tables) logger.info("结束回放脚本未开票") logger.info("结束回放脚本未开票") logger.info("结束回放脚本未开票") logger.info("结束回放脚本未开票")