JMeter Beginner Tutorials | Tips n Tricks 5  How to use JSON Extractor

JMeter Beginner Tutorials | Tips n Tricks 5 How to use JSON Extractor

Automation Step by Step

6 лет назад

46,332 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@vivekhegde9928
@vivekhegde9928 - 23.06.2023 13:48

Hi Raghav, can you please make a video of how to use JSON extractor for combination of POST and PUT API requests having body parameter?
It will be very helpful

Ответить
@dimpledave882
@dimpledave882 - 18.10.2022 07:26

Hi Raghav,
Thanks for this tutorial video. I have learned so quickly and easily.

Ответить
@lakshmiprasanna1484
@lakshmiprasanna1484 - 08.09.2022 14:29

Hi Raghav, thanks for your wonderful sessions.
Could you give suggestion to implement the following step.

I need to pass the json extractor value to the POST request body. Which syntax I should use here?

Ответить
@danishahmed9677
@danishahmed9677 - 11.08.2022 11:40

Hey Naveen,
Can u please upload a video fo passwordless login load testing.

Ответить
@preetibhondave678
@preetibhondave678 - 01.07.2022 12:20

What should do if we want to pass multiple id's from previous response to further request URL which changes dynamically

Ответить
@honeythakur1526
@honeythakur1526 - 17.01.2022 10:07

Hello Sir,
Could you please let me know how to extract the sid value from below mention json as $.sid expression is not working here as zero is appeared at start of the json response.

0{"sid":"gR9Noj6V939hTbpXAARp","upgrades":["websocket"],"pingTimeout":20000,"pingInterval":25000}

Ответить
@sriramj3721
@sriramj3721 - 18.10.2021 12:30

Very nice explanation, Thanks Bro

Ответить
@vibitest9153
@vibitest9153 - 03.09.2021 11:42

Thank you so much for this video :)

Ответить
@SandyShiralkar
@SandyShiralkar - 16.08.2021 18:13

I have Jmeter tests where I use Bearer token, these tokens expire after some time, so when i try to run a longevity test, the test fails after the tokens expire, how do i regenerate the token just about the expiration time so that the tests do not fail.

Ответить
@phild2313
@phild2313 - 16.04.2021 00:34

This guy deserves an Oscar for keeping learn time low and knowledge base high! Please vote!

Ответить
@anitapatel6021
@anitapatel6021 - 25.03.2021 19:37

Hi Ragav, do you have any video on JDBC post Processor. I have number of returned row in response from JDBC request. I want to store that value in different variable and use letter on like you are showing here using Jason extractor. Thank you.

Ответить
@anitapatel6021
@anitapatel6021 - 25.03.2021 19:33

Great Video.

Ответить
@sangam912
@sangam912 - 25.03.2021 19:05

Hi Raghav, I have Extracted the Auth Token using Json Extractor into a variable, and I want to use that particular variable into my each API (around 40 APIs)Headers of my test plan. Is there any way to use that Variable one time and my Auth token will work for all the APIs?
Thanks in Advance

Ответить
@alexisnarvaez1658
@alexisnarvaez1658 - 02.03.2021 22:44

Dude you're a beast, I can't say more...

Ответить
@deepakparamesh8487
@deepakparamesh8487 - 07.01.2021 16:28

This is outstanding!! I am working on designing a Performance Test framework for my Applications APIs. I am done with creating my production ready design within 10 days.... All because of you. I did not refer any other sites or videos.... Your explanation is so simple and powerful... Kudos to you... Thank you Brother..
If my manager appreciates on looking at design... the tribute will go to you.. :-)

Ответить
@shaikhnoor9033
@shaikhnoor9033 - 05.11.2020 16:03

Hi Raghav, I am trying to test a OAuth authentication login for a Web App, i can generated the access token, but somehow still getting 400 bad request. even tried to use JSON Extractor to get the token and use in other requests. Can you Advise.

Ответить
@agniparajuli
@agniparajuli - 31.10.2020 18:50

Hello Pal
I want to enabled my recording generated with Line number, How can I do it, can you please return with answer

Ответить
@rahulkumar-kh6zk
@rahulkumar-kh6zk - 07.10.2020 09:38

well explain sir i like your turtorials

Ответить
@EngineerWithAWhisk
@EngineerWithAWhisk - 06.09.2020 22:17

Hi Raghav! Thanks for the tutorials.
Also could you please help in how to state a condition while using extractors.

for eg:
lets say there is a json response which contains an attribute "price" and I want to extract it only when the price is greater that 5.

Ответить
@camilohenaobravo1766
@camilohenaobravo1766 - 20.08.2020 23:22

Eres el mejor you are the best !!!! Greetings from Colombia

Ответить
@jaspreetdhawan8171
@jaspreetdhawan8171 - 17.04.2020 14:45

Hi Raghav,
Could you please elaborate why we have to give default value for json extractor when you have used more than one variable and json path expression?

Ответить
@shilpaagrawal155
@shilpaagrawal155 - 13.03.2020 14:56

what if I want to use the value extracted from a request of thread-group 1 and I want to use that value in thread-group 2

Ответить
@pramodpammi8715
@pramodpammi8715 - 02.01.2020 09:38

Hi Raghav, thanks for your tutorials. It's been most useful. One small suggetion is that please increase the audio/sound for your tutorials. It is very low and even with 100% volume in the computer it is very low. Tried with different systems and different headsets but its the same. Please look into this.... Regards :-)

Ответить
@mellamputisriramchowdary3628
@mellamputisriramchowdary3628 - 30.11.2019 14:53

Hi Raghav, IS it possible to read Json file as API request in Jmeter

Ответить
@dhanasekars6275
@dhanasekars6275 - 18.11.2019 17:37

Hi Raghav
Is it possible to use conditional json extraction like when id=4 what is the first name of user in jmeter 5.1.

Ответить
@1011sanket
@1011sanket - 12.11.2019 21:08

But how can we add the assertion to verify if we have got correct results of JSON, please guide.

Ответить
@saurabhsrivastav902
@saurabhsrivastav902 - 08.11.2019 08:05

Hi Raghav, I need to pass the variable from the json extractor of the 1 request into the body of the 2nd request. (instead in the URL) . Tried the syntax from the video but it didnt work if I use the extracted variable in the request body of the 2nd request. Please let me know, how we can achieve it?

Ответить
@MrSirling
@MrSirling - 23.09.2019 18:07

Thanks Ragnav, great tutorials!
I have a question about JSON extraction. What if i need to cycle though values in ${USER1} like ${USER1_1}, ${USER1_2}, etc?
I have multiple images, which are to be loaded, if response is not empty, so i call If statement, then extract url of images using JSON Extractor,
but after i dont know how to cycle request using those images url's. Maybe you have some advise?

Ответить
@namratapalekar8113
@namratapalekar8113 - 16.09.2019 11:56

Thankyou Raghav, very useful.

Ответить
@jagatabi
@jagatabi - 06.09.2019 14:21

Hi Raghav , need a help. Below is my json

{"numFound":1,"docs":[{"Id":"547259","count":1514380,"price":0.0}]}

in Json Path extractor ,while trying JSON Path expressions , its allowing only one value if I try more than One like
$..count; $..Id - not working
Names of created variables - count; Id

Ответить
@jagritijain2527
@jagritijain2527 - 05.09.2019 05:22

Thanks Raghav

Ответить
@nazneenm4998
@nazneenm4998 - 30.08.2019 12:55

Hi Raghav! I am doing jmeter using api, I am passing huge data through csv file and running my scripts. My scripts run for nearly 3 to 5 hrs. I have some failures where i can verify from tree, assertions, and from failure csv data file reports.....but for failed reports I have to manually verify in postman and check the cause of failure , and for that i need to pass (POST-Request Body) manually. I cannot do it for multiple data's, so I want to extract whole Request Body from jmeter and display in my html report and then when ever i want i can analyse failure request and hit in postman directly. How do I extract Request Body?

Ответить
@nazneenm4998
@nazneenm4998 - 01.08.2019 11:35

Hi! I have csv data file with multiple data say 50 or 100....now how do i do json extractor by making use of csv data and then extract data and display in HTML reports.....Plz help me to sort out this issue.

Ответить
@joshideepa2386
@joshideepa2386 - 26.07.2019 08:54

it was helpful!

Ответить
@thefourwheels155
@thefourwheels155 - 12.06.2019 09:02

how can we use json extractor to Extracting data from json response and chaining requests in jmeter

Ответить
@lamdiep6013
@lamdiep6013 - 30.05.2019 04:44

Thank you!

Ответить
@vishalrraymal9582
@vishalrraymal9582 - 12.05.2019 11:47

Raghav this is very helpful

Ответить
@SameeraSenarathna
@SameeraSenarathna - 20.04.2019 05:43

Very useful. Thank you

Ответить
@sarangmech
@sarangmech - 05.04.2019 12:55

Hi Raghav, Can I use Json extractor to extract all values of Json response into a csv file into different rows and columns? Do you have any video on this?

Ответить
@herdyboygmail
@herdyboygmail - 25.03.2019 13:00

hi I met a problem
Jmeter provide md5 Function ,My parameter contains "," Bug JMETER can't handle "," ?
one example
jmeter > "${ __MD5($dsfsdfsd,rrrrrr)}"= X
other md5 web > "${ __MD5($dsfsdfsd,rrrrrr)}"= y
But take it off " , " they can get the same value

Ответить
@sayalimohadikar6685
@sayalimohadikar6685 - 14.03.2019 22:04

is there a way to read external Json file and use the values in it ?

Ответить