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
3 answers

How do I convert an given time like date string to 13 digit timestamp

I want to test an API in SOAPUI where I have to send a time request in the format 21 Dec 2016 12:34:45 and the API would fetch me all the records present between the provided start date and end Date. Now I have to make assertions whether the records…
subby
  • 71
  • 6
1
vote
2 answers

Determine if SoapUI (ReadyAPI) is started via testrunner.bat or by the user (running in UI-mode)

Is it possible to determine if SoapUI (ReadyAPI) is started via testrunner.bat by the user (running in interactive UI-mode) I know that you can retrieve the current environment using this groovy script code: def env =…
Stef Heyenrath
  • 9,335
  • 12
  • 66
  • 121
1
vote
1 answer

How to completely transfer flow of execution to another step in SOAP UI

I am trying to transfer the execution flow to another step in SOAPUI using groovy. I am using gotoStepByName but the execution is returning back to the next lines of code after execution. I always assumed runTestStepByName will call the test step…
mo0206
  • 791
  • 5
  • 20
  • 36
1
vote
0 answers

Using FileNameFinder class in SoapUI Groovy Scripting

I am trying to mock a service whose request input parameter could be either Name or UniqueIdentifier. The response returned is the same for both the input types. So, I want to name the files _.xml and read the mock responses…
1
vote
2 answers

Property Expansion in DataSink

I'm trying to write test results to a time stamped file in ReadyAPI. I have a DataGen that creates the timestamp in the first step and then later in the DataSink, I use that timestamp in the filename of the out file. I've heard that Property…
Fueled By Coffee
  • 2,467
  • 7
  • 29
  • 43
1
vote
0 answers

Include Test Steps info in JUnit SoapUI reports

I am using SoapUI to execute tests and Ant to generate html report from xml to publish in Jenkins CI. But html reports only shows the status of the testCases (http://www.luv2code.com/wp-content/uploads/2011/01/junit_report_screenshot-1024x567.png),…
koxta
  • 846
  • 2
  • 8
  • 30
1
vote
1 answer

How to pass Map between testCases using properties

I want to do the following in SOAPUI using Groovy: In a TestCase1 select values (Lastname, firstname) from database, and create a Map with dynamic values: def Map = [Login :"$Login", Nom: "$Nom"] I need my map to be transferred to another TestCase,…
scoopy
  • 43
  • 5
1
vote
1 answer

Can we choose environment(endpoint) from Jenkins to run ReadyAPI tests?

I'm trying to run tests from Jenkins integrated with ReadyAPI and Maven. currently, i'm switching the environment from a database and running the testcases. Now, we want to choose the environment from Jenkins, is there any possibility to do so…
Jack1719
  • 11
  • 2
0
votes
0 answers

readyapi xml get attribute value in groovy

I want to get Tag =A what should i do? def res = '''
0
votes
1 answer

ReadyApi Property Transfer counting elements in JSON array response

On the Transfer Property page, how do I set a property which contains the count of the number of elements in a JSON array response? e.g. JSON response: [ { "category": "XXX", "other": "YYY", "another": "ZZZ" }, { "category": "XXX", "other": "YYY" …
Helen Reeves
  • 471
  • 2
  • 14
  • 26
0
votes
0 answers

readyapi virtual service : validate client sends second request 10s after sending first request

I created 2 endpoints for a virtual service (/a and /b) After client sends request to endpoint /a, I need to verify that after 10 seconds client sends a request to endpoint /b. Is there a way to do this in readyapi? I used the onRequest script in…
Skyblue
  • 35
  • 1
  • 1
  • 10
0
votes
0 answers

How to use the External JAVA libraries with Test Engine hosted on Linux

We are using the Test Engine to run our Ready API test suites and this server is a Linux machine. We are referring the java library (com.jcraft.jsch.*) within groovy script and this is used for file upload. this works fine while running the test in…
venkatesh
  • 1
  • 2
0
votes
0 answers

Ready Api - problem with databases settings

I've a problem. I have configured the endpoint for the PREP and PROD environment.I created Functional Tests and for the PREP environment the query to the database worked. I switched to PROD and the connection does not work. works here My test: I…
0
votes
1 answer

Why am I getting Error Code: 502 Proxy Error in ReadyAPI?

ReadyAPI is not working properly. I want to test an API using ReadyAPI for the first time. I created a simple test case. When I run it I get the following response.
zoe
  • 53
  • 5
0
votes
1 answer

Which RunDeck API call can be used to get details of specific sub job of a parent RunDeck job by passing stepctx value and execution Id to API call?

For a parent RunDeck job, I want to fetch sub job names along with it's time related details like start date, end date,etc. and need to store this details into SQL DB table. Which RunDeck API call can be used to fetch details of specific step of…
Sakshi
  • 9
  • 2