MaximStanovovOccasional ContributorJoined 8 years ago5 Posts3 LikesLikes received3 SolutionsView All Badges
ContributionsMost RecentMost LikesSolutionsRe: How can I assert a json parameter in Request with a XML response through Script Assertion in Soap UILooks like you need to get property before use it in the assertion. https://www.soapui.org/functional-testing/properties/working-with-properties.htmlRe: How to setRequestContent in Mock in OnRequest Script to replace first character (is it a BUG??) This code works well. Problem was in my script that I call at mock response. You can use this code to convert UTF-8-BOM request to UTF-8 without BOM. def mockRequestContent try { mockRequestContent = mockRequest.getRequestContent() mockRequest.setRequestContent(mockRequestContent.substring(1)) } catch (Exception e) { log.info(e) } How to setRequestContent in Mock in OnRequest Script to replace first character (is it a BUG??) Hey there! I'm trying to setRequestContent. I have this code in "OnRequest Script" in my Mock: def mockRequestContent try { mockRequestContent = mockRequest.getRequestContent() mockRequest.setRequestContent(mockRequestContent) } catch (Exception e) { log.info(e) } When I send a response to my Mock, I don't get errors at tab "script log", but I get an error at "error log" (see it in attachment). What is the right way to set request content? Thx for your answers. SolvedRe: How to setRequestContent in Mock in OnRequest Script to replace first character (is it a BUG??) Look at my stacktrace. Is it a bug of SoupUI? Why does error have curly brackets around Exception e in the stacktrace - } catch {Exception e} {? Mon Mar 06 19:02:26 MSK 2017:ERROR:org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script25.groovy: 97: unexpected token: catch @ line 97, column 4. } catch {Exception e} { ^ org.codehaus.groovy.syntax.SyntaxException: unexpected token: catch @ line 97, column 4. Re: How can I send multiple requests (same request) by a for loop to the same WebService through SoapUI? Create new Test Suite, add Test Case, add Load Test, and try to use Load Test for send multiple request. https://www.soapui.org/load-testing/concept.html