Forum Discussion
Vivek_Malhotra
Occasional Contributor
Thanks nmrao
How to do that? I have a test suite with setup which has logic to create all accounts.
Now where to put this condition?
Thanks,
Vivek
nmrao
7 years agoChampion 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_Malhotra7 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.