Contributions
testRunner.fail() for all levels
My project has a test suite and 3 test cases. If the 1st test case has a groovy step with testRunner.fail(), then the 2nd and 3rd test cases continue to run after. (A work around would be to set all the test cases to disabled - I have seen code on the net for this). To make it logical, perhaps there could be something like testRunner.fail() testRunner.cancel() testRunner.testCase.fail() testRunner.testCase.cancel() testRunner.testCase.testSuite.fail() testRunner.testCase.testSuite.cancel() testRunner.testCase.testSuite.project.fail() testRunner.testCase.testSuite.project.cancel()10 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommenttestRunner.fail("reason")
My project has a test suite and 3 test cases. The 1st test case checks for a file, if it is not found it runs testRunner.fail("reason"). If the file does not exist I would like the test to stop. However the 2nd and 3rd test cases run after the groovy step with testRunner.fail("reason"). Is there any way to stop the whole test from running by using a groovy statement? If not, I would like to add it as a feature request.10 years agoPlace ReadyAPI QuestionsReadyAPI Questions899Views0likes1Comment- 11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0Comments
Re: Duplicate username token with TestRunner
'Project view' > 'WS-Security Configurations' is completely empty Also the request has <soapenv:Header/> as I am using the 'Username', 'Password' and 'WSS-Password Type' properties. I could maybe try to right-click the request XML and 'Add WSS Username Token'. That might get it working.11 years agoPlace ReadyAPI QuestionsReadyAPI Questions2.5KViews0likes0CommentsDuplicate username token with TestRunner
When the project is run through the GUI (Project View > TestSuites tab > Select Environment > Run), the username token is correctly sent. When the project is run using TestRunner with -EDefault, the username token is correctly sent. When the project is run using TestRunner with -EENV, the request has a duplicate <wsse:UsernameToken> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.blahblah.com/"> <soapenv:Header> <wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-2"> <wsse:Username>blahblah</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">blahblah</wsse:Password> <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">blahblah</wsse:Nonce> <wsu:Created>2013-11-25T16:09:41.267Z</wsu:Created> </wsse:UsernameToken> <wsse:UsernameToken wsu:Id="UsernameToken-1"> <wsse:Username>blahblah</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">blahblah</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soapenv:Header>11 years agoPlace ReadyAPI QuestionsReadyAPI Questions5.4KViews0likes9Comments