Forum Discussion
nmrao
7 years agoChampion Level 3
I believe that enabling and disabling should be done conditionally. Then you need not to worry.
- Vivek_Malhotra7 years agoOccasional 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
- nmrao7 years agoChampion Level 3Below statement gives you current environment.
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