Forum Discussion

Markus_Schaub's avatar
17 years ago

Assertion failing although correct

Hello

I want to access a webservice behind a reverse proxy.
First call is a login call which does not return any data but sends a cookie in the headers if authorization is OK.

The answer itself is empty

I have added a script assertion that checks for the Set-Cookie in the HTTP header, this one is flagged green. The Assertions(1)  at the bottom of the windows is flagged red. I have only one assertion in the list.

How can I manage the test step to pass green on an empty webservice response?

Using SoapUI-Pro 2.0

Regards
Markus



The response (RAW) is
HTTP/1.1 302 Found
Transfer-Encoding: chunked
Date: Thu, 10 Jan 2008 19:15:54 GMT
Location: https://XXXXXXXXXXXX/yyyyyyyyyyy
Set-Cookie: Navajo=sTQJOqEH/TMUIUoWqgWS2wX6twrGsjdVkgukIXpoFv/R1zCTtCcOILRCYBKvD0uw45xSoyu2H0-; path=/; secure; HttpOnly
Content-Type: text/xml
Connection: close
Server: Apache
Cache-Control: no-cache
Pragma: no-cache

2 Replies

  • omatzura's avatar
    omatzura
    Super Contributor
    Hi Markus,

    thanks.. let me try to reproduce this and I'll get back to you..

    Are you getting any error-messages in any of the logs or the console window?

    regards!

    /Ole
    eviware.com
  • omatzura's avatar
    omatzura
    Super Contributor
    Hi again,

    Currently soapUI will only "allow" empty response messages for one-way operations... How is the login call defined in your WSDL?

    regards,

    /Ole
    eviware.com