Contributions
How to configure enterprise level kafka settings in ReadyAPI?
I've given the username and password of the Kafka producer and a consumer under auth manager. Still, when running producer with Avro schema test data, from logs it's showing as an SSL handshake error.. did anyone configured enterprise-level Kafka configuration? Thanks nmrao, Marsha_R,ChrisAdams,richie I need your help2 years agoPlace ReadyAPI QuestionsReadyAPI Questions599Views0likes1CommentHow to connect to kafka topics and test them?
Hi team, Does anybody work on Kafka events? Scenario - I have a daily job from the mainframe which will place some files in WinSCP with .data extension (example_211207.data) now once the file is placed may be after some time it'll get processed in Kafka topics.. now my question is how can connect to this topics and validate them this? Thanks in advance nmraoSolved3 years agoPlace ReadyAPI QuestionsReadyAPI Questions739Views0likes1CommentAssertion failing when validation with previous month's data
Hi Team, Can somebody please help me validate this? I'm really getting confused on how to validate with the previous month's data. API1: this will return all users data { "UserInfo" : [ { "userId" : "5733542", "userActivities" : { "Running" : true, //this will be true because API2 noofrunnings is > 0 of current month (in this case Dec 2021) "Squats" : false, //this will be false because API2 noofsquats is = 0 of previous month (in this case Nov 2021) "Eating" : false //this will be false because API2 noofeating is = 0 of previous month (in this case Nov 2021) } }, { "userId" : "9345982", "userActivities" : { "Running" : false, //this will be false because API2 noofrunnings is = 0 of current month (in this case Dec 2021) "Squats" : true, //this will be true because API2 noofsquats is > 0 of previous month (in this case Nov 2021) "Eating" : true //this will be true because API2 noofeating is > 0 of previous month (in this case Nov 2021) } }, ] } API2: This will return data of each userID in every loop Response of user = 5733542 { "userId" : "5733542", "userInfo" :[ { "month" : "Dec 2021", "noofrunnings": "1" "noofsquats": "1" "noofeating": "1" } { "month" : "Nov 2021", "noofrunnings": "1" "noofsquats": "0" "noofeating": "0" } ] } Response of user = 9345982 { "userId" : "9345982", "userInfo" :[ { "month" : "Dec 2021", "noofrunnings": "0" "noofsquats": "1" "noofeating": "1" } { "month" : "Nov 2021", "noofrunnings": "1" "noofsquats": "1" "noofeating": "1" } ] } I'm trying to validate both these two API's like for 1st iteration of API2 i've to validate against the 1st API, i'm trying this since 12 hrs., but all my assertions are failing. Can someone please help me? my pseudo code is like this, wrote a switch case which will return month + year validating API2'smonth vs my switch case month here i'm failing to write the if, else if, statements and if noofsquats > 0, if noofsquats =0 , similarily fornoofrunnings,noofeatings Thanks in advance!Solved714Views0likes2Comments- 3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0Comments
Re: Groovy script to aggregate data in each iteration from POST request
Hi, I tried using properties and data sink as well, it is not working.. Here's is the thing, From Data source get the credit card numbers (this is a post request where we post credit cards in the loop then it'll give a response like totalpoints:1235) now I'm stuck at the second step - on how to get the points for each credit card and store them in the list and aggregate them - in my case, it is just storing the last credit cards data third step data source loop I tired properties as well, it is replacing the first value with second in the second iteration3 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.2KViews0likes2CommentsGroovy script to aggregate data in each iteration from POST request
Hi Team, Can somebody please help me? I've one data source - Groovy ( I wrote a script where it gives accounts numbers for each client) let's say got 3 account numbers, now I've to pass one by one as a POST request so that the response will give me some data (let's say points) next step I've is Data source loop. Now the question is how can I store the points data for each client and aggregate them in each iteration? Structure DS - Fetch accounts POST REQUEST and GET Points in response Groovy Script - here I have to write the script (i tried to get the response from above request and tried to stored in list but it is storing the points of last record only) DS LOOP Thanks in advance!Solved1.3KViews0likes4Comments