luhan 9 месяцев назад
Родитель
Сommit
b15a4964d4

+ 1 - 0
test_case/qccq/test_043_青马工程-课件资源.yaml

@@ -14,5 +14,6 @@
         Token: ${read_yaml(token)}
     extract:
       kjid: $.data.result[0].certificateId
+      wjid: $.data.result[?(@.certificateType == 0)].fileId
     validate:
       - contains: true

+ 2 - 2
test_case/qccq/test_046_青马工程-课件详情.yaml

@@ -5,7 +5,7 @@
       url: /api/service-qm/auth/AppCoursewareController/viewCourseware?certificateId=${read_yaml(kjid)}
       headers:
         Token: ${read_yaml(token)}
-    extract:
-      wjid: $.data.fileId
+#    extract:
+#      wjid: $.data.fileId
     validate:
       - contains: true

+ 1 - 1
test_case/qccq/test_047_青马工程-文件详情.yaml

@@ -4,7 +4,7 @@
       method: post
       url: /api/service-qm/videoController/auth/getFileUrl
       json:
-        fileId: "78f7dc8b5bb65bdc9f95ce95c3edc6b6"
+        fileId: ${read_yaml(wjid)}
         fileType: "2"
       headers:
         Token: ${read_yaml(token)}