初识httprunner框架之二次封装
from httprunner import HttpRunner, Config, Step, RunRequest, RunTestCase
from base_frame.Repeat_business.LoginTestServer import TestCaseLogintestserver as Fet_token
import time
def get_url():
from base_frame.common import config_reader
return config_reader.Configr1('../common/api_base_config.cfg').get_option(
'main_url') # todo:如果调用不了地址,把Configr1文件内容剪切再拷贝就行
class APIRequestConstructor(HttpRunner):
config = (
Config('API执行') # todo: 命个名无关紧要的东
共有 0 条评论