Parse 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.392Views0likes1CommentUnable 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.Solved59Views2likes4CommentsUnable 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?33Views0likes1CommentReadyAPI - 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.1KViews0likes3CommentsData 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 appreciatedSolved325Views0likes2CommentsSmart 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.659Views0likes2CommentsIs it possible to set the test case failed reason that is used in the reports?
This question came up a couple of days ago when going through a TestSuite Report with other team members.Is it possible to set the test case failed reason to a custom message? Currently when a TestCase fails the report simply shows the reason as 'Failing due to failed test step', and I was asked "That's a bit vague, any chance of getting a more descriptivemessage there." This leads to another question, what other reasons are there? I checked back in a few reports and all I ever see is "Failing due to failed test step." I looked through the javadocs and gained no particular insight there. ps. I would love for there to be a "Curiosity" label for questions like these.😼339Views1like2Comments