|
@@ -0,0 +1,17 @@
|
|
|
+from hytest import *
|
|
|
+from lib.webapi import apimgr
|
|
|
+class c1:
|
|
|
+ #测试用例名称
|
|
|
+ name='获取打赏标语'
|
|
|
+ #测试步骤
|
|
|
+ def teststeps(self):
|
|
|
+ INFO('测试步骤')
|
|
|
+ STEP(1,'第一步调用函数') #会出现在测试报告中
|
|
|
+ res = apimgr.reward_text()
|
|
|
+ status_code = res.status_code
|
|
|
+ STEP(stepNo=2, desc='第二步设置检查点')
|
|
|
+ # 检查响应状态码是否为 200
|
|
|
+ CHECK_POINT(desc='获取打赏标语是否正常', condition=status_code == 200 )
|
|
|
+
|
|
|
+
|
|
|
+
|