basic-auto-test/config/constants_path.py

23 lines
776 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# -*- coding: utf-8 -*-
# -------------------------------
# @文件constants_path.py
# @时间2024/3/22 15:12
# @作者caiweichao
# @功能描述:路径常量
# -------------------------------
import os
# 项目根目录
BASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 测试用例目录
CASE_PATH = os.path.join(BASE_PATH, 'test_case')
# 测试数据目录
DATA_PATH = os.path.join(BASE_PATH, 'test_data')
# 框架配置文件路径
CONFIG_PATH = os.path.join(BASE_PATH, 'config/config.yaml')
# 日志文件路径
LOG_PATH = os.path.join(BASE_PATH, 'result/logs')
# 测试执行过程中截图文件存放
IMG_PATH = os.path.join(BASE_PATH, 'result/screenshot')
# 测试报告路径
REPORT_PATH = os.path.join(BASE_PATH, 'allure-report')