Minophis's avatar
Minophis
New Member
5 years ago
Status:
New Idea

Allow SoapUI assertions to vary depending on selected environment

In cases where API responses vary depending on environment and this is not in control of the QA team it would be useful to be able to specify which environments an assertion applies to. This would allow a test step to have different assertions only a subset of which are evaluated in any given environment.

  • davinci020's avatar
    davinci020
    Occasional Contributor

    Say you have a TST-environment where input A will give back output B (and you assert output B).

    Say you also have a UAT-environment where input A will give back output C.

     

    When you switch to UAT and you will send input A, then the assertion will fail because it was expecting output B but actual value was C.

    It would be nice if assertions could also be variable, based on the selected environment. I can imagine that UAT-environment has more production-like data, compared to a TST-environment.

     

    Is this what you want Minophis ?

     

  • nmrao's avatar
    nmrao
    Champion Level 3

    Just curion to know. How would be assertion dependent on environment. Would you please share the use case?