Procházet zdrojové kódy

卢汉新增用例

luhan před 8 měsíci
rodič
revize
b42c5b6364

+ 0 - 0
test_case/qccq/青创培训/__init__.py


+ 19 - 0
test_case/qccq/青创培训/test_001_青创培训-线上培训-列表.yaml

@@ -0,0 +1,19 @@
+  -
+    name: 青创培训-线上培训-列表
+    request:
+      method: post
+      url: /api/service-qzh/auth/YcqQzhOnlineTrainController/trainPage
+      json:
+        pageNo : 1
+        pageSize : 5
+        query : {
+              isTop : 1,
+              state : "公示"
+        }
+      headers:
+        Token: ${read_yaml(token)}
+    extract:
+#      xspxid: '"id":"(.*?)"'
+      xspxid: $.data.result[0].id
+    validate:
+      - contains: true

+ 9 - 0
test_case/qccq/青创培训/test_002_青创培训-线上培训-详情.yaml

@@ -0,0 +1,9 @@
+  -
+    name: 青创培训-线上培训-详情
+    request:
+      method: get
+      url: /api/service-qzh/auth/YcqQzhOnlineTrainController/getOne?id=${read_yaml(xspxid)}&type=1
+      headers:
+        Token: ${read_yaml(token)}
+    validate:
+      - contains: true

+ 18 - 0
test_case/qccq/青创培训/test_003_青创培训-线下培训-列表.yaml

@@ -0,0 +1,18 @@
+  -
+    name: 青创培训-线下培训-列表
+    request:
+      method: post
+      url: /api/service-qzh/auth/publishActivityController/activityQueryForApp
+      json:
+        pageNo : 1
+        pageSize : 5
+        query : {
+              businessBelong : ["InnovationAndEntrepreneurship"]
+        }
+      headers:
+        Token: ${read_yaml(token)}
+    extract:
+#      xxpxid: '"id":"(.*?)"'
+      xxpxid: $.data.result[0].id
+    validate:
+      - contains: true

+ 9 - 0
test_case/qccq/青创培训/test_004_青创培训-线下培训-详情.yaml

@@ -0,0 +1,9 @@
+  -
+    name: 青创培训-线下培训-详情
+    request:
+      method: get
+      url: /api/service-qzh/auth/publishActivityController/updateBrowserCount/${read_yaml(xxpxid)}
+      headers:
+        Token: ${read_yaml(token)}
+    validate:
+      - contains: true

+ 0 - 0
test_case/qccq/青年大学习/__init__.py