Commit 8cb294fa by taoke

Merge branch 'a_branch'

parents 922e33c2 0ce2780a
#coding:utf-8 #coding:utf-8
import os
class BaseConfig(): class BaseConfig():
"""基础配置类""" """基础配置类"""
...@@ -10,6 +11,7 @@ class BaseConfig(): ...@@ -10,6 +11,7 @@ class BaseConfig():
secs=0.1 # 测试用例间隔运行时间 secs=0.1 # 测试用例间隔运行时间
test_redis = {"host": "10.197.236.197", "port": 6379, "password": "123456"} test_redis = {"host": "10.197.236.197", "port": 6379, "password": "123456"}
root_path = os.path.abspath(os.path.dirname(__file__)) # 项目根目录
# 钉钉相关 # 钉钉相关
webhook = '' webhook = ''
......
...@@ -9,10 +9,11 @@ from service.login import BMY ...@@ -9,10 +9,11 @@ from service.login import BMY
from common.tools import request_main from common.tools import request_main
from config import BmyConfig from config import BmyConfig
@allure.epic("营运车企业端") @allure.epic("营运车企业端")
@allure.feature("登录模块") @allure.feature("登录模块")
class TestLogin(): class TestLogin():
workBook = xlrd.open_workbook('test_case_data/bmy/bmy_case.xlsx') workBook = xlrd.open_workbook(f'{BmyConfig.root_path}/test_case_data/bmy/bmy_case.xlsx')
@allure.story("登录") @allure.story("登录")
@allure.title("登录认证") @allure.title("登录认证")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment