How to get Active Environment Name in Extension Tool in Parasoft SOAtest

Options

I want to pass active Environment name into my custom report. Wanted to know how to get the active environment name using Java

Comments

  • jakubiak
    jakubiak Posts: 833 admin
    Options

    There is no API to get the active environment name. But you could solve it a different way. You could add a new environment variable that has the same value as the name of the environment. Then you can use the scripting API com.parasoft.api.ScriptingContext.getEnvironmentVariableValue(String name) to get the value of the variable - which will get the value for the variable in the currently active environment.