set_keeplogin.py 433 B

1234567891011121314
  1. from hytest import *
  2. from lib.webapi import apimgr
  3. class c1:
  4. name = "设置登录保持期"
  5. def teststeps(self):
  6. INFO("测试步骤")
  7. STEP(1, '第一步调用函数')
  8. res=apimgr.set_keeplogin()
  9. r = res.json()
  10. actural = r["flag"]
  11. STEP(2, '第二步设置检查点')
  12. # 设置检查点
  13. CHECK_POINT('检查设置登录保持期接口是否正常', actural == True)