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
b93fd28d
authored
Jan 16, 2019
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报告地址
parent
b3d1f8cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
.idea/workspace.xml
+5
-4
碧合app/execute_automation_scripts.py
+8
-7
No files found.
.idea/workspace.xml
View file @
b93fd28d
...
...
@@ -2,6 +2,7 @@
<project
version=
"4"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
id=
"243b24f3-3df7-4c72-bf73-8de81d5ca458"
name=
"Default"
comment=
""
>
<change
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterDir=
"false"
/>
<change
beforePath=
"$PROJECT_DIR$/碧合app/execute_automation_scripts.py"
beforeDir=
"false"
afterPath=
"$PROJECT_DIR$/碧合app/execute_automation_scripts.py"
afterDir=
"false"
/>
</list>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
...
@@ -23,8 +24,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=
"
389
"
>
<caret
line=
"6
6"
column=
"56"
lean-forward=
"true"
selection-start-line=
"66"
selection-start-column=
"56"
selection-end-line=
"66"
selection-end-column=
"56
"
/>
<state
relative-caret-position=
"
244
"
>
<caret
line=
"6
3"
column=
"23"
lean-forward=
"true"
selection-start-line=
"63"
selection-start-column=
"23"
selection-end-line=
"64"
selection-end-column=
"25
"
/>
<folding>
<element
signature=
"e#26#37#0"
expanded=
"true"
/>
</folding>
...
...
@@ -580,8 +581,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
389
"
>
<caret
line=
"6
6"
column=
"56"
lean-forward=
"true"
selection-start-line=
"66"
selection-start-column=
"56"
selection-end-line=
"66"
selection-end-column=
"56
"
/>
<state
relative-caret-position=
"
244
"
>
<caret
line=
"6
3"
column=
"23"
lean-forward=
"true"
selection-start-line=
"63"
selection-start-column=
"23"
selection-end-line=
"64"
selection-end-column=
"25
"
/>
<folding>
<element
signature=
"e#26#37#0"
expanded=
"true"
/>
</folding>
...
...
碧合app/execute_automation_scripts.py
View file @
b93fd28d
# -*-
coding: utf-8 -*-
# -*-
coding: utf-8 -*-
...
...
@@ -8,11 +8,12 @@ import smtplib
from
email.mime.text
import
MIMEText
from
email.header
import
Header
import
sys
import
sys
defaultencoding
=
'utf-8'
if
sys
.
getdefaultencoding
()
!=
defaultencoding
:
default
_
encoding
=
'utf-8'
if
sys
.
getdefaultencoding
()
!=
default
_
encoding
:
reload
(
sys
)
sys
.
setdefaultencoding
(
defaultencoding
)
sys
.
setdefaultencoding
(
default_encoding
)
class
PostmanApi
():
...
...
@@ -62,8 +63,8 @@ class PostmanApi():
file
=
[]
report_text
=
""
report_text1
=
""
#
report_file = "/phantom/file/testreport/"
report_file
=
"/Users/lucas/Documents/reporter/"
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
)
at_the
=
time
.
strftime
(
"
%
H:
%
M"
,
time
.
localtime
(
time
.
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