Forum Discussion

mashimalo's avatar
mashimalo
New Contributor
13 years ago

Different assertions for different environment?

Hi guys,

I have a test case that need to point to different environment, which will have different result returned. Is there a way that I can automated assertions for each environment?

Thank you!!

3 Replies

  • nmrao's avatar
    nmrao
    Community Hero
    What I believe is that a test must be having one or more validations on the response. In your case, do want to say, the data will be different in each environment and the previous assertions are not working? May be you need take a look at your assertion carefully and generalize them using regular expressions/patterns etc so that assertions are independent of environments and the same runs every where.
  • mashimalo's avatar
    mashimalo
    New Contributor
    I am kinda new to soapui, I am not sure how to setup the assertions to match environment...