Commit 3ab7d57a by zhangjingdong

添加脚本日志

parent 1f8f0104
No preview for this file type
<?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="" />
<list default="true" id="243b24f3-3df7-4c72-bf73-8de81d5ca458" name="Default" comment="">
<change beforePath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/企业墙/企业墙.postman_collection.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/企业墙/企业墙.postman_collection.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/推荐位/推荐位.postman_collection.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/推荐位/推荐位.postman_collection.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/推荐位/推荐位_manage.postman_environment.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/推荐位/推荐位_manage.postman_environment.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" beforeDir="false" afterPath="$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" afterDir="false" />
</list>
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
<option name="TRACKING_ENABLED" value="true" />
<option name="SHOW_DIALOG" value="false" />
......@@ -10,15 +18,15 @@
<option name="LAST_RESOLUTION" value="IGNORE" />
</component>
<component name="CoverageDataManager">
<SUITE FILE_PATH="coverage/bihe_interface_test$execute_automation_scripts.coverage" NAME="execute_automation_scripts Coverage Results" MODIFIED="1544607852384" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/碧合app" />
<SUITE FILE_PATH="coverage/bihe_interface_test$execute_automation_scripts.coverage" NAME="execute_automation_scripts Coverage Results" MODIFIED="1545140130608" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$/碧合app" />
</component>
<component name="FileEditorManager">
<leaf SIDE_TABS_SIZE_LIMIT_KEY="300">
<file leaf-file-name="execute_automation_scripts.py" pinned="false" current-in-tab="true">
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="522">
<caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="20" selection-end-line="29" selection-end-column="52" />
<state relative-caret-position="216">
<caret line="12" column="58" lean-forward="true" selection-start-line="12" selection-start-column="58" selection-end-line="12" selection-end-column="58" />
<folding>
<element signature="e#18#29#0" expanded="true" />
</folding>
......@@ -26,6 +34,24 @@
</provider>
</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="337">
<caret line="90" column="12" lean-forward="true" selection-start-line="90" selection-start-column="12" selection-end-line="90" selection-end-column="12" />
</state>
</provider>
</entry>
</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">
<state relative-caret-position="324">
<caret line="18" column="44" lean-forward="true" selection-start-line="18" selection-start-column="44" selection-end-line="18" selection-end-column="44" />
</state>
</provider>
</entry>
</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" />
......@@ -34,8 +60,17 @@
<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 relative-caret-position="4067">
<caret line="1294" column="68" selection-start-line="1294" selection-start-column="68" selection-end-line="1294" selection-end-column="68" />
</state>
</provider>
</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="366">
<caret line="201" column="21" lean-forward="true" selection-start-line="201" selection-start-column="21" selection-end-line="201" selection-end-column="21" />
</state>
</provider>
</entry>
......@@ -47,7 +82,20 @@
</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" />
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="260">
<caret line="81" column="4" selection-start-line="81" selection-start-column="4" selection-end-line="81" selection-end-column="4" />
</state>
</provider>
</entry>
</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">
<state relative-caret-position="236">
<caret line="23" column="26" lean-forward="true" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
</state>
</provider>
</entry>
</file>
</leaf>
......@@ -59,12 +107,27 @@
</list>
</option>
</component>
<component name="FindInProjectRecents">
<findStrings>
<find>活动报名</find>
<find>tests[\&quot;code\&quot;]=false;</find>
</findStrings>
<replaceStrings>
<replace>tests[\&quot;code\&quot;+jsonData.msg]=false;</replace>
</replaceStrings>
</component>
<component name="Git.Settings">
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
</component>
<component name="IdeDocumentHistory">
<option name="CHANGED_PATHS">
<list>
<option value="$PROJECT_DIR$/碧合app/推荐位/推荐位_manage.postman_environment.json" />
<option value="$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" />
<option value="$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json" />
<option value="$PROJECT_DIR$/碧合app/推荐位/推荐位.postman_collection.json" />
<option value="$PROJECT_DIR$/碧合app/广场圈子/广场圈子.postman_collection.json" />
<option value="$PROJECT_DIR$/碧合app/企业墙/企业墙.postman_collection.json" />
<option value="$PROJECT_DIR$/碧合app/execute_automation_scripts.py" />
</list>
</option>
......@@ -96,6 +159,35 @@
</path>
<path>
<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="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="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="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" />
</path>
</expand>
......@@ -164,15 +256,16 @@
</component>
<component name="ToolWindowManager">
<frame x="0" y="0" width="1440" height="900" extended-state="0" />
<editor active="true" />
<layout>
<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="Database Changes" order="7" show_stripe_button="false" />
<window_info anchor="bottom" id="Run" order="2" weight="0.32969698" />
<window_info active="true" anchor="bottom" id="Run" order="2" visible="true" weight="0.32969698" />
<window_info anchor="bottom" id="Version Control" order="7" />
<window_info anchor="bottom" id="Python Console" order="7" />
<window_info anchor="bottom" id="Terminal" order="7" weight="0.32969698" />
<window_info active="true" content_ui="combo" id="Project" order="0" visible="true" weight="0.2639485" />
<window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.2639485" />
<window_info anchor="bottom" id="Docker" order="7" show_stripe_button="false" />
<window_info anchor="right" id="Database" order="3" />
<window_info anchor="right" id="SciView" order="3" />
......@@ -273,13 +366,9 @@
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/htmlOut.html" />
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json" />
<entry file="file://$PROJECT_DIR$/README.md">
<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" />
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/htmlOut.html" />
<entry file="file://$PROJECT_DIR$/碧合app/活动2018-11-27" />
<entry file="file://$PROJECT_DIR$/碧合app/.html.html" />
......@@ -288,17 +377,52 @@
<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/推荐位/推荐位_manage.postman_environment.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="324">
<caret line="18" column="44" lean-forward="true" selection-start-line="18" selection-start-column="44" selection-end-line="18" selection-end-column="44" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/企业墙/企业墙.postman_collection.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="366">
<caret line="201" column="21" lean-forward="true" selection-start-line="201" selection-start-column="21" selection-end-line="201" selection-end-column="21" />
</state>
</provider>
</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 relative-caret-position="4067">
<caret line="1294" column="68" selection-start-line="1294" selection-start-column="68" selection-end-line="1294" selection-end-column="68" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/推荐位/推荐位.postman_collection.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="337">
<caret line="90" column="12" lean-forward="true" selection-start-line="90" selection-start-column="12" selection-end-line="90" selection-end-column="12" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="260">
<caret line="81" column="4" selection-start-line="81" selection-start-column="4" selection-end-line="81" selection-end-column="4" />
</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="236">
<caret line="23" column="26" lean-forward="true" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
</state>
</provider>
</entry>
<entry file="file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py">
<provider selected="true" editor-type-id="text-editor">
<state relative-caret-position="522">
<caret line="29" column="52" lean-forward="true" selection-start-line="29" selection-start-column="20" selection-end-line="29" selection-end-column="52" />
<state relative-caret-position="216">
<caret line="12" column="58" lean-forward="true" selection-start-line="12" selection-start-column="58" selection-end-line="12" selection-end-column="58" />
<folding>
<element signature="e#18#29#0" expanded="true" />
</folding>
......
No preview for this file type
# coding = utf-8
# coding = utf-8
......@@ -9,6 +9,7 @@ class PostmanApi:
def post(self):
file = []
report_file = "/phantom/file/testreport/"
# report_file = "/Users/lucas/Documents/reporter/"
BASE_DIR = os.path.realpath(os.path.dirname(os.path.abspath(__file__)))
path = os.listdir(BASE_DIR)
delay_request = str(50)
......
{
{
......@@ -66,7 +66,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
......@@ -128,7 +128,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
......@@ -190,7 +190,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
......
{
{
......@@ -90,7 +90,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -160,7 +160,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -229,7 +229,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -282,7 +282,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -335,7 +335,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -385,7 +385,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -435,7 +435,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -506,7 +506,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -577,7 +577,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -647,7 +647,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -717,7 +717,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -770,7 +770,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -841,7 +841,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -920,7 +920,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -1079,7 +1079,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -1150,7 +1150,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -1221,7 +1221,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......@@ -1292,7 +1292,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
"pm.test(\"Response time is less than 3000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(3000);",
......
{
{
{
"variables": [],
"info": {
"name": "APP推荐位",
"name": "推荐位",
"_postman_id": "a922a9c2-c0d4-8c50-45d4-2a54947151d8",
"description": "",
"schema": "https://schema.getpostman.com/json/collection/v2.0.0/collection.json"
......@@ -65,7 +65,7 @@
"if(jsonData.code === \"0\")",
"{",
" tests[\"accountId\"] = true;",
" postman.setEnvironmentVariable(\"account_Id\",jsonData.data.accessToken);",
" postman.setEnvironmentVariable(\"account_Id\",jsonData.data.accountId);",
" ",
"}"
]
......@@ -73,7 +73,7 @@
}
],
"request": {
"url": "{{gateway-user}}/user/userinfo/phone/{{user_phone}}",
"url": " {{gateway-user}}/user/userinfo/phone/{{user_phone}}",
"method": "GET",
"header": [],
"body": {},
......@@ -91,12 +91,13 @@
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"if(jsonData.data !== null)",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
......@@ -140,7 +141,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}"
]
}
......@@ -168,6 +169,51 @@
"description": ""
},
"response": []
},
{
"name": "APP端分页查询科技小镇生活版推荐位可用信息 copy copy",
"event": [
{
"listen": "test",
"script": {
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
"if(jsonData.code === \"0\")",
"if(jsonData.data !== null)",
"{",
" tests[\"code\"] = true;",
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"+jsonData.msg]=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\": \"EXIST\",\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",
"name": "推荐位_manage",
"values": [
{
"key": "gateway-user",
......@@ -10,13 +10,13 @@
},
{
"key": "user_phone",
"value": "13410480252",
"value": "13410480256",
"enabled": true,
"type": "text"
},
{
"key": "access-Token",
"value": "f061bdcbddc540c8869adf6ed92b5c9f",
"value": "bdfb9a3f9e8445649b49b1a9f027a769",
"enabled": true,
"type": "text"
},
......@@ -27,8 +27,8 @@
"type": "text"
}
],
"timestamp": 1545119358141,
"timestamp": 1545124453130,
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-12-18T08:44:25.323Z",
"_postman_exported_at": "2018-12-18T09:15:45.779Z",
"_postman_exported_using": "Postman/4.9.3"
}
\ No newline at end of file
{
{
......@@ -54,7 +54,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"userPhone\": {{user_phone}},\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
"raw": "{\n \"userPhone\": 18670340158,\n \"userPassword\": \"123456\",\n \"equipment\": \"c5d93c486a95d658\",\n \"channelId\": 1\n}"
},
"url": "{{gateway-user}}/app/login"
},
......@@ -76,7 +76,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......@@ -119,7 +119,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......@@ -172,7 +172,7 @@
{
"listen": "test",
"script": {
"id": "f008e296-82a3-4d20-a473-7c2827a257eb",
"id": "293b7219-35c2-4b3a-8dab-a90f193d0436",
"type": "text/javascript",
"exec": [
"var jsonData = JSON.parse(responseBody);",
......@@ -181,10 +181,11 @@
" tests[\"code\"] = true;",
"}",
"else{",
" tests[\"code\"+jsonData.msg]=false;",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
"}",
""
"",
"eval(globals.assert);"
]
}
}
......@@ -203,7 +204,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"activityId\":196,\n \"enrollStatus\": \"CONFIRM\",\n\n \"townId\": 1\n}"
"raw": "{\n \"activityId\":196,\n \"enrollStatus\": \"CONFIRM\",\n \"townId\": 1\n}"
},
"url": "{{gateway-user}}/app/new/activity/enroll"
},
......@@ -225,7 +226,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......@@ -268,7 +269,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......@@ -299,7 +300,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......@@ -335,7 +336,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......@@ -371,7 +372,7 @@
"}",
"else{",
" console.log(\"接口返回错误:\"+jsonData.msg);",
" tests[\"code\"]=false;",
" tests[\"code\"+jsonData.msg]=false;",
"}",
""
]
......
{
{
......@@ -28,6 +28,6 @@
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2018-11-27T03:29:41.309Z",
"_postman_exported_at": "2018-12-18T11:08:37.386Z",
"_postman_exported_using": "Postman/6.1.4"
}
\ 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