python - 接口自动化测试 - contants - 常量封装

# -*- coding:utf-8 -*-

'''
@project: ApiAutoTest
@author: Jimmy
@file: contants.py
@ide: PyCharm Community Edition
@time: 2018-12-21 13:55
@blog: https://www.cnblogs.com/gotesting/

'''

# 常量管理

import os


# 项目根路径
base_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

# 配置文件路径
conf_dir = os.path.join(base_dir,'Config')

# 测试数据路径
data_dir = os.path.join(base_dir,'Datas')

# 日志路径
log_dir = os.path.join(base_dir,'Reports','Log')

# 测试报告路径
report_dir = os.path.join(base_dir,'Reoprts','Reoprt')

 

posted @ 2018-12-21 15:42  JiaxyGogogo  阅读(643)  评论(0编辑  收藏  举报