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

КОМЕНТАРІ • 64

  • @ashitaagrawal3114
    @ashitaagrawal3114 2 місяці тому

    One of the best videos on Json Extractor. You have covered all the aspects properly! Thanks a lot!!

  • @user-us3vh8rx9y
    @user-us3vh8rx9y 4 місяці тому

    Большое спасибо за подробное видео обработки json, получению переменных и добавлению их в запросы!

  • @Rendaextradriverblack
    @Rendaextradriverblack 2 роки тому

    I am Brazilian, and you helped me a lot! Thanks.

  • @atilathesonofdanubius4277
    @atilathesonofdanubius4277 3 роки тому

    Excellent example! Thank you so much. Excellent teacher!

  • @darshanaweerasekara1089
    @darshanaweerasekara1089 8 місяців тому

    Thank you very much.
    Excellent description and covering all the aspects.

  • @nomadicrishi2158
    @nomadicrishi2158 3 роки тому

    The way you explain these tings in such a simple way i just want to say great job

  • @diksharani4944
    @diksharani4944 4 роки тому +1

    very nice video. you have described JSON extractor very nicely and took many different cases to explain it. Great! Thanks!

  • @jayasankarwarrier9499
    @jayasankarwarrier9499 Рік тому

    Excellent and to the point explanation! Thank you for helping

  • @uzairsiddiqui6660
    @uzairsiddiqui6660 4 роки тому +2

    Thank You So much. Waiting for more videos like this related to JMeter.

  • @sudhirsadanala9342
    @sudhirsadanala9342 3 місяці тому

    Thanks you very much, very very well explained

  • @IamSlavik
    @IamSlavik 4 роки тому +1

    Thanks for the video! It was very helpful for me. GL with your channel and subscribed.

  • @anlduzgun6004
    @anlduzgun6004 Рік тому

    It’s a very nice and clear explanation thank you so much

  • @khinlay3905
    @khinlay3905 3 роки тому +2

    Thank you very much, it is very helpful for me.

  • @md.habiburrahman1340
    @md.habiburrahman1340 4 роки тому +1

    Excellent tutorial.

  • @luongthitruc1813
    @luongthitruc1813 Рік тому

    Thank you so much. This video is useful for me.

  • @MegaManck
    @MegaManck 3 роки тому +1

    excellant nice explaination ...

  • @MrLavrinenko292
    @MrLavrinenko292 Рік тому

    You are amazing! Thank you so much!

  • @abdulmazeed9588
    @abdulmazeed9588 Рік тому

    Good Explanation.. Appreciate it

  • @akhilavvaru6562
    @akhilavvaru6562 Рік тому

    hi mam you gave the exact solution to my problem, thank you so much.......

  • @sarathr4495
    @sarathr4495 Рік тому

    👌 excellent

  • @Superhermanas566
    @Superhermanas566 11 місяців тому

    Thank you, very helpful.😊

  • @it4pradeep
    @it4pradeep 3 роки тому +1

    Thanks for explaining

  • @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???

  • @amandeepsingh339
    @amandeepsingh339 3 роки тому

    How can I extract the first 10 elements of an array from body response parameter? Thanks

  • @joelwilliamsWilliams-s7g
    @joelwilliamsWilliams-s7g День тому

    V Good TQ

  • @yourworld4786
    @yourworld4786 3 роки тому +2

    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?

  • @madhukarapaim3448
    @madhukarapaim3448 Рік тому

    Hi
    As explained in video, is it possible to pass all the id which is fetched as input to next http request?

  • @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

  • @ravikrishnanthangavel9511
    @ravikrishnanthangavel9511 3 роки тому +1

    Awesome!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @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?

  • @jitendrajadhav327
    @jitendrajadhav327 Рік тому

    very helpful thanks a lot

  • @saurabhsrivastav902
    @saurabhsrivastav902 Рік тому +1

    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

  • @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?

  • @vipin3966
    @vipin3966 2 роки тому

    Good session..

  • @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.

  • @tuteromero
    @tuteromero 3 роки тому

    Thank you! please, do you now how to obtain the last value?

  • @gujjerajesh2492
    @gujjerajesh2492 2 роки тому

    nice explanation

  • @jagadeeshb5445
    @jagadeeshb5445 3 роки тому +1

    Can u make a video on reading external JSON file in BeanShell pre or post processor?

  • @MyChannel-ns3ct
    @MyChannel-ns3ct 11 місяців тому

    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.

  • @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 )

  • @rohitkapade1130
    @rohitkapade1130 11 місяців тому

    Thnk u so much

  • @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.

  • @rakeshravindran346
    @rakeshravindran346 4 роки тому +1

    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?

    • @shirshN
      @shirshN 4 роки тому +1

      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.

  • @MrMesuraj
    @MrMesuraj 2 роки тому

    Hello Team How I can use access token from login API to all APIs

  • @shobhitbahri7714
    @shobhitbahri7714 3 роки тому +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 роки тому +1

      How have you implemented this scenario?

  • @manikantar3913
    @manikantar3913 Місяць тому

    how to use variable in POST request?

  • @gujjerajesh2492
    @gujjerajesh2492 2 роки тому

    super madam

  • @gauravpanthare4789
    @gauravpanthare4789 Рік тому

    How to extract 1st id and 2nd id and save it in single veriable

  • @thedubaiworld413
    @thedubaiworld413 3 роки тому +2

    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 - ua-cam.com/video/kqufkDQJZDE/v-deo.html

  • @hemanthkalikoli6433
    @hemanthkalikoli6433 3 роки тому

    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  3 роки тому +1

      You're welcome, is the level of "id" changing too or the level is same (e.g. first level/second level)

    • @hemanthkalikoli6433
      @hemanthkalikoli6433 3 роки тому

      @@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

  • @SireeshaPapineni
    @SireeshaPapineni 6 місяців тому

    Hi....can u please upload jmeter part3 interview questions

  • @surajsurya1414
    @surajsurya1414 3 роки тому +1

    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  3 роки тому +1

      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

  • @sritamkumarrout4499
    @sritamkumarrout4499 2 дні тому

    Next questions are not added

  • @sameerpawar3909
    @sameerpawar3909 3 роки тому

    This video is full copy of Raghav Pal video

  • @harikavand
    @harikavand 3 роки тому

    Excellent tutorial.