Contributions
Unable to select assertion type from list within a REST request
I am using SoapUI 5.2.1 on a Mac for the first time and am unable to add relevant assertions to a REST request test step. Clicking the Add Assertion (+) icon brings up the dialog as expected but clicking on the various types (Script, Property Content, Compliance etc) does nothing and therefore prevents the required assertions being added. This works fine on Windows and appears to be a Mac issue. I have already had to hack the installation to get it to run on a Mac by editing soapui.sh and uncommenting the line JAVA_OPTS="$JAVA_OPTS -Dsoapui.browser.disabled=true"2.2KViews0likes6CommentsRe: Retrieve request content with property subs
I have solved my own problem, albeit via a clunky workaround def request = testStep.getTestRequest() String requestName = "\${" + request.getName() + "#Request}" def requestBody = context.expand( requestName ) By using context.expand(), all embedded property substitutions are applied and it appears to work9 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.4KViews0likes0CommentsRetrieve request content with property subs
Is it possible to use an Event Listener to retrieve the outgoing request details AFTER any property substitutions have been applied. I need to generate an auth header, the algorithm for which requires the actual body of the request as an argument. Using a beforeSubmit listener, I have managed to retrieve the request content using submit.getRequest().getRequestContent() however this still has the property names rather than the actual values contained therein and thus results in a mismatch. Any ideas?Solved1.4KViews0likes1Comment