Commit 651e784c by fangyuan

add env 变量设置

parent 4a46cdb2
......@@ -151,6 +151,9 @@ public class BaseTest extends AbstractTestNGSpringContextTests {
// 防止多个工程运行时,环境变量名冲突
// 服务器集成测试配置
String env = System.getenv("live_env");
if (StringUtils.isEmpty(env)) {
env = prop.getProperty("env");
}
logger.info(env);
host = prop.getProperty(env);
......
#默认配置
env=prod
# Dev
dev =https://dev-heimdall.xiaomai5.com
#rc
......@@ -7,8 +9,8 @@ gray=https://gray-heimdall.xiaomai5.com
#prod
#prod=https://heimdall.xiaomai5.com
prod=https://gateway.xiaomai5.com
# 测试运行环境 本地调试时,可指定调试环境。完成本地调试后,请注释此变量
#runningEnv = rc
testData = \\src\\main\\resources\\dataprovider\\APIcase.xls
# �����˺�
testAccount = /src/main/resources/parameter.json
......
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