#!/usr/bin/env python # coding=utf-8 """ @author: CNWei @Software: PyCharm @contact: t6i888@163.com @file: settings @date: 2025/2/23 21:34 @desc: """ import os from pathlib import Path from dotenv import load_dotenv BASE_DIR = (Path(__file__)).resolve().parents[1] load_dotenv() # --- 目录配置 --- TEST_CASE_DIR = BASE_DIR / "test_cases" OUTPUT_DIR = BASE_DIR / "outputs" SCREENSHOT_DIR = OUTPUT_DIR / "screenshots" LOG_DIR = OUTPUT_DIR / "logs" LOG_BACKUP_DIR = LOG_DIR / "backups" ALLURE_TEMP = BASE_DIR / "temp" REPORT_DIR = BASE_DIR / "reports" CONFIG_DIR = BASE_DIR / "config" DATA_DIR = BASE_DIR / "data" test_suffix = "yaml" base_url = os.getenv("BASE_URL") db_host = os.getenv("DB_HOST") # ip db_port = os.getenv("DB_PORT") # 端口 db_user = os.getenv("DB_USER") # 用户名 db_password = os.getenv("DB_PASSWORD") # 密码 db_database = os.getenv("DB_DATABASE") allure_epic: str = "项目名称:answer" allure_feature: str = "默认特征(feature)" allure_story: str = "默认事件(story)" rsa_public = "" rsa_private = "" if __name__ == '__main__': print(BASE_DIR) print(BASE_DIR, db_host, db_port, db_user, db_password, db_database)