Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
zhangjingdong
/
bihe_interface_test
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1f8f0104
authored
Dec 18, 2018
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加推荐位脚本
parent
9db070e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
239 additions
and
16 deletions
+239
-16
.idea/workspace.xml
+28
-16
碧合app/推荐位/推荐位.postman_collection.json
+175
-0
碧合app/推荐位/推荐位_manage.postman_environment.json
+36
-0
No files found.
.idea/workspace.xml
View file @
1f8f0104
...
...
@@ -17,8 +17,8 @@
<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=
"
163
"
>
<caret
line=
"
16"
column=
"22"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"22"
selection-end-line=
"16"
selection-end-column=
"2
2"
/>
<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=
"5
2"
/>
<folding>
<element
signature=
"e#18#29#0"
expanded=
"true"
/>
</folding>
...
...
@@ -26,6 +26,20 @@
</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"
/>
</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"
>
<entry
file=
"file://$PROJECT_DIR$/README.md"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
/>
...
...
@@ -82,17 +96,6 @@
</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=
"External Libraries"
type=
"cb654da1:ExternalLibrariesNode"
/>
</path>
</expand>
...
...
@@ -161,7 +164,6 @@
</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"
/>
...
...
@@ -283,10 +285,20 @@
<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-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"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
163
"
>
<caret
line=
"
16"
column=
"22"
lean-forward=
"true"
selection-start-line=
"16"
selection-start-column=
"22"
selection-end-line=
"16"
selection-end-column=
"2
2"
/>
<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=
"5
2"
/>
<folding>
<element
signature=
"e#18#29#0"
expanded=
"true"
/>
</folding>
...
...
碧合app/推荐位/推荐位.postman_collection.json
0 → 100644
View file @
1f8f0104
{
{
"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
碧合app/推荐位/推荐位_manage.postman_environment.json
0 → 100644
View file @
1f8f0104
{
{
"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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment