自动化测试项目config常量

import time
import os
import getpass

# 时间戳
times = time.strftime("%Y%m%d%H%M%S")
# 项目的绝对路径
BASE_PATH = '/'.join(os.path.abspath(__file__).split("/")[:-2])
# 用例的绝对路径
CASES_PATH = os.path.join(BASE_PATH, "cases")
# 报告的绝对路径
REPORT_PATH = os.path.join(BASE_PATH, "report")
# 数据的绝对路径
DATA_PATH = os.path.join(BASE_PATH, "data")
# username
USERNAME = getpass.getuser()

  

猜你喜欢

转载自www.cnblogs.com/mikigo/p/13197941.html
今日推荐