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.

Capture current Environment being tested

Options
goofy78270
goofy78270 Posts: 133

Within a run of a test, is there a way to capture the current Environment that the test is being executed against? I know I can add a variable to each environment with it's name, but that is not ideal for our 40+ environments across multiple test suites.

Looking for something like scriptingContext.getEnvironmentName or similar

Answers

  • jakubiak
    jakubiak Posts: 801 admin
    Options

    SOAtest doesn't currently have a way to do this outside of what you suggested.

  • benken_parasoft
    benken_parasoft Posts: 1,235 ✭✭✭
    Options

    There does not appear to be any public API to get the currently active Environment name within a run of a test suite.