Forum Discussion

stevewallone's avatar
stevewallone
New Contributor
12 years ago

Functional Test Works / LoadUI of Same Test Fails

Hello,
I created a functional test that executes a web service and performs a "Contains" against the entire response. That is, the entire response is the "Content" of the Contains Assertion. This passes when run as a functional test. When run as a load test, the contains assertion fails. It looks to me as if the return characters are removed from the response when running the loadUI test. Which causes it to fail the contains assertion. Has anyone else experienced this? Is there a work around?
Thanks!
Steve

1 Reply

  • This kind of test where you just expect the response String to be exactly the same every time seems to me to be really fragile.
    If the response contains any headers which will change every time, for example, your test will break really easily. Especially in a load test setting, where potentially many thousands of requests will be generated and verified.

    I would advise that you perform more targeted assertions, for example:

    - does the response contain a tag X with value Y?
    - does the response NOT contain tags A, B and C?
    - does a header H exist?

    And so on.

    This page contains nice advice: http://www.soapui.org/Functional-Testin ... tions.html

    Regards,

    Renato
    SmartBear Software