Тёмный

JMeter tutorial 25 - JSON Extractor Post Processor | JSON Path Expression | Extract Multiple Values 

Quality Assurance Lab
Подписаться 42 тыс.
Просмотров 64 тыс.
50% 1

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

Опубликовано:

 

28 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@РоманЛяхин-б1ш
@РоманЛяхин-б1ш 6 месяцев назад
Большое спасибо за подробное видео обработки json, получению переменных и добавлению их в запросы!
@uzairsiddiqui6660
@uzairsiddiqui6660 4 года назад
Thank You So much. Waiting for more videos like this related to JMeter.
@qualityassurancelab7764
@qualityassurancelab7764 4 года назад
You are welcome, keep learning!
@diksharani4944
@diksharani4944 4 года назад
very nice video. you have described JSON extractor very nicely and took many different cases to explain it. Great! Thanks!
@qualityassurancelab7764
@qualityassurancelab7764 4 года назад
Thanks for your time and feedback, keep learning.
@MegaManck
@MegaManck 4 года назад
excellant nice explaination ...
@jayasankarwarrier9499
@jayasankarwarrier9499 Год назад
Excellent and to the point explanation! Thank you for helping
@akhilavvaru6562
@akhilavvaru6562 Год назад
hi mam you gave the exact solution to my problem, thank you so much.......
@sudhirsadanala9342
@sudhirsadanala9342 5 месяцев назад
Thanks you very much, very very well explained
@it4pradeep
@it4pradeep 3 года назад
Thanks for explaining
@ravikrishnanthangavel9511
@ravikrishnanthangavel9511 4 года назад
Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
@vipin3966
@vipin3966 2 года назад
Good session..
@Superhermanas566
@Superhermanas566 Год назад
Thank you, very helpful.😊
@gujjerajesh2492
@gujjerajesh2492 2 года назад
nice explanation
@ParagOak
@ParagOak Год назад
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 )
@VivekMishra-tv2lm
@VivekMishra-tv2lm Месяц назад
Using blazemaster to recording the scenario
@saurabhsrivastav902
@saurabhsrivastav902 Год назад
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
@arshadsalmani9632
@arshadsalmani9632 Год назад
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.
@gujjerajesh2492
@gujjerajesh2492 2 года назад
super madam
@madhukarapaim3448
@madhukarapaim3448 Год назад
Hi As explained in video, is it possible to pass all the id which is fetched as input to next http request?
@manikantar3913
@manikantar3913 4 месяца назад
how to use variable in POST request?
@MrMesuraj
@MrMesuraj 2 года назад
Hello Team How I can use access token from login API to all APIs
@VivekMishra-tv2lm
@VivekMishra-tv2lm Месяц назад
Hi I'm facing a problem logging into my web application. I would like to request you pls help me to resolve it.
@gauravpanthare4789
@gauravpanthare4789 Год назад
How to extract 1st id and 2nd id and save it in single veriable
@shobhitbahri7714
@shobhitbahri7714 3 года назад
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
@shreyasaha579
@shreyasaha579 2 года назад
How have you implemented this scenario?
@ИльдарАдилов
@ИльдарАдилов 18 дней назад
Thank you for the guide. It was realy helpful and you save my time
@thedubaiworld413
@thedubaiworld413 3 года назад
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.
@qualityassurancelab7764
@qualityassurancelab7764 3 года назад
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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-kqufkDQJZDE.html
@SireeshaPapineni
@SireeshaPapineni 8 месяцев назад
Hi....can u please upload jmeter part3 interview questions
@yourworld4786
@yourworld4786 3 года назад
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?
@khinlay3905
@khinlay3905 3 года назад
Thank you very much, it is very helpful for me.
@surajsurya1414
@surajsurya1414 4 года назад
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.
@qualityassurancelab7764
@qualityassurancelab7764 4 года назад
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 - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-mrmnos1eMKk.html
@jagadeeshb5445
@jagadeeshb5445 4 года назад
Can u make a video on reading external JSON file in BeanShell pre or post processor?
@IamSlavik
@IamSlavik 4 года назад
Thanks for the video! It was very helpful for me. GL with your channel and subscribed.
@sritamkumarrout4499
@sritamkumarrout4499 2 месяца назад
Next questions are not added
@AshishKumar-ww1mr
@AshishKumar-ww1mr Месяц назад
Thanks for helping,. there's really not much content about api testing at at all.Appreciate this.
@rakeshravindran346
@rakeshravindran346 4 года назад
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?
@shirsN
@shirsN 4 года назад
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.
@vivekhegde9928
@vivekhegde9928 Год назад
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?
@KayChannel23
@KayChannel23 Год назад
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.
@ashitaagrawal3114
@ashitaagrawal3114 4 месяца назад
One of the best videos on Json Extractor. You have covered all the aspects properly! Thanks a lot!!
@brpctips
@brpctips 2 года назад
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?
@pradeepraghavan3645
@pradeepraghavan3645 Год назад
Have some doubt like we can also extract the regular expression ectractor to json value .. What will be the advantage of extraction of it
@rohitkapade1130
@rohitkapade1130 Год назад
Thnk u so much
@joelwilliamsWilliams-s7g
@joelwilliamsWilliams-s7g 2 месяца назад
V Good TQ
@anitapatel6021
@anitapatel6021 3 года назад
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.
@pramodpammi8715
@pramodpammi8715 4 года назад
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???
@darshanaweerasekara1089
@darshanaweerasekara1089 10 месяцев назад
Thank you very much. Excellent description and covering all the aspects.
@amandeepsingh339
@amandeepsingh339 3 года назад
How can I extract the first 10 elements of an array from body response parameter? Thanks
@md.habiburrahman1340
@md.habiburrahman1340 4 года назад
Excellent tutorial.
@anlduzgun6004
@anlduzgun6004 Год назад
It’s a very nice and clear explanation thank you so much
@luongthitruc1813
@luongthitruc1813 Год назад
Thank you so much. This video is useful for me.
@tuteromero
@tuteromero 3 года назад
Thank you! please, do you now how to obtain the last value?
@sameerpawar3909
@sameerpawar3909 3 года назад
This video is full copy of Raghav Pal video
@Rendaextradriverblack
@Rendaextradriverblack 3 года назад
I am Brazilian, and you helped me a lot! Thanks.
@abdulmazeed9588
@abdulmazeed9588 2 года назад
Good Explanation.. Appreciate it
@MrLavrinenko292
@MrLavrinenko292 Год назад
You are amazing! Thank you so much!
@jitendrajadhav327
@jitendrajadhav327 Год назад
very helpful thanks a lot
@hemanthkalikoli6433
@hemanthkalikoli6433 4 года назад
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.
@qualityassurancelab7764
@qualityassurancelab7764 4 года назад
You're welcome, is the level of "id" changing too or the level is same (e.g. first level/second level)
@hemanthkalikoli6433
@hemanthkalikoli6433 4 года назад
@@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
@atilathesonofdanubius4277
@atilathesonofdanubius4277 3 года назад
Excellent example! Thank you so much. Excellent teacher!
@sarathr4495
@sarathr4495 Год назад
👌 excellent
@harikavand
@harikavand 3 года назад
Excellent tutorial.
@nomadicrishi2158
@nomadicrishi2158 4 года назад
The way you explain these tings in such a simple way i just want to say great job
@qualityassurancelab7764
@qualityassurancelab7764 4 года назад
Thank you so much!
Далее
ПОЮ ВЖИВУЮ🎙
3:19:12
Просмотров 875 тыс.
Barno
00:22
Просмотров 658 тыс.
Learn JSON in 10 Minutes
12:00
Просмотров 3,2 млн
S2E6 Learn JMeter Series - JSON Extractor
8:56
Просмотров 5 тыс.