Commit 1f8f0104 by zhangjingdong

添加推荐位脚本

parent 9db070e7
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
<file leaf-file-name="execute_automation_scripts.py" pinned="false" current-in-tab="true"> <file leaf-file-name="execute_automation_scripts.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"> <entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="163"> <state relative-caret-position="522">
<caret line="16" column="22" lean-forward="true" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" /> <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="20" selection-end-line="29" selection-end-column="52" />
<folding> <folding>
<element signature="e#18#29#0" expanded="true" /> <element signature="e#18#29#0" expanded="true" />
</folding> </folding>
...@@ -26,6 +26,20 @@ ...@@ -26,6 +26,20 @@
</provider> </provider>
</entry> </entry>
</file> </file>
<file leaf-file-name="广场圈子_manage.postman_environment.json" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
</file>
<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="21510">
<caret line="1059" column="11063" selection-start-line="1059" selection-start-column="20" selection-end-line="1059" selection-end-column="11063" />
</state>
</provider>
</entry>
</file>
<file leaf-file-name="README.md" pinned="false" current-in-tab="false"> <file leaf-file-name="README.md" pinned="false" current-in-tab="false">
<entry file="file://$PROJECT_DIR$/README.md"> <entry file="file://$PROJECT_DIR$/README.md">
<provider selected="true" editor-type-id="text-editor" /> <provider selected="true" editor-type-id="text-editor" />
...@@ -82,17 +96,6 @@ ...@@ -82,17 +96,6 @@
</path> </path>
<path> <path>
<item name="bihe_interface_test" type="b2602c69:ProjectViewProjectNode" /> <item name="bihe_interface_test" type="b2602c69:ProjectViewProjectNode" />
<item name="bihe_interface_test" type="462c0819:PsiDirectoryNode" />
<item name="碧合app" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="bihe_interface_test" type="b2602c69:ProjectViewProjectNode" />
<item name="bihe_interface_test" type="462c0819:PsiDirectoryNode" />
<item name="碧合app" type="462c0819:PsiDirectoryNode" />
<item name="活动" type="462c0819:PsiDirectoryNode" />
</path>
<path>
<item name="bihe_interface_test" type="b2602c69:ProjectViewProjectNode" />
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" /> <item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
</path> </path>
</expand> </expand>
...@@ -161,7 +164,6 @@ ...@@ -161,7 +164,6 @@
</component> </component>
<component name="ToolWindowManager"> <component name="ToolWindowManager">
<frame x="0" y="0" width="1440" height="900" extended-state="0" /> <frame x="0" y="0" width="1440" height="900" extended-state="0" />
<editor active="true" />
<layout> <layout>
<window_info anchor="bottom" id="TODO" order="6" /> <window_info anchor="bottom" id="TODO" order="6" />
<window_info anchor="bottom" id="Event Log" order="7" side_tool="true" /> <window_info anchor="bottom" id="Event Log" order="7" side_tool="true" />
...@@ -283,10 +285,20 @@ ...@@ -283,10 +285,20 @@
<entry file="file://$PROJECT_DIR$/碧合app/.html.html" /> <entry file="file://$PROJECT_DIR$/碧合app/.html.html" />
<entry file="file://$PROJECT_DIR$/碧合app/活动2018-11-27_20:00:34.html" /> <entry file="file://$PROJECT_DIR$/碧合app/活动2018-11-27_20:00:34.html" />
<entry file="file://$PROJECT_DIR$/碧合app/活动2018-11-28_09:34:00.html" /> <entry file="file://$PROJECT_DIR$/碧合app/活动2018-11-28_09:34:00.html" />
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="21510">
<caret line="1059" column="11063" selection-start-line="1059" selection-start-column="20" selection-end-line="1059" selection-end-column="11063" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"> <entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor"> <provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="163"> <state relative-caret-position="522">
<caret line="16" column="22" lean-forward="true" selection-start-line="16" selection-start-column="22" selection-end-line="16" selection-end-column="22" /> <caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="20" selection-end-line="29" selection-end-column="52" />
<folding> <folding>
<element signature="e#18#29#0" expanded="true" /> <element signature="e#18#29#0" expanded="true" />
</folding> </folding>
......
{
{
"variables": [],
"info": {
"name": "APP推荐位",
"_postman_id": "a922a9c2-c0d4-8c50-45d4-2a54947151d8",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
},
"item": [
{
"name": "用户登录",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"// console.log(\"----------------responseBody--------------\"+responseBody);",
"var jsonData = JSON.parse(responseBody);",
"// console.log(\"----------------jsonData.data.accessToken--------------\"+jsonData.data.accessToken);",
"",
"if(jsonData.data !== null || jsonData.data !==\"\")",
"{",
" tests[\"accessToken\"] = true;",
" postman.setEnvironmentVariable(\"access-Token\",jsonData.data.accessToken);",
" ",
"}",
"else",
"{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"accessToken\"]=false;",
"}",
""
]
}
}
],
"request": {
"url": "{{gateway-user}}/app/login",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"ywb123\",\n \"equipment\": \"32bba7423e5f3feca\",\n \"channelId\": 1\n}"
},
"description": ""
},
"response": []
},
{
"name": "根据手机号获取用户信息",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"accountId\"] = true;",
" postman.setEnvironmentVariable(\"account_Id\",jsonData.data.accessToken);",
" ",
"}"
]
}
}
],
"request": {
"url": "{{gateway-user}}/user/userinfo/phone/{{user_phone}}",
"method": "GET",
"header": [],
"body": {},
"description": ""
},
"response": []
},
{
"name": "APP端分页查询科技小镇办公版推荐位可用信息",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}"
]
}
}
],
"request": {
"url": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"accountId\": {{account_Id}},\r\n \"blockType\": \"ENTERPRISE\",\r\n \"range\": \"PAGE\",\r\n \"status\": \"ENABLE\"\r\n}"
},
"description": ""
},
"response": []
},
{
"name": "APP端分页查询科技小镇生活版推荐位可用信息 copy",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}"
]
}
}
],
"request": {
"url": "{{gateway-user}}/recommendation/town/app/list/by/condition/?p=1&c=20",
"method": "POST",
"header": [
{
"key": "access-token",
"value": "{{access-Token}}",
"description": ""
},
{
"key": "Content-Type",
"value": "application/json",
"description": ""
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"townId\": 58,\r\n \"accountId\": 90483,\r\n \"blockType\": \"ENTERPRISE\",\r\n \"range\": \"PAGE\",\r\n \"status\": \"ENABLE\"\r\n}"
},
"description": ""
},
"response": []
}
]
}
\ No newline at end of file
{
{
"id": "40b76b24-7adb-5356-18fe-c277e301adc0",
"name": "APP推荐位_manage",
"values": [
{
"key": "gateway-user",
"value": "https://usergwtest.bgycc.com",
"enabled": true,
"type": "text"
},
{
"key": "user_phone",
"value": "13410480252",
"enabled": true,
"type": "text"
},
{
"key": "access-Token",
"value": "f061bdcbddc540c8869adf6ed92b5c9f",
"enabled": true,
"type": "text"
},
{
"key": "account_Id",
"value": "90483",
"enabled": true,
"type": "text"
}
],
"timestamp": 1545119358141,
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-12-18T08:44:25.323Z",
"_postman_exported_using": "Postman/4.9.3"
}
\ No newline at end of file
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