D
D
Dmitry Vanichkin2021-03-16 17:28:57
SOAP
Dmitry Vanichkin, 2021-03-16 17:28:57

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";


Tell me, please, how viable is this story, what underwater ones can expect me along the way and is it worth developing it or is it better to immediately score and write something similar in python?
I assume that bottlenecks are possible pitfalls of Soap UI itself and that I take the response from a file on the server.
This path was chosen due to the existing developments of mocks (but not used for NT) on Soap UI and the fact that the project can be quickly assembled into .war and deployed to weblogic.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
RealLazyCat, 2021-03-21
@RealLazyCat

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 question

Ask a Question

731 491 924 answers to any question