def test01_login(aa,case_name,jsonData,http_code,success,code,message):
     headers = {"Content-Type": "application/json"} # 请求头
     jsonData = jsonData
     repons=aa.testapi.loginapi(jsonData ,headers)
     # # 返回登录结果
     # kk=repons.json()
     # # 打印返回登录结果
     # print("登录为:",kk)
     logging.info("登录为:{}".format(repons.json()))
     duanyan(http_code,success,code,message, repons, aa)
 def test01_login(self):
     headers = {"Content-Type": "application/json"}  # 请求头
     jsonData = {"mobile": "13800000002", "password": "******"}
     repons = self.testapi.loginapi(jsonData, headers)
     # # 返回登录结果
     # kk=repons.json()
     # # 打印返回登录结果
     # print("登录为:",kk)
     logging.info("登录为:{}".format(repons.json()))
     duanyan(200, True, 10000, "操作成功", repons, self)
 def test08_less_mobile(self):
     headers = {"Content-Type": "application/json"}  # 请求头
     jsonData = {"password": "******"}
     repons = self.testapi.loginapi(jsonData, headers)
     # # 返回登录结果
     # kk=repons.json()
     # # 打印返回登录结果
     # print("登录为:",kk)
     logging.info("登录为:{}".format(repons.json()))
     duanyan(200, False, 20001, "用户名或密码错误", repons, self)
 def test12_None(self):
     headers = {"Content-Type": "application/json"}  # 请求头
     jsonData = None
     repons = self.testapi.loginapi(jsonData, headers)
     # # 返回登录结果
     # kk=repons.json()
     # # 打印返回登录结果
     # print("登录为:",kk)
     logging.info("登录为:{}".format(repons.json()))
     duanyan(200, False, 99999, "抱歉,系统繁忙,请稍后重试!", repons, self)