Commit b93fd28d by zhangjingdong

修改报告地址

parent b3d1f8cf
......@@ -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="66" 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="63" 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="66" 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="63" 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>
......
# -*- 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()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment