支持指定数据提取来源,从响应数据,用例数据,数据库中通过jsonpath和正则表达式方式提取数据

This commit is contained in:
floraachy
2024-07-23 17:38:58 +08:00
parent 017eb15b6a
commit de4a32562a
4 changed files with 311 additions and 258 deletions
+149 -188
View File
@@ -17,209 +17,170 @@ ENV_VARS = {
},
"test": {
# 环境相关域名
"host": "https://******",
"wiki_host": "https://******",
"pms_host": "https://******",
"glcc_host": "https://******",
# 获取oauth_token需要的参数
"client_id": "****client_id****",
"client_secret": "****client_secret****",
# 万能验证码
"green_code": "******",
# 测试账号 - 普通用户(测试仓库开发者), 默认登录账号
"env_login": "******",
"env_password": "******", # 运行时需要手动更改密码
"env_nickname": "******",
"env_user_id": 106,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "******",
"t_password": "******",
"t_nickname": "******",
"t_user_id": 290,
# 测试账号 - 超级管理员(测试仓库管理员)
"env_super_login": "******",
"env_super_password": "******", # 运行时需要手动更改密码
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "******",
"env_repo_identifier": "******",
"env_project_id": "",
# pms相关环境变量 - 产品
"env_pms_product_id": "",
"env_pms_product_identifier": "",
# pms相关环境变量 - 项目
"env_pms_project_id": "",
# pms相关环境变量 - 企业
"env_enterprise_identifier": "",
"env_enterprise_id": "",
"env_organization_id": 249,
"env_dept_id": 349,
# 数据库配置
"db_info": {
"db_host": "xx.xx.xx.xx",
"db_port": 3306,
"db_user": "root",
"db_pwd": "**********",
"db_database": "test**********",
"ssh": False,
"ssh_host": "xx.xx.xx.xx",
"ssh_port": 3306,
"ssh_user": "root",
"ssh_pwd": "**********"
}
},
"dev": {
# 环境相关域名
"host": "http://******",
"host": "",
"wiki_host": "",
"pms_host": "http://******",
"pms_host": "",
"glcc_host": "",
# 获取oauth_token需要的参数
"client_id": "****client_id****",
"client_secret": "****client_secret****",
"client_id": "",
"client_secret": "*",
# 万能验证码
"green_code": "******",
"green_code": "",
# 测试账号 - 普通用户(测试仓库开发者), 默认登录账号
"env_login": "******",
"env_password": "******", # 运行时需要手动更改密码
"env_nickname": "******",
"env_user_id": 36669,
"env_login": "",
"env_password": "", # 运行时需要手动更改密码
"env_nickname": "",
"env_user_id": 0,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "",
"t_password": "",
"t_nickname": "",
"t_user_id": 0,
# 测试账号 - 超级管理员(测试仓库管理员)
"env_super_login": "******",
"env_super_password": "******",
"env_super_nickname": "******",
"env_super_user_id": 36661,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "******",
"t_password": "******",
"t_nickname": "******",
"t_user_id": 36670,
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "******",
"env_repo_identifier": "******",
"env_project_id": "****",
# pms相关环境变量 - 产品
"env_pms_product_id": "",
"env_pms_product_identifier": "",
# pms相关环境变量 - 项目
"env_pms_project_id": "",
# pms相关环境变量 - 企业
"env_enterprise_identifier": "",
"env_enterprise_id": "",
"env_organization_id": 36663,
"env_dept_id": 331,
# 数据库配置
"db_info": {
"db_host": "xx.xx.xx.xx",
"db_port": 3306,
"db_user": "root",
"db_pwd": "**********",
"db_database": "test**********",
"ssh": False,
"ssh_host": "xx.xx.xx.xx",
"ssh_port": 3306,
"ssh_user": "root",
"ssh_pwd": "**********"
}
},
"pre": {
# 环境相关域名
"host": "http://******",
"wiki_host": "http://******",
"pms_host": "https://******",
# 获取oauth_token需要的参数
"client_id": "****client_id-pre****",
"client_secret": "****client_secret-pre****",
# 万能验证码
"green_code": "******",
# 测试账号 - 普通用户(测试仓库开发者), 默认登录账号
"env_login": "******",
"env_password": "******", # 运行时需要手动更改密码
"env_nickname": "******",
"env_user_id": 115,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "******",
"t_password": "******",
"t_nickname": "******",
"t_user_id": 36546,
# 测试账号 - 超级管理员(测试仓库管理员)
"env_super_login": "******",
"env_super_password": "******", # 运行时需要手动更改密码
"env_super_user_id": 110,
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "******",
"env_repo_identifier": "******",
"env_project_id": "******",
# pms相关环境变量
"env_pms_product_id": "",
"env_pms_product_identifier": "",
"env_pms_project_id": "",
"env_dept_id": "",
# 数据库配置
"db_info": {
"db_host": "xx.xx.xx.xx",
"db_port": 3306,
"db_user": "root",
"db_pwd": "**********",
"db_database": "test**********",
"ssh": False,
"ssh_host": "xx.xx.xx.xx",
"ssh_port": 3306,
"ssh_user": "root",
"ssh_pwd": "**********"
}
},
"live": {
# 环境相关域名
"host": "https://******",
"wiki_host": "https://******",
"pms_host": "https://*****",
# 获取oauth_token需要的参数
"client_id": "****client_id-live****",
"client_secret": "****client_secret-live****",
# 万能验证码
"green_code": "****green_code-live****",
# 测试账号 - (测试仓库开发者), 默认登录账号
"env_login": "******",
"env_password": "******",
"env_nickname": "******",
"env_user_id": 87611,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "******",
"t_password": "******",
"t_nickname": "******",
"t_user_id": 87691,
# 测试账号 - 超级管理员 (测试仓库管理员)
"env_super_login": "",
"env_super_password": "",
"env_super_user_id": 0,
"env_super_password": "", # 运行时需要手动更改密码
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "",
"env_repo_identifier": "",
"env_project_id": "",
# pms相关环境变量
# pms相关环境变量 - 产品
"env_pms_product_id": "",
"env_pms_product_identifier": "",
# pms相关环境变量 - 项目
"env_pms_project_id": "",
"env_dept_id": "",
# pms相关环境变量 - 企业
"env_enterprise_identifier": "",
"env_enterprise_id": "",
"env_organization_id": 0,
"env_dept_id": 0,
# 数据库配置
"db_info": {
"db_host": "xx.xx.xx.xx",
"db_port": 3306,
"db_user": "root",
"db_pwd": "**********",
"db_database": "test**********",
"ssh": True,
"ssh_host": "xx.xx.xx.xx",
"ssh_port": 3306,
"ssh_user": "root",
"ssh_pwd": "**********"
"db_info": {}
}
},
"dev": {
# 环境相关域名
"host": "",
"wiki_host": "",
"pms_host": "",
"glcc_host": "",
# 获取oauth_token需要的参数
"client_id": "",
"client_secret": "*",
# 万能验证码
"green_code": "",
# 测试账号 - 普通用户(测试仓库开发者), 默认登录账号
"env_login": "",
"env_password": "", # 运行时需要手动更改密码
"env_nickname": "",
"env_user_id": 0,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "",
"t_password": "",
"t_nickname": "",
"t_user_id": 0,
# 测试账号 - 超级管理员(测试仓库管理员)
"env_super_login": "",
"env_super_password": "", # 运行时需要手动更改密码
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "",
"env_repo_identifier": "",
"env_project_id": "",
# pms相关环境变量 - 产品
"env_pms_product_id": "",
"env_pms_product_identifier": "",
# pms相关环境变量 - 项目
"env_pms_project_id": "",
# pms相关环境变量 - 企业
"env_enterprise_identifier": "",
"env_enterprise_id": "",
"env_organization_id": 0,
"env_dept_id": 0,
# 数据库配置
"db_info": {}
},
"pre": {
# 环境相关域名
"host": "",
"wiki_host": "",
"pms_host": "",
"glcc_host": "",
# 获取oauth_token需要的参数
"client_id": "",
"client_secret": "*",
# 万能验证码
"green_code": "",
# 测试账号 - 普通用户(测试仓库开发者), 默认登录账号
"env_login": "",
"env_password": "", # 运行时需要手动更改密码
"env_nickname": "",
"env_user_id": 0,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "",
"t_password": "",
"t_nickname": "",
"t_user_id": 0,
# 测试账号 - 超级管理员(测试仓库管理员)
"env_super_login": "",
"env_super_password": "", # 运行时需要手动更改密码
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "",
"env_repo_identifier": "",
"env_project_id": "",
# pms相关环境变量 - 产品
"env_pms_product_id": "",
"env_pms_product_identifier": "",
# pms相关环境变量 - 项目
"env_pms_project_id": "",
# pms相关环境变量 - 企业
"env_enterprise_identifier": "",
"env_enterprise_id": "",
"env_organization_id": 0,
"env_dept_id": 0,
# 数据库配置
"db_info": {}
},
"live": {
# 环境相关域名
"host": "",
"wiki_host": "",
"pms_host": "",
"glcc_host": "",
# 获取oauth_token需要的参数
"client_id": "",
"client_secret": "*",
# 万能验证码
"green_code": "",
# 测试账号 - 普通用户(测试仓库开发者), 默认登录账号
"env_login": "",
"env_password": "", # 运行时需要手动更改密码
"env_nickname": "",
"env_user_id": 0,
# 测试账号 - 普通用户(测试仓库报告者)
"t_login": "",
"t_password": "",
"t_nickname": "",
"t_user_id": 0,
# 测试账号 - 超级管理员(测试仓库管理员)
"env_super_login": "",
"env_super_password": "", # 运行时需要手动更改密码
# 测试仓库 env_repo_owner/env_repo_identifier
"env_repo_owner": "",
"env_repo_identifier": "",
"env_project_id": "",
# pms相关环境变量 - 产品
"env_pms_product_id": "",
"env_pms_product_identifier": "",
# pms相关环境变量 - 项目
"env_pms_project_id": "",
# pms相关环境变量 - 企业
"env_enterprise_identifier": "",
"env_enterprise_id": "",
"env_organization_id": 0,
"env_dept_id": 0,
# 数据库配置
"db_info": {}
}
}