JMeter Beginner Tutorial | How to Create and Run REST API | Get Post Put Delete

  Рет қаралды 65,183

Automation Step by Step

Automation Step by Step

Күн бұрын

Пікірлер
@lkkota41
@lkkota41 7 ай бұрын
Appreciate.. I was zero in Jmeter.. this video gave me enough confidence...thank you
@RaghavPal
@RaghavPal 7 ай бұрын
Glad I could help
@JozefKruzelak
@JozefKruzelak 3 жыл бұрын
You Raghav have a talent to explain things in such understandable way :-) I am greatful for these videos
@RaghavPal
@RaghavPal 3 жыл бұрын
Thanks a ton Jozef
@praveenkumarr4529
@praveenkumarr4529 3 жыл бұрын
@@RaghavPal Hi Raghav, thank you for the explanation of JMETER lecture series. I have a query in my mind that can we automate web application (not Performance testing) using JMETER tool. Could you please clarify it.thank you
@fredycastellanos450
@fredycastellanos450 6 ай бұрын
Estoy agradecido por la explicación, estaba bastante confundido, te felicito, haces un gran trabajo. puede ejecutar bien el ejercicio. saludos desde colombia
@RaghavPal
@RaghavPal 6 ай бұрын
Muy bienvenido
@thilagavathiaruchamy2564
@thilagavathiaruchamy2564 7 ай бұрын
Very good content for beginners
@RaghavPal
@RaghavPal 7 ай бұрын
Glad you liked it
@primesport3296
@primesport3296 4 жыл бұрын
Hello sir, Thanks a lots for all videos. I am beginner in Jmeter, please add videos - performance testing of Mobile App, API , Webservices. WISH YOU ALL THE BEST sir. !!!
@RaghavPal
@RaghavPal 4 жыл бұрын
Noted. You will find all here - automationstepbystep.com/
@derelictmanchester8745
@derelictmanchester8745 Жыл бұрын
Good instruction, thank you..👍👍
@RaghavPal
@RaghavPal Жыл бұрын
Most welcome
@IT_Enthusiastic
@IT_Enthusiastic 4 жыл бұрын
Hi Raghav sir...Please make available for public those remaining 3 video series in this playlist...Thank you so much for your efforts...
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Syed, they are in processing and will be published by next week
@vasukumar58
@vasukumar58 Ай бұрын
Hello , I have a requirement of post file upload request with access tokens. How to club the tokens (authentication) and then pass the body parameters (mandatory feilds) to upload the file
@RaghavPal
@RaghavPal Ай бұрын
Vasu Here’s how to handle file upload with an access token in JMeter: Add a Thread Group: Right-click your test plan, select Add > Thread (Users) > Thread Group Add an HTTP Header Manager: Right-click Thread Group, select Add > Config Element > HTTP Header Manager Add a header: Name: Authorization Value: Bearer Add an HTTP Request Sampler: Right-click Thread Group, select Add > Sampler > HTTP Request. Configure: Method: POST URL: Enter the endpoint URL. Body Data: Leave empty for now Enable File Upload: In the HTTP Request sampler, go to the Files Upload tab. Add your file: File Path: Full path to your file Parameter Name: The parameter expected by the API (e.g., file). Add Body Parameters: Switch to the Body Data tab in the same HTTP Request sampler. Add your mandatory fields in JSON format: { "key1": "value1", "key2": "value2" } Run and Verify: Add a listener (View Results Tree or View Results in Table) to monitor the response This configuration will upload the file and pass both the access token and mandatory parameters together -
@Shaa404
@Shaa404 6 ай бұрын
Hi Raghav, I need help please how can I send a GET request on Website, I tried using "Record Controller" but I see POST request , is there a video on how to search on website using a unique ID please send here, greatly appreciated and very thankful for your hard work on this JMeter training
@RaghavPal
@RaghavPal 6 ай бұрын
Shaan If while recording you are getting a post request, then that is how the website works for that particular action. But if you want to explicitly try a GET request, can check this: To send a GET request in JMeter, follow these steps: 1. Create a Test Plan: - Open JMeter and create a new Test Plan. - Add a Thread Group element to simulate users. Set the number of threads (users) and other properties. - Add an HTTP Request sampler inside the Thread Group. 2. Configure the HTTP Request: - Select the HTTP Request sampler. - In the Name field, enter a descriptive name (e.g., "Home Page"). - Set the Path field to the URL path you want to request (e.g., "/"). - Ensure the Method is set to GET. 3. Run the Test: - Save your Test Plan. - Run the test to send the GET request to the specified URL. Remember to adjust the URL and other parameters based on your specific use case. If you encounter any issues, check the request details and ensure you're not inadvertently following redirects or using incorrect settings --
@natrajanr3968
@natrajanr3968 4 жыл бұрын
Raghav Sir, I am new to Jmeter and your Jmeter beginners tutorial was very useful to me. Now i have one issue. Webservices are passed by QA team through SOAP UI, and they pass username , password using WS-Security configurations and PasswordType as Password text. 1. I tried passing this credential info using HTTP header manager as Authorization and value as Basic encoded value (encoded value is Username:Password), threw me "Security credentials are required" as response. 2. I tried passing this credential also through HTTP Authorization manager by providing Username, Password and Mechanism as "BASIC_DIGEST", even for that i got "Security credentials are required" as response. 3. Downloaded plugins manager for WS-Security for SOAP plugin and placed in lib/ext folder. But plugin did not get install because of client`s Internet policy. Need your help to resolve this issue
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Rithvik, did you try to record the APIs directly from SoapUI into JMeter using Proxy. I will create a video on this next week, Can check online too
@prathameshpawar6729
@prathameshpawar6729 2 жыл бұрын
Lovely explained
@RaghavPal
@RaghavPal 2 жыл бұрын
Thanks Prathamesh
@unlimited_automation
@unlimited_automation 2 жыл бұрын
Is this API testing or performance testing or both that is done in this video using jmeter?
@RaghavPal
@RaghavPal 2 жыл бұрын
Here, it is shown how we can add REST API in JMeter, after that we can do functional and performance testing both
@rajaniippili
@rajaniippili 2 жыл бұрын
Thank you for providing the video.. It was very helpful to me as I am beginner in Jmeter. could you please share the video of how to record in Jmeter
@RaghavPal
@RaghavPal 2 жыл бұрын
Sure Rajani, can check in the sections here - automationstepbystep.com/
@himanisaxena392
@himanisaxena392 Жыл бұрын
Hi Raghav, I have a POST request whose output is pre-signed url. I have to upload a zip file in the generated pre-signed url via PUT request. Could you please help in creating this scenario.
@RaghavPal
@RaghavPal Жыл бұрын
Hi Himani, Here's how you can create a JMeter test scenario to upload a zip file using a pre-signed URL generated by a previous POST request: Create a Thread Group and add a HTTP Request sampler to it for the POST request that generates the pre-signed URL. In the HTTP Request sampler, set the HTTP Method to POST and set the appropriate URL and request parameters. Add a Regular Expression Extractor post-processor to the HTTP Request sampler to extract the pre-signed URL from the response. Create another Thread Group and add a HTTP Request sampler to it for the PUT request to upload the zip file. In the HTTP Request sampler, set the HTTP Method to PUT and set the URL to the pre-signed URL extracted in step 3. Under the "Advanced" tab, set the "Send File With Request" option to the path of the zip file to be uploaded. Save the test plan and run the test This should simulate the scenario of generating a pre-signed URL using a POST request and then using the pre-signed URL to upload a zip file via a PUT request Note: Make sure to set appropriate values for headers and request parameters in both POST and PUT requests. Also, make sure to specify the correct path to the zip file in the PUT request
@Naveentejatekkem
@Naveentejatekkem 3 ай бұрын
how to pass path param here it's request param (query param ) is added in parameterization
@RaghavPal
@RaghavPal 3 ай бұрын
I will need to check.. pls give details.. or give timestamp from video
@rohitr4792
@rohitr4792 10 ай бұрын
Hi Raghav, Useful content, Simple, no-nonsense presentation. I am curious on how you use multiple Operating Systems in parallel. Do you use some Virtual OS software and if so which one?
@RaghavPal
@RaghavPal 10 ай бұрын
Glad it was helpful Rohit.. yes i use remote desktop
@Defabius0411
@Defabius0411 3 жыл бұрын
Hi Raghav I like your videos they are very usefull, i have a question how i can test an API wich receive an image captured by the cellphone. Thanxs a lot for your answer.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Fabiola, you can test file upload/ download, you can also check the image properties if you get in the response of api, for any kind of visual testing, it may not work and you will have to add other tools for that, If the image is rendered on some webpage then you can make use of tools like Applitools Galen etc Check this video - kzbin.info/www/bejne/f6XYpX6Ip9ZjgKs
@funnyworld-fw4774
@funnyworld-fw4774 Ай бұрын
I have tried it by following you , but it doesn't work properly, every time it returns a list of users instead of a single user.Does make any changes in RESTAPI site? Request and response data is also not present in the site.
@RaghavPal
@RaghavPal Ай бұрын
Looks like the server is not working for this demo site. Can try other demo apis httpbin.org/#/HTTP_Methods jsonplaceholder.typicode.com/
@vasanthkumarm1134
@vasanthkumarm1134 2 жыл бұрын
Hi, can you please let me know how to do it for a Rest API which requires Authorization, I'm able to generate the bearer token, how to pass this to API inorder to get the response body. If you have any video please share or else please explain!!!Thanks!
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Vasanth, Sure, I will add more examples, Can also see some online examples
@vivekramteke4670
@vivekramteke4670 4 жыл бұрын
Thanks raghav for the amazing tutorial. Could you please make more videos on API testing using Jmeter which will cover all API testing thing's.
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure Vivek, I will plan
@venkatttc66
@venkatttc66 3 жыл бұрын
Thnks ragav. I am very usefull your vedio.. Could you please explain octoperf tool
@RaghavPal
@RaghavPal 3 жыл бұрын
I will plan sessions on Octoperf
@shariefrana
@shariefrana 3 жыл бұрын
Raghav, Could you please demo on how to call stored procedure and pass input, output params with jdbc request, I tried googling over this and can't find any reasonable answer.
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Sharief, I will try to do a session
@avinashmohanty4606
@avinashmohanty4606 4 жыл бұрын
Can u plz tell me how to load client certificate in jmeter? Just like in postman where we can load the cert file,key file, pfx file and host in settings-certificates- add client certificate
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Avinash, can check this www.blazemeter.com/blog/how-set-your-jmeter-load-test-use-client-side-certificates/ stackoverflow.com/questions/47674315/jmeter-load-client-side-certificate
@hazimabdoh6303
@hazimabdoh6303 2 жыл бұрын
Hi Raghav sir...where can i check the username ''morpheus' is updated after doing put for it ? becuase i search for it in the getuserlist but i didint find it .thanks
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Hazim, this is a demo api, we do not have access to the backend server, in real world, you can check in your database
@hazimabdoh6303
@hazimabdoh6303 2 жыл бұрын
@@RaghavPal thanks for declaration.
@rangaswamy3839
@rangaswamy3839 2 жыл бұрын
Hi raghav this is ranga i know manual and automation testing but am learning post man from your videos is that knowledge enough ? Or else am i need to purchase your udemy course postman?
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Ranga, Its enough, just try few more examples on your own
@rangaswamy3839
@rangaswamy3839 2 жыл бұрын
@@RaghavPal thank you so much for your reply raghav. comming future i will learn j meter from your channel only.
@s1h2r345
@s1h2r345 2 жыл бұрын
Hi Raghav, Can you please share a video API will All types of Authentications (Basic, Bearer, Digest, OAuth)
@RaghavPal
@RaghavPal 2 жыл бұрын
I will plan Sudheer
@abhishekgowda8999
@abhishekgowda8999 Жыл бұрын
Sir for failure condition??
@RaghavPal
@RaghavPal Жыл бұрын
Hi Abhishek, pls send me more details and explanation on what exactly is the issue
@swapnachinuru914
@swapnachinuru914 3 жыл бұрын
Hi sir,In jmeter Body data is same as parameters for PUT API
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Swapna, if you are referring to query parameters, then No its different from body data
@hksingh3220
@hksingh3220 4 жыл бұрын
Can you please make the video on setUp and tear down thread group.?
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure I will, can also check JMeter tutorials here - automationstepbystep.com/
@techinhindi1619
@techinhindi1619 4 жыл бұрын
I try some api in jmeter but I didn't got a response code why please this point also
@RaghavPal
@RaghavPal 4 жыл бұрын
Sure, I will check, can you share the url
@amiraliansari9887
@amiraliansari9887 3 жыл бұрын
Hi Raghav, Thanks for the video. I have got one issue. I am using a Rest API and this uses a fixed bearer token(This means that the same bearer token can be used for more than one transaction). In Jmeter how and where can I set this bearer token so that it can be used again and again without changing it?
@RaghavPal
@RaghavPal 3 жыл бұрын
Hi Amir, this can help stackoverflow.com/questions/39557632/how-to-parameterize-bearer-token-authorization-in-jmeter
@SuperThepac
@SuperThepac 4 жыл бұрын
Is there any way to import swagger documentation into Jmeter
@RaghavPal
@RaghavPal 4 жыл бұрын
Not sure, will need to check online
@ragavendrad574
@ragavendrad574 3 жыл бұрын
What is loop count? In jmeter... What is need of it?
@RaghavPal
@RaghavPal 3 жыл бұрын
it means how many iterations do you want to run for the test
@ankitds1369
@ankitds1369 4 жыл бұрын
Raghav, Amazing work first of all, no one can make it any simpler then this. Question - My Objective is too- load data to a web page (lets say scheduling an appointment - page 1 - name, page 2 -address, page 3 - find available appointment, page 4 -payment, page 5- confirmation). Can this be achieved using JMeter
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Ankit, thanks for the message, Do you. mean that you want to create bulk data using JMeter, You can do that. I will suggest to also check if you have API's for this too, That will be more simpler and efficient approach
@krishnavdas6777
@krishnavdas6777 2 жыл бұрын
How to fill a form and do a submit using jmeter
@RaghavPal
@RaghavPal 2 жыл бұрын
this can help stackoverflow.com/questions/63885638/how-to-add-form-data-as-jmeter-body
@MayaSaqi
@MayaSaqi 4 ай бұрын
Hello Sir, I have tried everything but 'Same user on each iteration' is not understandable, Can you pls explain it what does this flag do, i have tried it using csv file, using clear cache etc
@RaghavPal
@RaghavPal 4 ай бұрын
Maya In JMeter, the option "Same user on each iteration" is a checkbox found in the Thread Group element. It controls how JMeter handles user sessions and cookies across iterations What it means: When this option is: Checked: JMeter will reuse the same user session and cookies for each iteration This means that the same user credentials, cookies, and session data will be used for each iteration of the test Unchecked: JMeter will create a new user session and cookies for each iteration This means that each iteration will start with a fresh user session, and any cookies or session data from previous iterations will be discarded Significance and use: Here are some scenarios where this option is significant: Login and authentication: If your application requires users to log in, and you want to test the login process, you should uncheck "Same user on each iteration" This will simulate a new user login for each iteration, allowing you to test the authentication process Session-based applications: If your application uses session-based authentication or stores user data in session cookies, you should check "Same user on each iteration". This will ensure that the same user session is reused across iterations, simulating a real-user experience Cookie-based applications: If your application uses cookies to store user preferences or data, you should check "Same user on each iteration". This will ensure that the same cookies are reused across iterations, simulating a real-user experience Performance testing: When performing performance testing, you may want to test the application's behavior under different user loads. In this case, unchecking "Same user on each iteration" can help simulate a larger user base, as each iteration will start with a fresh user session Functional testing: When performing functional testing, you may want to test specific user scenarios, such as login, logout, and session expiration. In this case, checking "Same user on each iteration" can help simulate a real-user experience, while unchecking it can help test specific scenarios -
@shaarviupasanadivineworship
@shaarviupasanadivineworship 4 жыл бұрын
How to use colorful text editor?
@RaghavPal
@RaghavPal 4 жыл бұрын
Hi Upasana, do you mean inside JMeter?
@shaarviupasanadivineworship
@shaarviupasanadivineworship 4 жыл бұрын
@@RaghavPal yes
@shaarviupasanadivineworship
@shaarviupasanadivineworship 4 жыл бұрын
🤓🤓 could you please let us know
@LuisEzequielDeLuca
@LuisEzequielDeLuca 3 жыл бұрын
Hello this is awesome, can you put a video for making calls to aws api gw using signature v4. Thanks
@RaghavPal
@RaghavPal 3 жыл бұрын
I will check and plan on this Luis
@orophilesandy7915
@orophilesandy7915 Жыл бұрын
This is Api automation in Jmeter na?
@RaghavPal
@RaghavPal Жыл бұрын
Yes
@benaf2778
@benaf2778 2 жыл бұрын
Hi, I did not understand what ist different between API Testing(web app) and Rest API Testing in JMeter. in another wort, i will Understand how can i make a REST API Testing exactly on JMeter. you Attach the Rest API in Video-Comment , but i did not find the explanation
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi, You can check the API Web services basics playlist here - automationstepbystep.com/
@bhamra123singh2
@bhamra123singh2 2 жыл бұрын
I feel one should teach only when he/she knows how to use and to show everyone the actual use case not just by saying but by practical too
@RaghavPal
@RaghavPal 2 жыл бұрын
will take this feedback
@vivekshah3458
@vivekshah3458 2 жыл бұрын
Hi Ragav, How we can increase the HPS(Hit Per Seconds) in JMeter? I am doing load testing through JMeter but HPS is little bit low so could you please share the tips if you have. Thanks Vivek
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi Vivek, this you can configure in the Thread Group, check this - stackoverflow.com/questions/5018846/testing-with-jmeter-how-to-run-n-requests-per-second
@bhamra123singh2
@bhamra123singh2 2 жыл бұрын
Have seen more than 50 videos including urs too everyone has the same dialogue that we can use Authorization config but here it's demo so we don't require to use it...no one dares to show how to use config elements all are just showing a simple demo which one can learn by reading manual by jmeter just sucked up
@RaghavPal
@RaghavPal 2 жыл бұрын
Hi, will check on this
JMeter Beginner Tutorial | How to create SOAP API Request
17:58
Automation Step by Step
Рет қаралды 36 М.
Sampler Http Request (GET/POST/PUT/DELETE) in JMeter - Part -6
26:34
Naveen AutomationLabs
Рет қаралды 75 М.
Почему Катар богатый? #shorts
0:45
Послезавтра
Рет қаралды 2 МЛН
OCCUPIED #shortssprintbrasil
0:37
Natan por Aí
Рет қаралды 131 МЛН
JMeter Beginner Tutorial 11 - Testing Web Services API
20:33
Automation Step by Step
Рет қаралды 237 М.
JMeter Complete Step by Step from scratch | 2024
2:16:42
Automation Step by Step
Рет қаралды 11 М.
API Automation with Python Requests Module || GET | POST | PUT | DELETE
41:11
Naveen AutomationLabs
Рет қаралды 39 М.
JMeter tutorial 14 - How to test SOAP/REST APIs in JMeter
16:02
Quality Assurance Lab
Рет қаралды 32 М.
Learn Postman for API Testing (Step-by-Step Tutorial)
1:35:56
Automation Step by Step
Рет қаралды 30 М.
How To Write First JMeter Script For Load Testing With Example
20:45
Postman Tutorial #7 - HTTP Methods GET and POST in Postman
13:18
Software Testing Mentor
Рет қаралды 54 М.