Forum Discussion

runzTH's avatar
runzTH
Regular Visitor
9 years ago
Solved

SLA's for different environments

Is there a way to change SLA assertions based on what environment we are running against?  For example, we have Environment variables set up for Dev/QA/Prod.  We know that Dev will be slower and we don't want to fail a test based on the SLA, so we would like to be more forgiving there.  If we are running against Prod, we would like the assertions to be much more realistic.

 

Is there a built-in way to do this that we're missing?  If not, can it be done with a script assertion?

 

Thanks

  • Hi Runzth,

     

    You can create environment variables and specify its value for each environment. In the SLA Assertion, you will need to specify this variable:

    ${#Project#<Variable_Name>}

    Change <Variable_Name> with your variable.

1 Reply

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Runzth,

     

    You can create environment variables and specify its value for each environment. In the SLA Assertion, you will need to specify this variable:

    ${#Project#<Variable_Name>}

    Change <Variable_Name> with your variable.