handle_path.py
624 Bytes
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2022/12/9 00:08
# @Author : Shitou
# @FileName: handle_path.py
# @Software: PyCharm
"""
封装获取路径
"""
import os
# 项目根目录
Base_Path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# 测试用例的路径
TestCase_Path = os.path.join(Base_Path, "testcase")
# 测试报告的路径
Report_Path = os.path.join(Base_Path, "report")
# 日志的路径
Log_Path = os.path.join(Base_Path, "logs")
# 测试数据的Excel
DataExcel_Path = os.path.join(Base_Path, "data")
# 配置文件的路径
Config_Path = os.path.join(Base_Path, "conf")