ready-api

SoapUI Comparing two XML responses is incredibly slow

主宰稳场 提交于 2021-02-11 14:01:17
问题 In my test case I have two test step that produce an XML response. The XML structure is slightly different from one another but the data is the same and ordered the same. I have created a Groovy Script test step that will read the iterations of data from both XMLs and assert that they equal. The number of rows in these XML Response can exceed 500 rows. The Test Case loops over 349 times. When I run the test case, it lags on the groovy script assert for the first loop through - taking greater

Groovy - XML to JSON without knowing each key

别说谁变了你拦得住时间么 提交于 2019-12-24 02:59:11
问题 I have an XML web service response (see below) and would like to convert it to JSON, without knowing each key. The response is much bigger, this is just a sample showing the structure. Is this possible to do in Groovy? <allMortProdContainers> <WsMortProdContainerv02> <allWsMortProdCapCollarBandByEnd xsi:nil="true"/> <allWsMortProdCashBackBandByEnd xsi:nil="true"/> <allWsMortProdEarlyRepaymentBandByEnd> <WsMortProdEarlyRepaymentBandv01> <endDate>???</endDate> <endMonth>???</endMonth>

How to send an email using groovy script in Soap UI?

落花浮王杯 提交于 2019-12-13 09:14:12
问题 I want to send an automated email once all my test steps are passed in SOAP UI, using a groovy script test step?? Is there a way that we can achieve this ?? 回答1: You will have to use a Java library such as Simple Java Mail and call it from Groovy in a Groovy Script Test Step. You can add external jars in the bin/ext directory of your SoapUI install, and they will be added to the classpath next time the tool is started. If you use the samples from a library, you can use the Java, in most cases

Create a mongo connection and make it alive for execution of an Entire Test Suite in Ready!API

旧时模样 提交于 2019-12-12 09:47:42
问题 If you want to make an gmongo connection alive for an entire test suite and then close it in a tear down operation after the entire test suite is executed then, How could we do that? Currently what am I doing is, I am creating an connection for an particular test step and then after the test step is executed, I close the connection by using the code mongoClient.close() But now there is a requirement where I need to create the connection before the test suite starts executing, use the same

How to update Resource value in ReadyAPI/SoapUI dynamically by groovy?

可紊 提交于 2019-12-11 03:12:03
问题 my resource is in this format "testing/101/getCustomer/99" Here I need to change "101" and "99" part dynamically by groovy so that I can run for multiple values in same test case. I looked into the ReadyAPI's built in feature, but it was not that helpful. I also found this link, but it changed the resource in the entire project. The solution I am looking for is in test case level. As my each test case will have different url. https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-set

Groovy Script assert on Key/Value pairs in SOAP UI XML response

有些话、适合烂在心里 提交于 2019-12-11 01:13:27
问题 I am using Ready API/SOAP UI. I added a SOAP request and I get a SOAP response XML. My response object has up to 40 Key/Value pairs. I have functional tests to specifically test each. Loop through the whole ArrayOfObjects and Assert if the Key exists and if it exists assert the value. Can I get a working solution for this scenario. I am unable to do assert on the output object. SOAP structure looks like this: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http:

Create a mongo connection and make it alive for execution of an Entire Test Suite in Ready!API

被刻印的时光 ゝ 提交于 2019-12-06 03:40:20
If you want to make an gmongo connection alive for an entire test suite and then close it in a tear down operation after the entire test suite is executed then, How could we do that? Currently what am I doing is, I am creating an connection for an particular test step and then after the test step is executed, I close the connection by using the code mongoClient.close() But now there is a requirement where I need to create the connection before the test suite starts executing, use the same connection throughout the test suite inside the test cases/test steps and then close the connection the