JMeter tutorial 25 - JSON Extractor Post Processor | JSON Path Expression | Extract Multiple Values
Вставка
- Опубліковано 14 кві 2020
- Hi Guys!
This video explains how to work with Post Processor JSON Extractor in JMeter.
****JSON*****:
Stands for JavaScript Object Notation
Lightweight format for storing and transporting data
Most of the Rest APIs uses JSON as exchange data format ( REST APIs receive JSON Response from server)
****JSON Extractor******:
Used to extract data from JSON Response
Stores the extracted data from JSON Response
in variables
Those variables are used in subsequent requests
=============================================================
JMeter Tutorial Playlist:
• JMeter Tutorial
Git and GitHub Tutorial Playlist:
• Git and GitHub Tutorial
Automation Anywhere Tutorial Playlist:
• Automation Anywhere A1...
UiPath Tutorial Playlist:
• UiPath Tutorial
Subscribe for more tutorials - / @qualityassurancelab7764
One of the best videos on Json Extractor. You have covered all the aspects properly! Thanks a lot!!
Большое спасибо за подробное видео обработки json, получению переменных и добавлению их в запросы!
I am Brazilian, and you helped me a lot! Thanks.
Excellent example! Thank you so much. Excellent teacher!
Thank you very much.
Excellent description and covering all the aspects.
The way you explain these tings in such a simple way i just want to say great job
Thank you so much!
very nice video. you have described JSON extractor very nicely and took many different cases to explain it. Great! Thanks!
Thanks for your time and feedback, keep learning.
Excellent and to the point explanation! Thank you for helping
Thank You So much. Waiting for more videos like this related to JMeter.
You are welcome, keep learning!
Thanks you very much, very very well explained
Thanks for the video! It was very helpful for me. GL with your channel and subscribed.
It’s a very nice and clear explanation thank you so much
Thank you very much, it is very helpful for me.
Excellent tutorial.
Thank you so much. This video is useful for me.
excellant nice explaination ...
You are amazing! Thank you so much!
Good Explanation.. Appreciate it
hi mam you gave the exact solution to my problem, thank you so much.......
👌 excellent
Thank you, very helpful.😊
Thanks for explaining
Hi may i know by using the same how to extract the data from websocket response which gives json.??? And then store it and use it in the subsequent requests???
How can I extract the first 10 elements of an array from body response parameter? Thanks
V Good TQ
Hi you are the best you need to make more videos, you are amazing in teaching, I have cleared so many my concept. do you teach as well? or live support on project pls?
Hi
As explained in video, is it possible to pass all the id which is fetched as input to next http request?
Have some doubt like we can also extract the regular expression ectractor to json value .. What will be the advantage of extraction of it
Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Hi Thank you for the detailed video. I have followed the same steps for combination of POST and PUT requests. Am getting "Illegal char in path" error for using $ and {}. can you please help me out?
very helpful thanks a lot
Hi, Can you explain to extract more than one different variables from xml response? like customerID, customerName, customerMob... Same way didnt work for Reg expression having xml response
Hi, great video, i need help for make a loop assert. Ex: i would like to assert all "id" field are equal to id(53), i trying to use loop, foreach, and while.But they don't worked. how do i this?
Good session..
Very nice Explanation. I am looking for JDBC Extractor Post Processor . Can you please give info if you have any video on this. Excellent Tutorial.
Thank you! please, do you now how to obtain the last value?
nice explanation
Can u make a video on reading external JSON file in BeanShell pre or post processor?
Thanks for the informative video. I've a question - how is the json extractor variables used in Beanshell scripting. if you can add that tutorial as well. it will help.
How to export these all the id values in excel ? in my case I’m using beanshell to write csv, but when I use -1 in json extractor i get no data result ( as default value )
Thnk u so much
Hi Sir, I need your help to get the variable through Json Path extractor. Actually the response is coming with backward slashed like { "data": "{\"responsever\":\"1.1\",\"OFY\":[{\"abc\"}]} etc....
how can we extract the Json value in this format.? Please help.
Im running a test plan containing 10 requests i need to get the variable value from 3rd response json to be passed to request URL of 10 th request passed . any way we can use json extractor to do this?
Yes. Under 3rd http request put json extractor. Use this video as to how to fetch the value you want using json extractor. Suppos u fetched value of user in variable name user from 3rd request's response; Then in 10th http request pass the variable user to json field whenever your need is.
Hello Team How I can use access token from login API to all APIs
Hi, Thanks for the video. But could you help me with the use case where i get multiple values from the extractor and then want to use all those values dynamically in my subsequent request.
Eg: I have got ID: 1,2,3,4,5 and in the next HTTP request I want to pass all these one by one and not together.
Note: Number of IDs might change in the response so I cannot define them by fixed numbers
How have you implemented this scenario?
how to use variable in POST request?
super madam
How to extract 1st id and 2nd id and save it in single veriable
Nice explanation Mam. I have started performance testing of Mobile app using Jmeter and getting following error while running the Login sampler. {"code":"401","message":"Unauthorized","error":"Invalid Token"} and I am not getting any token from the previous sampler response. how to get the token when previous sampler not providing any token. This is my first project . Please Please help me.
Does your mobile app requires authentication during launch?
You can ask app developers to let you know if authentication is enabled in the app, if yes, what authentication is enabled.
Accordingly you'll handle the authentication.
For e.g. the basic authentication is handled by HTTP Authorization manager or HTTP Header Manger as explained here - ua-cam.com/video/kqufkDQJZDE/v-deo.html
Tysm for the in-detail explanation. I have a requirement where in the 'id' position is not fixed. But I need to get the 'id' value based on some 'name'. Please help me with a solution.
You're welcome, is the level of "id" changing too or the level is same (e.g. first level/second level)
@@qualityassurancelab7764 Thanks for the response :) Yes, the id level is same, varying in position only. Luckily I have found the solution for my query in this link i.e., stackoverflow.com/questions/43878979/how-to-extract-a-json-value-in-jmeter-based-on-value-of-another
Hi....can u please upload jmeter part3 interview questions
Hi, I am facing some difficulty to do load test. I will need you help or suggestions on this.. My test scenario is :
I am getting Response as
{
"data": {
"receivedCalls": {
"rows": [{
"id": 494311,
"RetailOutlet": {
"id": 4844
}
},
{
"id": 494312,
"RetailOutlet": {
"id": 4844
}
},
{
"id": 494313,
"RetailOutlet": {
"id": 4844
}
},
{
"id": 494313,
"RetailOutlet": {
"id": 4844
}
}
],
"count": null,
"__typename": "Calls"
}
}
}
I am storing values in two variable callID and retailOutletID as an array (by putting -1 for Match No.) using Json extractor.
Now in next API request body I can pass only one value. Here one thread must use one value. Say thread 1 has to use 494311 in the request and thread 2 has to user 494312 and it goes on for other thread as well.
Next API request looks like this:
{"operationName":"getOrders","variables":{"callId":494311,"sellerId":16}
How to achieve this in Jmeter? If would be really helpful if you could reply to me on this.
Thank you.
Hi, you can store the JSON extraction results into a CSV file (using beanshell post processor)
Once, data is in CSV file, use CSV dataset config to fetch those data from the csv file . For all threads to have one value and unique value, take Recycle on EOF as False, Stop threads on EOF as True and Sharing mode as All Threads. For more details on CSV dataset config, please refer - ua-cam.com/video/mrmnos1eMKk/v-deo.html
Next questions are not added
This video is full copy of Raghav Pal video
Excellent tutorial.