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
b3d1f8cf
authored
Jan 16, 2019
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决中文问题
parent
4a442bc2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
9 deletions
+13
-9
.idea/workspace.xml
+5
-5
碧合app/execute_automation_scripts.py
+8
-4
No files found.
.idea/workspace.xml
View file @
b3d1f8cf
...
...
@@ -13,7 +13,7 @@
</component>
<component
name=
"CoverageDataManager"
>
<SUITE
FILE_PATH=
"coverage/bihe_interface_test$hebin.coverage"
NAME=
"hebin Coverage Results"
MODIFIED=
"1547019882690"
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=
"1547602
428268
"
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=
"1547602
830292
"
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=
"FavoritesManager"
>
<favorites_list
name=
"bihe_interface_test"
/>
...
...
@@ -23,8 +23,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=
"3
61
"
>
<caret
line=
"
117"
column=
"19"
lean-forward=
"true"
selection-start-line=
"117"
selection-start-column=
"19"
selection-end-line=
"117"
selection-end-column=
"19
"
/>
<state
relative-caret-position=
"3
89
"
>
<caret
line=
"
66"
column=
"56"
lean-forward=
"true"
selection-start-line=
"66"
selection-start-column=
"56"
selection-end-line=
"66"
selection-end-column=
"56
"
/>
<folding>
<element
signature=
"e#26#37#0"
expanded=
"true"
/>
</folding>
...
...
@@ -580,8 +580,8 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"3
61
"
>
<caret
line=
"
117"
column=
"19"
lean-forward=
"true"
selection-start-line=
"117"
selection-start-column=
"19"
selection-end-line=
"117"
selection-end-column=
"19
"
/>
<state
relative-caret-position=
"3
89
"
>
<caret
line=
"
66"
column=
"56"
lean-forward=
"true"
selection-start-line=
"66"
selection-start-column=
"56"
selection-end-line=
"66"
selection-end-column=
"56
"
/>
<folding>
<element
signature=
"e#26#37#0"
expanded=
"true"
/>
</folding>
...
...
碧合app/execute_automation_scripts.py
View file @
b3d1f8cf
# -*-
coding: utf-8 -*-
# -*-
coding: utf-8 -*-
...
...
@@ -8,7 +8,11 @@ import smtplib
from
email.mime.text
import
MIMEText
from
email.header
import
Header
import
sys
import
sys
defaultencoding
=
'utf-8'
if
sys
.
getdefaultencoding
()
!=
defaultencoding
:
reload
(
sys
)
sys
.
setdefaultencoding
(
defaultencoding
)
class
PostmanApi
():
...
...
@@ -58,8 +62,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