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
1
vote
0 answers

rerun a test case in ready api using tear down script

I have a test case "Login" which intermittently fails due to login issues. I would like to implement a tear down script to get the status of the script and rerun if it failed. Here is what I implemented and it doesn't work as…
ChanChow
  • 1,346
  • 7
  • 28
  • 57
1
vote
2 answers

Passing Array from Groovy Step to SoapRequest in ReadyApi 2.3.0

I am passing multiple dates to my request, from groovy I returning something like this (dates vary): [2018-06-11, 2018-06-13, 2018-06-11, 2018-06-14, 2018-06-11, 2018-06-14] Before version 2.3.0 I was using the script below to access each element…
1
vote
1 answer

How to record the timestamp of an XML request in SoapUI and use it in an assertion?

I have a test case in SoapUI NG Pro which has the following steps: POST REST Request that starts a process JDBC Request where I check that the process Start Date has been logged to a database table Delay (to simulate the time it takes for the…
LiamTester
  • 13
  • 2
1
vote
1 answer

How to create dynamic DataSink "Name" and "Value" using groovy and store the data dynamically?

I am getting dynamic data from output file. I want to crate dynamic name and value inside DataSink. So that, the values are stored into it accordingly. Lets say. I am getting book names as AJANTA, DIKSON, PIRATE, SONIC. And sometimes I will get 6-7…
avidCoder
  • 440
  • 2
  • 10
  • 28
1
vote
2 answers

ClassNotFoundException while configuring JMS with TIBCO

While configuring JMS for tibco i am getting this error : Could not establish JMS connection: javax.naming.NoInitialContextException: Cannot instantiate class:"Initial Context Factory class name".[Root exception is…
shiv
  • 21
  • 2
  • 6
1
vote
2 answers

SOAPUI ReadyAPI resource parameter in URL

Is there a way to have a parameter at the end of the URL for a Rest request? This is the URL: http://localhost:8000/my_user/1000 I've tried to use a parameter for the 1000, like so: http://localhost:8000/my_user/${#Project#id_test} This doesn't…
Tom
  • 1,055
  • 1
  • 14
  • 29
1
vote
1 answer

How to generate random number within a specific range in groovy script

How do I generate a random number within a specific range in Groovy Script? I want to generate the number between 10,000 and 90,000 Below are my attempts so far: 1. Math.abs(new Random().nextInt() % 10000) +90000 2. (int)(10000 +…
1
vote
1 answer

Correct test Case execution gives a 'Failed' status

I have a strange problem with testCase execution. I have a test case with the following structure: Setup script: set session_id = 0 set session_index = 0 store custom properties in an external file and the test case body Test Case: data…
A.Joly
  • 2,317
  • 2
  • 20
  • 25
1
vote
1 answer

SOAPUI: can't get tag's value from xml in data source step by data source loop from soap responce

I have an issue with SOAPUI, i get xml with a few word's errors from YandexSpeller. xml that i have got here: https://pastebin.com/0E44WH2a
Ustin
  • 568
  • 6
  • 19
1
vote
0 answers

How to maintain MongoClient connection as a 'singleton' for a TestSuite in groovy/ Soap UI

I have tried as suggested here. I am able to access the connection object, but it says IllegalStateException - state should be: open Below is the snippet which I have tried. //set connection testSuite.metaClass.db = db //get connection (i am…
Ren Phil
  • 11
  • 2
1
vote
1 answer

Add hours to the present date with groovy script

I need some help on how to add hours to the present date, following is my code to add days to the present date. def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def today = new Date() def laterDate = today + 29 // adding 29…
peter
  • 391
  • 1
  • 4
  • 17
1
vote
2 answers

How to set authorization header in SoapUIProTestCaseRunner?

While integrating ReadyAPI tests with Java code, how to set authorization? I get error: #status# : HTTP/1.1 403 Forbidden in java console SoapUIProTestCaseRunner runner = new…
Mahima
  • 43
  • 5
1
vote
1 answer

Not getting json response in SOAPUI when a post request successfully executed in postive scenario but in negative it returns

I am new to SoapUI, I ran a post request in it for creating a user. It returned success code 201 (Same as Postman), which should be, but it is not showing any data under JSON tab in Response window. Where it should show some data as the request is…
Meet
  • 84
  • 1
  • 6
1
vote
2 answers

Convert string to Array or List in Groovy

I am using Soap UI to test the RESTFul webservices.. I have stored [1,2,3,4,5....,10] in the property as PassedValue.. i have to convert this value as Array or list..so that i can fetch each index value. ExpectedValue =…
ChanGan
  • 4,254
  • 11
  • 74
  • 135
1
vote
1 answer

running more than 150000 test cases in soapui

I am trying to run 150,000+ test cases within my test suite in ReadyApi(which involves making a Rest Request to a given API.) , however I always run into Heap memory problem which halts the test execution. I have tried everything on this link :…
0_01_001
  • 43
  • 1
  • 7