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
c7b0d8e0
authored
Jan 14, 2019
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改了文件格式
parent
54918cc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
+14
-14
.idea/workspace.xml
+11
-11
碧合app/execute_automation_scripts.py
+3
-3
No files found.
.idea/workspace.xml
View file @
c7b0d8e0
...
...
@@ -23,11 +23,11 @@
<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=
"
183
"
>
<caret
line=
"6
7"
column=
"58"
lean-forward=
"true"
selection-start-line=
"67"
selection-start-column=
"58"
selection-end-line=
"67"
selection-end-column=
"58
"
/>
<state
relative-caret-position=
"
240
"
>
<caret
line=
"6
6"
column=
"49"
lean-forward=
"true"
selection-start-line=
"66"
selection-start-column=
"49"
selection-end-line=
"66"
selection-end-column=
"49
"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -385,7 +385,7 @@
<caret
line=
"10"
column=
"49"
lean-forward=
"true"
selection-start-line=
"10"
selection-start-column=
"49"
selection-end-line=
"10"
selection-end-column=
"49"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -438,7 +438,7 @@
<caret
line=
"11"
column=
"49"
lean-forward=
"true"
selection-start-line=
"11"
selection-start-column=
"49"
selection-end-line=
"11"
selection-end-column=
"49"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -455,7 +455,7 @@
<caret
line=
"15"
column=
"32"
lean-forward=
"true"
selection-start-line=
"15"
selection-start-column=
"32"
selection-end-line=
"15"
selection-end-column=
"32"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -473,7 +473,7 @@
<caret
line=
"14"
column=
"25"
selection-start-line=
"14"
selection-start-column=
"25"
selection-end-line=
"14"
selection-end-column=
"25"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -496,7 +496,7 @@
<caret
line=
"8"
column=
"8"
lean-forward=
"true"
selection-start-line=
"8"
selection-start-column=
"8"
selection-end-line=
"8"
selection-end-column=
"8"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -602,11 +602,11 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
183
"
>
<caret
line=
"6
7"
column=
"58"
lean-forward=
"true"
selection-start-line=
"67"
selection-start-column=
"58"
selection-end-line=
"67"
selection-end-column=
"58
"
/>
<state
relative-caret-position=
"
240
"
>
<caret
line=
"6
6"
column=
"49"
lean-forward=
"true"
selection-start-line=
"66"
selection-start-column=
"49"
selection-end-line=
"66"
selection-end-column=
"49
"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"1547
200494401"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
<marker
date=
"1547
428747864"
expanded=
"true"
signature=
"2714:3688
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
碧合app/execute_automation_scripts.py
View file @
c7b0d8e0
# cod
ing = utf-8
# cod
ing = utf-8
...
...
@@ -44,7 +44,7 @@ class PostmanApi():
message
=
MIMEText
(
'各位领导同事:
\n
以下是本次接口自动化测试的执行结果
\n
'
+
report_text
+
"
\n
"
+
report_text1
+
"
\n
报告执行具体情况可通过下面链接查看
\n
"
" 报告地址:"
+
"http://reptorfile.bgycc.com/"
+
" "
+
years
+
"/"
+
at_the
,
'plain'
,
'utf-8'
)
" 报告地址:"
+
"http://reptorfile.bgycc.com/"
+
years
+
"/"
+
at_the
,
'plain'
,
'utf-8'
)
message
[
'From'
]
=
Header
(
"测试环境接口自动化测试"
)
message
[
'Subject'
]
=
Header
(
years
+
at_the
+
"自动化测试结果"
,
'utf-8'
)
...
...
@@ -67,7 +67,7 @@ class PostmanApi():
# report_file = "/Users/lucas/Documents/reporter/"
BASE_DIR
=
os
.
path
.
realpath
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
)))
path
=
os
.
listdir
(
BASE_DIR
)
at_the
=
time
.
strftime
(
"
%
H
:
%
M"
,
time
.
localtime
(
time
.
time
()))
at_the
=
time
.
strftime
(
"
%
H
-
%
M"
,
time
.
localtime
(
time
.
time
()))
years
=
time
.
strftime
(
"
%
Y-
%
m-
%
d"
,
time
.
localtime
(
time
.
time
()))
extract_data
=
report_file
+
years
+
"/"
+
at_the
# extract_data = "/Users/lucas/Documents/reporter/2019-01-08/14-55"
...
...
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