Data Source test step doesn't output arrays into properties
Hello! I am using Ready Api GUI 3.57.0 and I am trying to setup a modular, data-driven general testcase. I am using GUI only to setup the test, and now I encountered a strange situation when using Data Source test step I have a nested array and I am currently trying to use JSON DataSource to iterate over the root array and save the nested array into a property. And I am failing to do so. When I point to the Array I want to save into the property, if saves Null. When I point to the first member (i = 0) of the array, it shows the data properly. Could anybody please help me check if I am the one who's doing something wrong, or it is ReadyApi being moody? To make the situation more specific: This is my JSON data source: { "name": "Get_PC", "toTest": true, "templatesDirectoryPath": "I:/Testing/AutotestSourceDataFiles/P1/Get_PC", "a_webServiceDefinition":[ { "name":"2018/05", "toTest": true, "webServiceUri": "/P1/2018/05", "o_nameSpaceDefinitions": [ {"nsName": "soapenv", "nsUrl": "http://schemas.xmlsoap.org/soap/envelope/"}, {"nsName": "ns", "nsUrl": "http://www.data.com/2013/08"}, {"nsName": "ns1", "nsUrl": "http://ws.com/2018/05"} ] }, { "name":"2023/09", "toTest": true, "webServiceUri": "/P1/2023/09", "o_nameSpaceDefinitions": [ {"nsName": "soapenv", "nsUrl": "http://schemas.xmlsoap.org/soap/envelope/"}, {"nsName": "ns", "nsUrl": "http://www.data.com/2023/04"}, {"nsName": "ns1", "nsUrl": "http://ws.com/2023/09"} ] } ] } My DataSource test steps configuration is: Data Source Type: JSON Step and property points to the aforementioned JSON string Row Path: $['a_webServiceDefinition'] Column Path: ['o_nameSpaceDefinitions'] According to JSON PATH documentation and validators, the JSON PATH: $['a_webServiceDefinition'][0]['o_nameSpaceDefinitions'] should return the array I want, but it is returning NULL. Also, when I modify column Path to ['o_nameSpaceDefinitions'] [0], it correctly returns the first object in the array. Is there a problem on my side?29Views0likes0CommentsReadyAPI 3.56.0 does not fail testcase if iteration in datasource fails
Hi, We have a datasource which takes data from excel to feed in the request. This excel has multiple rows, each row creates a different request and each row gets it's own assertion data. Since release 3.56.0, it seems like whenever an iteration fails from the datasource that is NOT the very last row in the datasource, the test case will still be reported as passed. As a workaround, I'm trying to create a custom testcase property "hasFailed" with a standard value of "false". Whenever an assertion fails, the testcase property is set on "true", but whenever I try to execute the follow script in my test case teardown script: def hasFailed = testRunner.testCase.getPropertyValue("hasFailed") if (hasFailed == "true") { log.info(hasFailed) testRunner.fail("Testcase failed, check transaction log for more details") } it doesn't seem to work. The log.info is displayed but the testRunner.fail doesn't fail the test case itself. Any tips on how to fix this?59Views1like1CommentSpecifying a specific Schema when connecting to Postgres Database Connection
Hi all .. I have no trouble connecting my ReadyAPI application to a Postgres database. However, I need to specify a specific schema to connect to. Say the schema i need to connect to is called bluesky how do i modify my connection string so that the queries hit that specific schema? jdbc:postgresql://0.0.0.1:5432/oompaloompa?user=player1&password=PASS_VALUESolved49Views0likes1CommentRest request attachments multipart form data for json file with parameterized json data
So I have been trying to do a scenario where i have two attachments for a rest request, one json file which i need to parameterize couple of fields from previous request. The problem with this is once you have cached the attachment you cannot modify it based on the previous test steps, So i have followed the following youtube link https://www.youtube.com/watch?v=iL-zehJmtWw Used query parameter to use a locally store file of json to request but we are getting the error from response that application/octet-stream content type is not accepted ------=_Part_01_136051460.1696260652738 Content-Disposition: form-data; name="testFile" testFile:/Path/to/file/testFile.json I have used parameter like this testFile:${projectDir}/testFile.json What should I do in this case999Views0likes6CommentsAuto-Populate Data Generator "Value from set" values
Is there anyway to automatically populate the values list in the "Value from set" option in the Data Generator section of the Data Source step? Digging through the API definition for the DataGenerator DataSource step https://support.smartbear.com/readyapi/apidocs/3.0.0/pro/com/eviware/soapui/impl/wsdl/teststeps/datasource/DataGenerator/UI/DataGeneratorDataSource.html I could probably do this with a call to setConfig but was wondering if I was missing something easier? We need to run some load tests on a system to do some troubleshooting. Each request needs to submit one of a selection of id's. This would be simple and not a problem except that these id's change on a daily basis. We also want these to run with minimal need for user intervention. RegardsSolved46Views0likes1Commentreadyapi Database connection
in our project, when I add a datasource step and try to add, and choose JDBC as Data Source, and try to add connection I get a pop that says "Connection properties have changed. Do you want to build a query?", I choose Yes to see table like the screenshot below, since I want to select visually database and fields, but it takes very long time like 7 mins to see all databases, is this something expected to take that long, or is there any other solution for that? It is large database, so is there anyway maybe that readyapi does caching?? or any other solutions for large database.76Views0likes4CommentsPassing comma separated values for a property in Data driven test case
Hi, I am creating a grid data driven test case using Ready API. For one of the properties, I have to pass multiple comma separated values for a particular property in my REST request. I am not getting how to split the property value in request editor into multiple strings as otherwise the value is being passed to request as single value. Please guide if there is any direct support for processing such data or I need to use groovy script? The grid data looks like: The request snippet is as below:Solved825Views0likes10Comments