Questions tagged [ready-api]

The ReadyAPI tag can be used to refer the professional versions of SmartBear's API testing products such as SoapUI Pro, LoadUI Pro, Secure, and ServiceV.

ReadyAPI is an integrated suite of API testing tools including:

  • soapUI Pro (functional testing)
  • LoadUI Pro (performance testing)
  • ServiceV Pro (service virtualisation/mocking)

Information to provide when asking questions

  • Which version of ReadyAPI are you using? It may be relevant because libraries and features and the API can change.
  • Are there any warnings or errors in the logs? Check the tabs along the bottom of the UI and include these in the question (as text, not an image) if they look relevant.
  • Provide a minimal reproducible example, particulary if your question concerns Groovy or JavaScript. A minimal reproducible example is not just a big code dump, but something that succinctly reproduces your problem.
  • Show what code you've tried or describe the steps you've taken so far.
  • As well as describing what you're having a problem with, it can also be helpful to say why you're doing it this way. Someone may know of a better way to do the same thing.

Without the above information it's hard for others to understand your problem and provide answers and you may risk having your question put on hold for being too broad or unclear.

Also remember to check out the tutorials and sample projects. You may be able to test some scenarios and ideas in these projects to better understand your problem.

Resources

233 questions
12
votes
1 answer

How do I get readyapi (formerly soapui) to respect the values I specify in pom.xml?

My pom.xml looks like this
moorecats
  • 3,242
  • 3
  • 21
  • 23
6
votes
1 answer

SoapUI Pro Groovy! ERROR:BUG! exception in phase 'semantic analysis' in source The lookup for class name caused a failed compilaton

ReadyAPI 'semantic analysis' error. I have stored my script libraries in bin folder and I am calling the getBuildingInfo method from the groovy test script of ReadyAPI. Most of the time this method works fine but once in a while I get this error. I…
ktmrocks
  • 361
  • 1
  • 5
  • 18
5
votes
2 answers

How to place the Groovy in centralized Groovy Library and access that class from any script

I have the below Groovy script which i need to place it in centralized Groovy Library and then access the class mentioned in the Groovy from any script in my Ready API Project Path:…
Kalaiselvan
  • 110
  • 9
4
votes
2 answers

java.io.File.plus() is applicable for arguments types: (java.lang.String) value: [\] in Ready API

I have following Groovy script where I'm trying to fetch the directory name and the file name: File dir = new File("C://Users//avidCoder//Project") log.info dir //Fetching the directory path String fileName = "Demo_Data" + ".json" log.info fileName…
avidCoder
  • 440
  • 2
  • 10
  • 28
4
votes
3 answers

How to trim (space) the variables in the the assertion section in SoapUI?

How to trim (leading and trailing spaces) the variables in the the assertion section of SoapUI/ReadyAPI ? Ex: Input String : "Failure " Output String : "Failure" Ready API Assertion Popup
Arbind Singh
  • 153
  • 1
  • 2
  • 12
4
votes
1 answer

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

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…
subby
  • 71
  • 6
3
votes
0 answers

Socket Hang Up while trying to hit APIs hosted on AWS via Postman

I am trying to test an API hosted using AWS API Gateway and always getting following error: Error: socket hang up Request Headers clientId: system Authorization: //Correct Auth Token User-Agent: PostmanRuntime/7.26.8 Accept: */* Host: //API Host…
3
votes
1 answer

Git - resolve conflicts for Ready API

We use Ready API (the commercialized version of SOAP UI) to develop our Automated Test Suite. However, even the smallest change in the UI will cause a mass changes on the xml test suits. For example, simply load the project "Core". Git diff give…
Hoàng Long
  • 10,746
  • 20
  • 75
  • 124
3
votes
1 answer

Groovy - XML to JSON without knowing each key

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?
Tom
  • 31
  • 2
3
votes
2 answers

How to remove the JSON array, brackets, key and value using replaceAll method?

I have following JSON as an output:- def desiredJson = '{"count": 4, "max": "12", "min": 0, "details": [{"goBus": {"first": 12800, "second": 11900, "third": 12800},"goAir": {"first": 12800, "second": 11900, "third": 12800}, "gotTrain": {"first":…
avidCoder
  • 440
  • 2
  • 10
  • 28
3
votes
3 answers

How to get the particular array node from JSON and print one by one using groovy?

I have the following JSON format :- { "id": "102", "brand": "Disha", "book": [{ "slr": "EFTR", "description": "Grammer", "data": "TYR", "rate": true, "numberOfPages": 345, "maxAllowed": "12", "currentPage": 345 }, …
avidCoder
  • 440
  • 2
  • 10
  • 28
3
votes
3 answers

Unable to resolve class groovy.json.JsonSlurpe

I am getting the following error messages returned: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: Script3.groovy: 1: unable to resolve class groovy.json.JsonSlurpe @ line 1, column 1. import…
Deepika Raj
  • 41
  • 1
  • 1
  • 3
3
votes
1 answer

Keyboard shortcut for autoformat XML request body in SoapUI

Is there a keyboard shortcut to format SoapUI XML request body? I tried Alt+F which didn't work.
ChanChow
  • 1,346
  • 7
  • 28
  • 57
2
votes
1 answer

How can I pass variable in ReadyAPI step using groovy script

I have a 4 steps in a ReadyAPI only thing changes is step number. def testStep = testRunner.testCase.testSteps['Verify Application1'] def testStep = testRunner.testCase.testSteps['Verify Application2'] def testStep =…
Aman Khan
  • 103
  • 3
  • 11
2
votes
1 answer

How to get large number from JSON response using Groovy

In ReadyAPI I have a JSON response like: { "Example" : [ { "Name" : "Name_1", "Id" : 20100202141652076488478 }] } Now, I want to get this Id using Groovy and save it to a property in ReadyAPI. The problem is that…
1
2 3
15 16