glouis42
13 years agoOccasional Contributor
soapUI web service test never fails
soapUI functional web service test:
I have a test suite with a small number of steps, (6), where I want to test the login to a secure URL page.
What I am trying to achieve, is if the login actually fails, I want to fail the suite if possible. If not possible, how can I obtain the error that it fails, etc.
My inquiry is two fold:
1.) How can I fail the suite as a condition of one of the steps in the test suite fail?
2.) I have tried to deliberately "Change" the credentials to force a fail, and it still passes. I checked the project.xml file and changed the creds, tried removing and reloading the test suite and the suite in the gui still shows valid creds. Is there a cache that can be cleared? I also tried updating the distinct step with false creds and the suite still runs to completion.
(this point is only valid on the initial creation of the test suite)
There is one thing I noted and "Follow Redirects" equal to the default of "True", the script never actually works until I turn off the "Follow Redirects" equal to "False", then it succeeds. Once it suceeds, ALL subsequent launches succeed, thus soapUI web service test never fails, this is great if you want a successful run all of the time, but I cannot get my test step to fail when I enter false credentials.
I am new at this soapUI, please advise.
I have a test suite with a small number of steps, (6), where I want to test the login to a secure URL page.
What I am trying to achieve, is if the login actually fails, I want to fail the suite if possible. If not possible, how can I obtain the error that it fails, etc.
My inquiry is two fold:
1.) How can I fail the suite as a condition of one of the steps in the test suite fail?
2.) I have tried to deliberately "Change" the credentials to force a fail, and it still passes. I checked the project.xml file and changed the creds, tried removing and reloading the test suite and the suite in the gui still shows valid creds. Is there a cache that can be cleared? I also tried updating the distinct step with false creds and the suite still runs to completion.
(this point is only valid on the initial creation of the test suite)
There is one thing I noted and "Follow Redirects" equal to the default of "True", the script never actually works until I turn off the "Follow Redirects" equal to "False", then it succeeds. Once it suceeds, ALL subsequent launches succeed, thus soapUI web service test never fails, this is great if you want a successful run all of the time, but I cannot get my test step to fail when I enter false credentials.
I am new at this soapUI, please advise.