Commit 36ab66e5 by zhangjingdong

修改获取用户动态信息脚本

parent f831133d
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json" afterDir="false" />
</list>
<list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment="" />
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -64,7 +62,7 @@
</provider>
</entry>
</file>
<file leaf-file-name="广场圈子.postman_collection.json" pinned="false" current-in-tab="true">
<file leaf-file-name="广场圈子.postman_collection.json" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="381">
......@@ -82,11 +80,11 @@
</provider>
</entry>
</file>
<file leaf-file-name="广场圈子_manage.postman_environment.json" pinned="false" current-in-tab="false">
<file leaf-file-name="广场圈子_manage.postman_environment.json" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="292">
<caret line="25" column="14" lean-forward="true" selection-start-line="25" selection-start-column="14" selection-end-line="25" selection-end-column="14" />
<state relative-caret-position="324">
<caret line="18" column="10" lean-forward="true" selection-start-line="18" selection-start-column="10" selection-end-line="18" selection-end-column="10" />
</state>
</provider>
</entry>
......@@ -583,13 +581,6 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="292">
<caret line="25" column="14" lean-forward="true" selection-start-line="25" selection-start-column="14" selection-end-line="25" selection-end-column="14" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="389">
......@@ -621,5 +612,12 @@
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="324">
<caret line="18" column="10" lean-forward="true" selection-start-line="18" selection-start-column="10" selection-end-line="18" selection-end-column="10" />
</state>
</provider>
</entry>
</component>
</project>
\ No newline at end of file
{
{
......@@ -889,20 +889,21 @@
{
"listen": "test",
"script": {
"id": "bd7fd120-db49-4483-a5d0-6141db48b60a",
"id": "2f2f3b83-eec0-4bdb-b097-b13ce459ed4a",
"type": "text/javascript",
"exec": [
"// 话题IDS",
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.data.list[0].topicPictureResponseDTO[0].id !== null || jsonData.data.list[0].topicPictureResponseDTO[0].id !==\"\")",
"{",
" tests[\"IDS\"] = true;",
" postman.setEnvironmentVariable(\"IDS\",jsonData.data.list[0].topicPictureResponseDTO[0].id);",
"// if(jsonData.data.list[0].topicPictureResponseDTO[0].id !== null || jsonData.data.list[0].topicPictureResponseDTO[0].id !==\"\")",
"// {",
"// tests[\"IDS\"] = true;",
"// postman.setEnvironmentVariable(\"IDS\",jsonData.data.list[0].topicPictureResponseDTO[0].id);",
" ",
"}",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"var jsonData = JSON.parse(responseBody);",
"// }",
"// pm.test(\"Status code is 200\", function () {",
"// pm.response.to.have.status(200);",
"// });",
"// var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
......@@ -914,8 +915,7 @@
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
"});"
],
"type": "text/javascript"
]
}
}
],
......@@ -924,12 +924,10 @@
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
......@@ -962,7 +960,7 @@
},
"response": [
{
"id": "ad6602a6-ca1e-44f8-8d91-e63c0d6b5073",
"id": "5e81d1af-5e92-47ed-968a-f534018465ee",
"name": "查询最新的两个用户动态信息【办公版】",
"originalRequest": {
"method": "POST",
......@@ -1226,12 +1224,10 @@
"header": [
{
"key": "Content-Type",
"type": "text",
"value": "application/json"
},
{
"key": "access-Token",
"type": "text",
"value": "{{access-Token}}"
}
],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment