我尝试以不同的方式设置环境变量,但对我没有任何作用:
https://api.mycompany-bitbucket.org/2.0/repositories/
<test name="Dashboard Resolution Test Chrome">
<parameter name="SOME_ENV" value="DEV"/>
<classes>
<class name="tests.DashboardResolutionTest"/>
</classes>
</test>
在所有情况下,结果都是 task dashboard(type: Test) {
System.setProperty("SOME_ENV", "deV")
useTestNG() {
suites './src/test/resources/testng/testng.xml'
}
}
:
null
我真的很困惑和困惑 - 为什么我不能设置环境变量?我错过了什么?