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.

Environment variables localsettings.properties

reactancexl
reactancexl Posts: 160

I have two Environment variables in my test. One is for DEV and the other is for QA. Can I tell soatest which one to use in a property file when I run the command line? Is this the one to use? exec.env=[env1; env2; ...]

Comments

  • Ireneusz Szmigiel
    Ireneusz Szmigiel Posts: 227 ✭✭✭
    edited October 2017

    You can use option for SOAtest cli:

    soatestcli.exe -config <configuration name> -resource <path to test suite name.tst relative to the workspace> -environment "Default Calculator Environment"

    In your case:
    soatestcli.exe -config <configuration name> -resource <path to test suite name.tst relative to the workspace> -environment DEV
    or
    soatestcli.exe -config <configuration name> -resource <path to test suite name.tst relative to the workspace> -environment QA

    assuming that DEV and QA are the names of environment
    See in Manual: "Applying an Environment Configuration to a
    Regression Test from the Command Line"

    You can also override default environment with Test Configuration used to start tests.See Test Configuration > ${Your Configuration} >Execution >Environment Options
    Ireneusz Szmigiel