Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

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: 798 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.