Forum Discussion

Rob_Leland's avatar
Rob_Leland
Occasional Contributor
16 years ago

Testing disabled/unreachable services

We have tightened security so certain services are only reachable from certain IP addresses.  We would like to use SoapUI to verify this. Currently
using this test assertion:

assert false == messageExchange.hasResponse()

Even though the assertion passes with SoapUI 2.0.2 and 2.5.1 , the test itself fails.

Is it possible to have SoapUI ignore the ConnectionRefused Exception such that this test will pass?

3 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi!

    hmm.. why is the test failing? Are there any other assertions for this request?

    regards!

    /Ole
    eviware.com
  • Rob_Leland's avatar
    Rob_Leland
    Occasional Contributor
    eviware support wrote:

    Are there any other assertions for this request?


    No it's a one line test.
    In the tool bar SoapUI prints:Error getting response;java.net.ConnectionException: Connection refused: connect.

    It would be nice on a test basis or Test Suite basis to tell SoapUI to ignore these errors when determining if a test passed.
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hi Rob,

    I definitely agree.. can you attach the project file containing this test to see if there is anything specific going on here?

    regards!

    /Ole
    eviware.com