Create assertion 'templates' so you can apply & edit an assertion to multiple test steps
Right now, assertions are individually managed as unique entries on each test step. I can 'clone' an assertion to multiple other test steps/cases/suites, but it is only a copy. If i have an assertion i want to apply multiple places, it would be EXTREMELY helpful to create a template assertion and apply it to all the relevant test steps. This way if i need to modify the assertion across the board, i could update it in one place rather than editing each individual assertion for every. single. test. step.5Views0likes0CommentsSmart Assertions with large responses
We have found that large response messages (e.g., 85000 lines) can cause the Smart Assertion to engage up for an unacceptable time during which the application becomes locked and unresponsive (can be over an hour). The only way to regain control when interacting with the ReadyAPI application is to kill the program process and restart the program. Is there a way to set a time-out for a Smart Assertion? Will this happen using testrunner? I feel we have just gotten lucky this hasn't come up using testrunner via Jenkins, but it feels like we're playing minesweeper and the data will be hit eventually. Thanks.48Views0likes1CommentParse a multipart/data-form response
Hello all, In my project, I want to assert the content of the reply from my server. I send a POST request containing only a xml file, and I get a multipart/form-data containing 2 parts as a response, as expected. How do I parse those 2 parts of the response in a grovvy script ? The problem is that the "response" property of my Request only contain the first part. The 2nd seems to be lost. Thank you for your support.486Views0likes1CommentUnable to read Kafka received messages using MessageExchange
Hi All, I have subscribed to a topic and i receive messages in the topic. When i add a script assertion to this step using MessageExchange like def response = messageExchange.getResponse() log.info response I am getting the following error Error in assertion script of the [Receive Message] test step: Cannot invoke method getResponse() on null object Am i missing to add something here?Can i read kafka received messages using messageExchange. Kindly help.Solved122Views2likes4CommentsUnable to Assert or Access Kafka Consumer Data
I have set up a Kafka Consumer using an API Test step and I can see the data returned from the topic under 'Received Data', but I cannot apply assertions or access the data using Get Data function. I saw that this was an issue dating back 3 years ago but the only resolution is a work around creating a consumer using groovy and the apache library. Any thoughts on why this is not possible, and any solutions using the existing API Connection?48Views0likes1CommentReadyAPI - Adding assertions on Received Data from Kafka subscribe event
I am using readyapi to read some events from our Kafka queue. I have successfully connected, Subcribed, to the queue and I see events coming in while running some tests which creates events on that topic. The problem is that I cannot do assertion on the events I see coming in. In my other REST test cases I use the GetData functionality to read some value. But here for the KAFKA when I open e.g ScriptAssertion and navigate to the Subscribe test step (again which I see has received events) the ReadyAPI does not give me anything to select... The ADD button is disabled! Then I test it on my REST test cases and it works fine.. REST test step->Response->add assertion->Select "script assertion"->right-click->GetData->navigate to the test step->Response->Select wanted value->Done KAFKA test step->Response (Received data)->add assertion->Select "script assertion"->right-click->GetData->navigate to the test step->cannot do anything more... No parameter to select and the ADD button is disabled.... But the events are visible, received! Any suggestions, how can I automatically get the received data? Checked property transfer as well but neither that works. Readyapi version 3.9.2 (also tested on 3.9.1 same issue)1.2KViews0likes3CommentsData Validation after Running a POST Request
I'm quite new to Ready API and API testing, but need help with needing to validate that after running a post request that the request has been successfully inserted into the database and fetch the status column from the db, which I will use with assertions The db is running on GCP... Any help is greatly appreciatedSolved370Views0likes2CommentsSmart Assertion Values capturing in Groovy
Hi Guys, I am new to Ready API and still in learning phase . Currently , I am looking into the smart assertion , where in my smart assertion I am getting the error in a particular test step, I want to capture that Test step request - smart assertion response and display it in my HTM Report. Kindly let me know if there is anyway . [While googling I found a way for capturing it for all the test step in project , but dint find for selected test step and tried multiple times, still getting errors] Thanks & Regards, Sabitha D.670Views0likes2Comments