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
0
votes
1 answer

Script Assertion not running when request failed[Connection refused] in request log and no response in soapui

Script assertion in my API request is not running when request log shows Connection refused and there is no reponse. This happens when i run the test case as a set with multiple steps and if i run the API step manually, the assertion seems to…
Raghav
  • 67
  • 2
  • 9
0
votes
1 answer

How to read and set custom properties in Ready API at test suite level

I have a project with multiple test suites and each test suite have their own custom properties.So my question is: Is there a way to read from one file and set custom properties in different test suites.
syed naveed
  • 85
  • 2
  • 12
0
votes
1 answer

is there a way to set custom property using groovy in ready API

I am getting 'EmployeeID' Value from one of my API Response using groovy. Now i want to set that value in custom properties using groovy so that i can reuse it in my post API Calls. Is there a way we can achieve this in ready API or using groovy…
syed naveed
  • 85
  • 2
  • 12
0
votes
1 answer

How to sort response in Ready API using groovy in ascending and descending order

I have gone through various articles but didn't find any simple way to sort the API response in ascending or descending order using groovy. Can someone please help on this? import groovy.json.JsonSlurper def inputJson = '''{ "status" :…
syed naveed
  • 85
  • 2
  • 12
0
votes
1 answer

Run Cleanup Phase when a test phase job fails

I have 2 phases in Jenkins Multijob project. One Cleanup Phase and Other Phase has 4 Test Jobs to run sequentially. My Question is when one of the 4 Test job fails, I would like to run Clean Up Phase and then re-run the failed Job. Can this be…
0
votes
0 answers

Script Assertion to validate the keys nested json structure

I am trying to create a script assertion that validates the keys from a nested JSON structure returned from a rest request. The issue I am having is that I don't know whether the values in the response with be true or false. Therefore the…
Ross
  • 2,463
  • 5
  • 35
  • 91
0
votes
0 answers

Printing an XML Holder in quotes hangs the Soapui/ReadyAPI

Before trying the below code, please save all your projects def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def xmlHolder = groovyUtils.getXmlHolder("RequestStep#Response") // Below line works fine log.info xmlHolder //Below…
Gaurav Khurana
  • 3,423
  • 2
  • 29
  • 38
0
votes
1 answer

SoapUI: Find property value within API response and set associated value as another property

I'm making an automated test suite for an API with an odd schema. In my API response, I have a list of types of items people can order and some information about them like price. Each item has an ID:
0
votes
1 answer

Could not find or load main class com.smartbear.ready.cmd.runner.pro.SoapUIProTestCaseRunner

I have a Power Shell script that sits on a VM and creates a PSSession to a physical machine and runs a batch file. Running the batch file directly in the physical machine works as expected, however when I try running it remotely from the VM is it…
Ross
  • 2,463
  • 5
  • 35
  • 91
0
votes
1 answer

"The user name or password is incorrect" Error When Running SoapUI Test Suites from TFS Command Line Task

I have ReadyAPI on a physical machine and I have TFS running on a VM. I am trying to create a TFS build definition that runs a command line task to trigger the testrunner.bat with the correct arguements on the physical machine. Now if I run the…
Ross
  • 2,463
  • 5
  • 35
  • 91
0
votes
0 answers

groovy.lang.missing propertyexception no such property: Error expectedconditions for class: Script25

I am current trying to set up a test case using Readyapi, this automated test case has to find the website and login which is all fine. My problem is that when if logs in it also has to check if the log out button appears, that's when I'm getting…
0
votes
1 answer

Get/Update "REST Request Properties" value in SOAPUI is coming NULL

I am trying to get the Property value and Set it with different value in SoapUI's "REST Request Properties" (NOT the custom properties). It just gives me NULL value Here is what I did: 1. Get test step object 2. get the property value with name of…
ktmrocks
  • 361
  • 1
  • 5
  • 18
0
votes
0 answers

REST service testing READY API -- Multiple attachment with multipart data issue

I am doing testing of REST API POST Call for multipart data through Ready API. I have attached multiple images in Attachments TAB for my test suite . But sending only one of them in parameter. While hitting the service Request, RAW Tab shows the…
0
votes
1 answer

How to run Version-based URL services in Ready-API along with some VIP URL services in the same test-suite?

I have two services in test-suite, one with VIP URL and other with Version-based URL. Second services has a parameter depend on first service response. When I run Test-Suite, first service with VIP URL was passed and second service was Failed and…
Surya
  • 1
  • 2
0
votes
1 answer

Dynamic Virtual Responses in readyapi

I am trying to virtualize an API using ServiceV. What I want to do is, have a request to pull data from JDBC (oracle db in my case), send a request to the virtual service, when the request hits the virtual service, the service looks for a unique…
Jhanz
  • 127
  • 3
  • 3
  • 12