Contributions
How to save a list with String in global properties?
Hi all, i would like to save a list with strings so that i can access it within the context of SOAPUI. Right now i save the items in a file. Well, i could save the values as separate global properties but then i have the problem that i don't know how many of them exist. Any ideas? Thanks in advance, DS582Views0likes0CommentsSetting testCase properties from mockWebservice
Hi all, i would like to set properties of a testCase from within a mockService. How can i do this? I call the testCase like this: import com.eviware.soapui.impl.wsdl.* WsdlProject proj = mockRunner.getMockService().getProject(); for(WsdlTestSuite suite : proj.getTestSuiteList()) { com.eviware.soapui.model.testsuite.TestSuiteRunner runner = suite.run((com.eviware.soapui.support.types.StringToObjectMap)context, true) } Thanks for the help, DS12 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0CommentsMockService: Call other service with dynamic request
Hi all, following situation: I have a mock service in SOAPUI and before i return the response for this service, i want to execute another webservice (realised as a test case) which already works. But i don't want to simply execute the other webservice (the test case), i would like to change the request of this service dynamically depending on some values in the request of my mock service. To execute the test case i use this: import com.eviware.soapui.impl.wsdl.* WsdlProject proj = mockRunner.getMockService().getProject(); for(WsdlTestSuite suite : proj.getTestSuiteList()) { log.info(suite.getLabel()) //use this runner com.eviware.soapui.model.testsuite.TestSuiteRunner runner = suite.run((com.eviware.soapui.support.types.StringToObjectMap)context, true) log.info(runner.getClass()) } That's how i call the service, but how can i change some values in the request of this service?? Cheers, DS739Views0likes0CommentsRe: Mock Webservice: Dynamically creating a response
Thanks for the answer but that doesn't really help me. I need to dynamically create a response depending on the request. I can't return an already existing response. I think there are two options: 1) Creating a completely new response 2) Loading a predefined response and changing some values In both cases the question is: how do i insert a node into the response that i want to return? Thanks, DS1KViews0likes0CommentsMock Webservice: Dynamically creating a response
Hi all, i have a mock service that gets a request with a list of one or more nodes. Now i want to create a response, that also contains one or more notes (depending on the number of nodes in the request). So here is my question: How can i insert a new node into the response if i use "SCRIPT" for dispatching? Or is it possible to use a different type of dispatching? Cheers, DS1.4KViews0likes3Comments