JMeter tutorial 14 - How to test SOAP/REST APIs in JMeter
Vložit
- čas přidán 22. 08. 2024
- This is the fourteenth video of JMeter Tutorial series which covers how to test SOAP/REST APIs in JMeter
Learning:
API - Application Programming Interface
John ----------- phone(API)------------------- Nick
Some rules to use phone:
It should be turned on
There should be network/balance/data etc
API - used for communication between two software with some rule/protocol/codes
Webservices: type of API
Types of wbservices
•SOAP
www.dneonline.c...
•Restful webservices(REST)
reqres.in/api/...
Server: reqres.in
Path: /api/users
page=2
Types of Methods:
Get: retrieve data from server
Post : to create new data to server
Put : update data in server
Delete: to delete data from the server
==================================================================
Automation Anywhere Tutorial Playlist:
• Automation Anywhere A1...
Subscribe for more tutorials - / @qualityassurancelab7764
Hi, Thank You! The tutorial is very useful for me, even helped me to solve my professional task today.
Thanks for your time to provide feedback, glad to know that video is helpful for you!
Explanation is good ..better to change colour seeting in jmeter so We can see clarity
excellent explanation.need more videos api performance
Hello your videos on jmeter are very helpful for us Thank you so much
Great explanation
This tutorial was very good. Keep going 👍🏼 . Liked and subscribed.
Thanks and keep learning!
Hi, thank you very much for your input, it was a great help! Take my like.
You are welcome, keep learning!
Thank you ,helped me configuring soap request . I was missing the HTTP Header Manager part;
Your videos very helpfull please do more videos
Very useful vedio thank u
Excelent explication, thanks a lot nice miss :)
Thanks for the video. Question though. When you do this test, are you testing the web service or the server, or both?
Hi, you are welcome and thanks for watching my video.
This test can be considered to test both Web Service and the server. As JMeter can also be used for functional testing, so Web Service testing covers the functional testing of web service. And, testing the server deals to load test the server where web services are hosted.
How to see the response it has taken to process the request, consider if there is more than 700 items, what is the ideal time it should take to process the request
During the time of development and debug , you can get the response time by adding listener -> Aggregate Report - czcams.com/video/NCBPpKcLhiA/video.html
When the development is complete and to get the response time during the final execution, run below command in command prompt which will run JMeter test in non GUI mode and will give tou test log file:
Command : jmeter -n -t [test JMX file] -l [test log file]
where:
-n : By this, JMeter identifies to run the test in non-gui mode
-t : Name of JMX file that contains Test script
-l : Name of JTL/CSV file where you want to capture the results
Reference - czcams.com/video/7ZhL8nZEw2c/video.html
The ideal time to process a request varies from application to application and depends upon the requirement of the application. Generally good server time is considered between 200 ms to 1 sec.
Hope this helps, please let me know for further questions!
Can you explain how to create pack of web service load testing and what type of reports we can prepare using JMeter for Web Services Testing to submit to the client
The web services which you wish to group together, add them inside one Thread Group. Accordingly create multiple thread groups, if required. HTML Dashboard Report works for web services as well. You can generate HTML reports from here - czcams.com/video/L7Ou6ju6x9c/video.html
Need to register 100 users first using a given API and then login with those users using another login API.How to do that.
Thank you so much for such nice video...can you help with one touble which I am facing..I am getting 401 unathorised error while testing apis, how to deal with this. Thankyou in advance.
What is the difference between Soup & Restful?. You said that performance right?, Where did we check performance of APIs
Thanks a lot for this video. I have a issue here.. For a webservice the server response code: 500, I have added a "Response Assertion" with "Pattern to Test" as 500. So when i execute the test my execution fails. I think it should pass??
HTTP Responses with statuses in the 4xx and 5xx ranges are normally regarded as unsuccessful. The "Ignore status" checkbox under Response Assertion -> Field to Test can be used to set the status successful before performing further checks.
The overall success of the sample is determined by combining the result of the assertion with the existing Response status.
Can you please make video on TCP protocol services this one is missing
Thank You, You were very detailed and you think how a novice needs information which is very appreciative. I spent almost a couple of days to search for a SOAP sampler and you told that it has been deprecated. Thank God I watched your video.
I have a SOAP service which I am trying to configure, but I am getting an error now as " Security token failed to validate". Please note, I can execute the same request in SOAP UI successfully. I am appending the security in the SOAP Header security portion by copying what was produced by SOAP UI log.
Would you be able to help me?
Much Regards. Nice videos but, you want to please change the UI from black to Metal.
Thanks Mohamed, I will do so now onward.
Hello, How to use UI protocol for JMETER script recording? Regards
Hi @@mohamedsannoh9427 , to record jmeter test script please refer - czcams.com/video/iDdYKkn4VWM/video.html
Please let me know for any further query.
Take another rest API video and in that use all parameters like header, token then we understand well
hi, i am able to call the Soap request in Soap UI only if i include the wsdl in the project. So how can I add a wsdl in jmeter.
Could you please make a new video complete end to end project on soap and rest apis
Hi Thank you, how to parameterization SOAP using Jmeter
Lets say you want to parameterize the Integer Value in the SOAP body as shown in the video. Follow the below steps:
Step1 : Make the Integer value a Variable in the SOAP body - say ${intVal}
Step 2: Create a CSV file providing the values of the Variable intVal
Step 3: In the request, Add Config Element -> CSV Data Set Config and provide the details eg:
Filename: Path of created CSV file, Variable name - intVal
For more details on parameterization, please refer - czcams.com/video/mrmnos1eMKk/video.html
How to run the performance test on API to find the bottlenecks, could you please tell me ma'am?
Hi,
Can you kindly tell how can we convert a functional Jmeter script into Load Test script.
I am getting Internal server error- 500 in soap request. please tell me why?
Hi, thank you for the video. In your example, the header would be use for both REST and SOAP request (even though the REST request does not require it)?
Hi, Thanks for pointing that out.
For adding HTTP Header Manager specific to a request - right click on the request -> Add -> Config Element ->HTTP Header Manager .
Since I have added HTTP Header Manager under Test Plan, so, it would be used for both SOAP rand REST request (and it is not required for REST request)
How use token in jmeter
how to upload file in soapui call?
Is it possible to get the Report only for API Testing in Jmeter?
I'm not asking about load testing report
Can you provide the word document you wrote notes on.
Please consider joining membership for all docs/Notes - czcams.com/channels/Ffrg66wWswpMB4vOcQPMqA.htmljoin
and, send me email at labqualityassurance@gmail.com
Can we use get method for soap
It is theoretically possible to use Get method for SOAP because POST and GET are methods of HTTP transport protocol and SOAP can be used over HTTP.
But, GET includes the request in the query string. SOAP requests (XML messages) are usually too complex and verbose to be included in the query string, so almost every implementation supports only POST.
Plz explain auth 1.0
Auth 2.0
How to parameterize value inside soap body using jmeter
Lets say you want to parameterize the Integer Value in the SOAP body as shown in the video. Follow the below steps:
Step1 : Make the Integer value a Variable in the SOAP body - say ${intVal}
Step 2: Create a CSV file providing the values of the Variable intVal
Step 3: In the request, Add Config Element -> CSV Data Set Config and provide the details eg:
Filename: Path of created CSV file, Variable name - intVal
For more details on parameterization, please refer - czcams.com/video/mrmnos1eMKk/video.html