def setUpClass(cls): cls.data_list = excel_to_list("../data/test_user_data.xls", "登录") # 读取该测试类所有用例数据 cls.headers = { "accept": "application/json, " "text/plain, */*", "content-type": "application/json;charset=UTF-8", "invoke_source": "2233", "out_request_no": "EYRYZ5tVIB", "token": "null" }
def setUpClass(cls): cls.data_list = excel_to_list("../data/test_user_data.xls", "部门分类") # 读取该测试类所有用例数据 cls.headers = getheader()