Answer the question
In order to leave comments, you need to log in
Is Soap UI suitable for HT?
Hello. Do not judge storgo, newbie in NT.
The task was to carry out the NT of the integration system on mocks.
For this purpose, SOAP UI was chosen (the final project was built as a war file and installed as an application on weblogic). I added services to it, made mock services out of them, in which scripts are written in groovy that parse the request and, based on some data from it, substitute the response in the form of an xml file in which the necessary data.
def wsdlcontext = context.mockService.getMockedInterfaces()[0].getDefinitionContext();
def validator = new com.eviware.soapui.impl.wsdl.support.wsdl.WsdlValidator(wsdlcontext);
def msgExchange = new com.eviware.soapui.impl.wsdl.panels.mockoperation.WsdlMockRequestMessageExchange(mockRequest,mockOperation);
def errors = validator.assertRequest(msgExchange, false);
def xmlparser = new XmlParser().parseText(mockRequest.getRequestContent());
def cuid = xmlparser["*:Body"]["*:getAccounts"]["*:CUID"][0].value()[0]; /*Достаю нужное значение*/
def delay = context.mbeanServer.getAttribute(context.mbeanObjName, "Accounts")
def projectPath = new File(mockOperation.mockService.project.path).parent/*Путь к проекту на сервере*/
def respfile = new File("/tmp/Mock_noDB/Resp/getAccounts/"+String.format('%s', cuid)+".xml")/*Путь к файлу на сервере*/
sleep(delay)
requestContext.responseMessage = respfile.getText()
return (requestContext.responseMessage == null)?"Null": "getAccounts";
Answer the question
In order to leave comments, you need to log in
Is Soap UI suitable for HT? - NO, in the sense it is not intended for the formation of a load. use your requests from Soap UI in Jmeter for example. and send them to your application.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question