Forum Discussion
nmrao
Champion Level 3
Below statement gives you current environment.
def currentEnv = testRunner.testCase.testSuite.project.activeEnvironment.name
if (currentEnv in ['DEV', 'INTE']) {
//move your existing logic here
}
def currentEnv = testRunner.testCase.testSuite.project.activeEnvironment.name
if (currentEnv in ['DEV', 'INTE']) {
//move your existing logic here
}
Vivek_Malhotra
7 years agoOccasional Contributor
Thanks nmrao
When i write this script it gives me below output. What does this mean? Where to pass the environment?
Tue Jul 11 12:01:44 CEST 2017:INFO:Default environment
- nmrao7 years agoChampion Level 3Please show your existing script.
Related Content
Recent Discussions
- 19 hours agodipsthorat
- 22 hours agoisbiat
- 2 days agoarmygrad