def teststeps(self):
     response = api_mgr.customer_list(pagesize=10, pagenumber=1)
     customer_list = api_mgr.customer_list().json()["retlist"]
     ret = response.json()
     INFO(ret)
     CHECK_POINT("判断返回的消息体", ret == {
         "ret": 0,
         "retlist": customer_list,
         "total": 10
     })
 def teststeps(self):
     STEP(3, "测试")
     response = api_mgr.customer_list(pagesize=5, pagenumber=3)
     # customer_list = api_mgr.customer_list().json()["retlist"]
     ret = response.json()
     INFO(ret)
     # INFO(customer_list)
     CHECK_POINT("判断返回的消息体", ret == {"ret": 0, "retlist": [], "total": 0})
Beispiel #3
0
 def teststeps(self):
     response = api_mgr.customer_list(keywords=None)
     ret = response.json()
     INFO(ret)
     CHECK_POINT("返回的消息体", ret == {
         "ret": 0,
         "retlist": [],
         'total': 0,
     })
Beispiel #4
0
 def teststeps(self):
     response = api_mgr.customer_list(pagesize=None)
     ret = response.json()
     INFO(ret)
     CHECK_POINT("判断返回的消息体", ret["ret"] == 2)