2018-09-19 12:26:54 +08:00
|
|
|
|
# 数据库配置
|
2018-07-30 16:58:01 +08:00
|
|
|
|
DBtype = '2' # '1' : sqlite, 2: mysql
|
2018-10-31 10:57:30 +08:00
|
|
|
|
db_host='localhost'
|
|
|
|
|
db_port='3306'
|
|
|
|
|
db_user='root'
|
|
|
|
|
db_password='yourpassword'
|
2018-07-30 16:58:01 +08:00
|
|
|
|
database='test_auto_new'
|
|
|
|
|
|
2018-09-19 12:26:54 +08:00
|
|
|
|
# atx 配置
|
2018-07-30 16:58:01 +08:00
|
|
|
|
isUseATX=True
|
2018-08-24 14:10:54 +08:00
|
|
|
|
ATXHost = 'http://localhost:8000'
|
2018-07-30 16:58:01 +08:00
|
|
|
|
|
2018-09-19 12:26:54 +08:00
|
|
|
|
# 截图目录相关配置
|
2018-12-12 10:39:14 +08:00
|
|
|
|
import os
|
2018-07-30 16:58:01 +08:00
|
|
|
|
currentPath = os.path.dirname(os.path.abspath(__file__))
|
2018-12-12 10:39:14 +08:00
|
|
|
|
logPath = os.path.join(currentPath,'log')
|
|
|
|
|
reportPath = os.path.join(currentPath,'templates','reports')
|
|
|
|
|
unittestPath = os.path.join(currentPath,'test')
|
|
|
|
|
screen_shot_path = os.path.join(currentPath,'static','screenshot')
|
2018-07-30 16:58:01 +08:00
|
|
|
|
|
2018-09-19 12:26:54 +08:00
|
|
|
|
# smtp 发送邮件相关配置:
|
|
|
|
|
is_email_enable = False #发送邮件开关
|
2018-09-19 11:47:32 +08:00
|
|
|
|
flask_host = 'http://localhost:5000' # 邮件中的报告链接会使用
|
2018-09-19 12:26:54 +08:00
|
|
|
|
smtp_server_host = 'smtp.163.com' # 如使用其他的smtp 服务,请修改对应host 和端口
|
2018-09-19 11:47:32 +08:00
|
|
|
|
smtp_server_port = '25'
|
2018-09-19 12:26:54 +08:00
|
|
|
|
smtp_from_email = 'youraccount@163.com' # 发送邮件的邮箱账号
|
|
|
|
|
smtp_default_to_email = 'youraccount@163.com' # 默认接收邮件的邮箱账号
|
2018-09-19 11:47:32 +08:00
|
|
|
|
smtp_server_user = smtp_from_email
|
2018-09-19 12:26:54 +08:00
|
|
|
|
smtp_server_password = 'yourpassword' # 发送邮件的邮箱密码
|
2018-07-30 16:58:01 +08:00
|
|
|
|
|