playwright-master/tools/config.py

30 lines
694 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.

import os
PRO_PATH = os.path.dirname(os.path.abspath(__file__))
class RunConfig:
"""
rms运行测试配置
"""
# 运行测试用例的目录或文件
# cases_path = os.path.join(PRO_PATH, "test_cases", "test_001.py")
cases_path = os.path.join(PRO_PATH, "../test_cases")
# 配置浏览器驱动类型(chromium, firefox, webkit)。
browser = "chromium"
# 运行模式headless, headful
mode = "headful"
# 配置运行的 URL
url = "http://novel.hctestedu.com/?to=pc"
# 失败重跑次数
rerun = "0"
# 当达到最大失败数,停止执行
max_fail = "5"
# 报告路径(不需要修改)
NEW_REPORT = None