pdenize
15 years agoNew Contributor
How can I test for a Connection refused error
I need to test the security of a product. While the webservices all exist I need to verify they are blocked by the infrastructure based on IP address rules. Also we need to ensure that HTTP is not an option.
If I setup and perform these tests each tests gets a "Connection refused error" and the soap call fails (stopping the test). However for me this is what I want to occur so would like this to be a PASS not a fail. It is the expected result.
The failure also stopps any Assertions running and all the following test steps. I still need the Groovy scripts after the call to run so I can validate the correct Auditing has taken place.
The "Connection refused" resulting in an uncontrolled failure makes this less useful. Is there a way to control this so the soap call does not fail, and the assertions and scripts after can be executed (or maybe just the scripts).
Thanks
If I setup and perform these tests each tests gets a "Connection refused error" and the soap call fails (stopping the test). However for me this is what I want to occur so would like this to be a PASS not a fail. It is the expected result.
The failure also stopps any Assertions running and all the following test steps. I still need the Groovy scripts after the call to run so I can validate the correct Auditing has taken place.
The "Connection refused" resulting in an uncontrolled failure makes this less useful. Is there a way to control this so the soap call does not fail, and the assertions and scripts after can be executed (or maybe just the scripts).
Thanks