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
1b8c0667
authored
Jan 11, 2019
by
zhangjingdong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改邮箱端口
parent
4f000aea
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
18 deletions
+20
-18
.idea/workspace.xml
+17
-16
碧合app/execute_automation_scripts.py
+3
-2
No files found.
.idea/workspace.xml
View file @
1b8c0667
...
...
@@ -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,11 +24,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=
"
221
"
>
<caret
line=
"
72"
column=
"31"
lean-forward=
"true"
selection-start-line=
"72"
selection-start-column=
"31"
selection-end-line=
"72"
selection-end-column=
"31
"
/>
<state
relative-caret-position=
"
393
"
>
<caret
line=
"
40"
column=
"14"
lean-forward=
"true"
selection-start-line=
"40"
selection-start-column=
"14"
selection-end-line=
"40"
selection-end-column=
"14
"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -41,7 +42,7 @@
<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=
"
470
"
>
<state
relative-caret-position=
"
2988
"
>
<caret
line=
"166"
column=
"68"
selection-start-line=
"166"
selection-start-column=
"68"
selection-end-line=
"166"
selection-end-column=
"68"
/>
</state>
</provider>
...
...
@@ -274,17 +275,17 @@
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
weight=
"0.32969698"
/>
<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=
"Run"
order=
"2"
weight=
"0.32969698"
/>
<window_info
anchor=
"bottom"
id=
"Version Control"
order=
"7"
weight=
"0.32969698"
/>
<window_info
anchor=
"bottom"
id=
"Python Console"
order=
"7"
weight=
"0.32969698"
/>
<window_info
anchor=
"bottom"
id=
"Run"
order=
"2"
visible=
"true"
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"
sideWeight=
"0.5334539"
visible=
"true"
weight=
"0.2
746781
"
/>
<window_info
active=
"true"
content_ui=
"combo"
id=
"Project"
order=
"0"
sideWeight=
"0.5334539"
visible=
"true"
weight=
"0.2
8183118
"
/>
<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=
"SciView"
order=
"3"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
<window_info
id=
"Favorites"
order=
"2"
sideWeight=
"0.46654612"
side_tool=
"true"
weight=
"0.26752505"
/>
<window_info
anchor=
"bottom"
id=
"Debug"
order=
"3"
weight=
"0.4"
/>
<window_info
id=
"Favorites"
order=
"2"
sideWeight=
"0.46654612"
side_tool=
"true"
weight=
"0.26752505"
/>
<window_info
anchor=
"right"
content_ui=
"combo"
id=
"Hierarchy"
order=
"2"
weight=
"0.25"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
...
...
@@ -366,7 +367,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=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -419,7 +420,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=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -436,7 +437,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=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -454,7 +455,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=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -477,7 +478,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=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
@@ -566,7 +567,7 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/推荐位/推荐位.postman_collection.json"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
470
"
>
<state
relative-caret-position=
"
2988
"
>
<caret
line=
"166"
column=
"68"
selection-start-line=
"166"
selection-start-column=
"68"
selection-end-line=
"166"
selection-end-column=
"68"
/>
</state>
</provider>
...
...
@@ -576,11 +577,11 @@
</entry>
<entry
file=
"file://$PROJECT_DIR$/碧合app/execute_automation_scripts.py"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
221
"
>
<caret
line=
"
72"
column=
"31"
lean-forward=
"true"
selection-start-line=
"72"
selection-start-column=
"31"
selection-end-line=
"72"
selection-end-column=
"31
"
/>
<state
relative-caret-position=
"
393
"
>
<caret
line=
"
40"
column=
"14"
lean-forward=
"true"
selection-start-line=
"40"
selection-start-column=
"14"
selection-end-line=
"40"
selection-end-column=
"14
"
/>
<folding>
<element
signature=
"e#19#30#0"
expanded=
"true"
/>
<marker
date=
"154719
7689525"
expanded=
"true"
signature=
"2695:3669
"
ph=
"..."
/>
<marker
date=
"154719
8652093"
expanded=
"true"
signature=
"2718:3692
"
ph=
"..."
/>
</folding>
</state>
</provider>
...
...
碧合app/execute_automation_scripts.py
View file @
1b8c0667
# cod
ing = utf-8
# cod
ing = utf-8
...
...
@@ -50,9 +50,10 @@ class PostmanApi():
message
[
'Subject'
]
=
Header
(
years
+
at_the
+
"自动化测试结果"
,
'utf-8'
)
try
:
smtpObj
=
smtplib
.
SMTP
()
smtpObj
.
connect
(
mail_host
,
25
)
# 25 为 SMTP 端口号
smtpObj
.
connect
(
mail_host
)
# 25 为 SMTP 端口号
smtpObj
.
login
(
mail_user
,
mail_pass
)
smtpObj
.
sendmail
(
sender
,
receivers
,
message
.
as_string
())
smtpObj
.
quit
()
print
(
"邮件发送成功"
)
except
smtplib
.
SMTPException
:
print
(
"Error: 无法发送邮件"
)
...
...
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