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
5e1cb2c4
authored
Dec 26, 2018
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化报告显示方式
parent
9dec9817
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
25 deletions
+25
-25
.idea/workspace.xml
+16
-19
碧合app/execute_automation_scripts.py
+9
-6
No files found.
.idea/workspace.xml
View file @
5e1cb2c4
...
@@ -2,10 +2,7 @@
...
@@ -2,10 +2,7 @@
<project
version=
"4"
>
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<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/公告/公告.postman_collection.json"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/碧合app/公告/公告.postman_collection.json"
afterDir=
"false"
/>
<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"
/>
</list>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
<option
name=
"TRACKING_ENABLED"
value=
"true"
/>
...
@@ -15,15 +12,15 @@
...
@@ -15,15 +12,15 @@
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
<option
name=
"LAST_RESOLUTION"
value=
"IGNORE"
/>
</component>
</component>
<component
name=
"CoverageDataManager"
>
<component
name=
"CoverageDataManager"
>
<SUITE
FILE_PATH=
"coverage/bihe_interface_test$execute_automation_scripts.coverage"
NAME=
"execute_automation_scripts Coverage Results"
MODIFIED=
"1545
140130608
"
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=
"1545
808680222
"
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>
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<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=
"
248
"
>
<state
relative-caret-position=
"
116
"
>
<caret
line=
"1
4"
column=
"31"
lean-forward=
"true"
selection-start-line=
"14"
selection-start-column=
"31"
selection-end-line=
"14"
selection-end-column=
"31
"
/>
<caret
line=
"1
1"
column=
"49"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"49"
selection-end-line=
"11"
selection-end-column=
"49
"
/>
<folding>
<folding>
<element
signature=
"e#18#29#0"
expanded=
"true"
/>
<element
signature=
"e#18#29#0"
expanded=
"true"
/>
</folding>
</folding>
...
@@ -93,8 +90,8 @@
...
@@ -93,8 +90,8 @@
<file
leaf-file-name=
"活动.postman_collection.json"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"活动.postman_collection.json"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json"
>
<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=
"2
60
"
>
<state
relative-caret-position=
"2
96
"
>
<caret
line=
"8
1"
column=
"4"
selection-start-line=
"81"
selection-start-column=
"4"
selection-end-line=
"81
"
selection-end-column=
"4"
/>
<caret
line=
"8
3"
column=
"4"
selection-start-line=
"83"
selection-start-column=
"4"
selection-end-line=
"83
"
selection-end-column=
"4"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -102,8 +99,8 @@
...
@@ -102,8 +99,8 @@
<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=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json"
>
<entry
file=
"file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
236
"
>
<state
relative-caret-position=
"
344
"
>
<caret
line=
"2
3"
column=
"26"
selection-start-line=
"23"
selection-start-column=
"26"
selection-end-line=
"23
"
selection-end-column=
"26"
/>
<caret
line=
"2
9"
column=
"26"
selection-start-line=
"29"
selection-start-column=
"26"
selection-end-line=
"29
"
selection-end-column=
"26"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -283,11 +280,11 @@
...
@@ -283,11 +280,11 @@
<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"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Database Changes"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true"
weight=
"0.32969698"
/>
<window_info
a
ctive=
"true"
a
nchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true"
weight=
"0.32969698"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"7"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"7"
weight=
"0.32969698"
/>
<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=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"Database"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"SciView"
order=
"3"
/>
<window_info
anchor=
"right"
id=
"SciView"
order=
"3"
/>
...
@@ -405,15 +402,15 @@
...
@@ -405,15 +402,15 @@
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/活动/活动.postman_collection.json"
>
<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=
"2
60
"
>
<state
relative-caret-position=
"2
96
"
>
<caret
line=
"8
1"
column=
"4"
selection-start-line=
"81"
selection-start-column=
"4"
selection-end-line=
"81
"
selection-end-column=
"4"
/>
<caret
line=
"8
3"
column=
"4"
selection-start-line=
"83"
selection-start-column=
"4"
selection-end-line=
"83
"
selection-end-column=
"4"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json"
>
<entry
file=
"file://$PROJECT_DIR$/碧合app/活动/活动_manage.postman_environment.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
236
"
>
<state
relative-caret-position=
"
344
"
>
<caret
line=
"2
3"
column=
"26"
selection-start-line=
"23"
selection-start-column=
"26"
selection-end-line=
"23
"
selection-end-column=
"26"
/>
<caret
line=
"2
9"
column=
"26"
selection-start-line=
"29"
selection-start-column=
"26"
selection-end-line=
"29
"
selection-end-column=
"26"
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -464,8 +461,8 @@
...
@@ -464,8 +461,8 @@
</entry>
</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=
"
248
"
>
<state
relative-caret-position=
"
116
"
>
<caret
line=
"1
4"
column=
"31"
lean-forward=
"true"
selection-start-line=
"14"
selection-start-column=
"31"
selection-end-line=
"14"
selection-end-column=
"31
"
/>
<caret
line=
"1
1"
column=
"49"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"49"
selection-end-line=
"11"
selection-end-column=
"49
"
/>
<folding>
<folding>
<element
signature=
"e#18#29#0"
expanded=
"true"
/>
<element
signature=
"e#18#29#0"
expanded=
"true"
/>
</folding>
</folding>
...
...
碧合app/execute_automation_scripts.py
View file @
5e1cb2c4
# cod
ing = utf-8
# cod
ing = utf-8
...
@@ -12,17 +12,20 @@ class PostmanApi:
...
@@ -12,17 +12,20 @@ class PostmanApi:
# report_file = "/Users/lucas/Documents/reporter/"
# report_file = "/Users/lucas/Documents/reporter/"
BASE_DIR
=
os
.
path
.
realpath
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
BASE_DIR
=
os
.
path
.
realpath
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
path
=
os
.
listdir
(
BASE_DIR
)
path
=
os
.
listdir
(
BASE_DIR
)
at_the
=
time
.
strftime
(
"
%
H-
%
M"
,
time
.
localtime
(
time
.
time
()))
years
=
time
.
strftime
(
"
%
Y-
%
m-
%
d"
,
time
.
localtime
(
time
.
time
()))
delay_request
=
str
(
50
)
delay_request
=
str
(
50
)
timeout_request
=
str
(
5000
)
timeout_request
=
str
(
5000
)
# print( path)
for
p
in
path
:
for
p
in
path
:
if
os
.
path
.
isdir
(
p
):
if
os
.
path
.
isdir
(
p
):
file
.
append
(
p
)
file
.
append
(
p
)
for
file_path
in
file
:
for
file_path
in
file
:
now_date
=
report_file
+
time
.
strftime
(
"
%
Y-
%
m-
%
d"
,
time
.
localtime
(
time
.
time
()))
now_date
=
report_file
+
years
now_module
=
now_date
+
"/"
+
file_path
print
(
now_date
)
now_time
=
now_date
+
"/"
+
file_path
+
"/"
+
time
.
strftime
(
"
%
H-
%
M"
,
time
.
localtime
(
now_module
=
now_date
+
"/"
+
at_the
time
.
time
()))
+
"_"
+
file_path
+
'.html'
print
(
now_module
)
now_time
=
now_module
+
"/"
+
file_path
+
'.html'
print
(
now_time
)
if
(
os
.
path
.
exists
(
now_date
)):
if
(
os
.
path
.
exists
(
now_date
)):
if
(
os
.
path
.
exists
(
now_module
)):
if
(
os
.
path
.
exists
(
now_module
)):
execute
=
"newman run "
+
BASE_DIR
+
"/"
+
file_path
+
"/"
+
file_path
+
".postman_collection.json -e "
+
BASE_DIR
+
"/"
+
file_path
+
"/"
+
file_path
+
"_manage.postman_environment.json --delay-request "
+
delay_request
+
" --timeout-request "
+
timeout_request
+
" --reporters html --reporter-html-export "
+
now_time
execute
=
"newman run "
+
BASE_DIR
+
"/"
+
file_path
+
"/"
+
file_path
+
".postman_collection.json -e "
+
BASE_DIR
+
"/"
+
file_path
+
"/"
+
file_path
+
"_manage.postman_environment.json --delay-request "
+
delay_request
+
" --timeout-request "
+
timeout_request
+
" --reporters html --reporter-html-export "
+
now_time
...
...
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