Ask a Question

Display the environment name

mriduk8s
New Member

Display the environment name

Is there a command to display the environment name (command line for readyAPI)?

2 REPLIES 2
nmrao
Community Hero

More details please of your use case.


Regards,
Rao.
TNeuschwanger
Community Leader

Hello @mriduk8s 

 

You can use this code in a groovy script test step...

log.info 'Test Step "' + testRunner.runContext.currentStep.name + '" start...';
log.info "";

def environmentName = testRunner.testCase.project.getActiveEnvironment().name;
log.info "environmentName=$environmentName";

log.info "";
log.info 'Test Step "' + testRunner.runContext.currentStep.name + '" done...';

Regards,

Todd

cancel
Showing results for 
Search instead for 
Did you mean: