JMeter Beginner Tutorial 11 - Testing Web Services API

preview_player
Показать описание
An Update: JMeter ver 3.2 onwards - SOAP/XML-RPC Request has been removed as part of Bug 60727. Use HTTP Request element as a replacement.

API = Application Programming Interface
example-
Restaurant - table — WAITER — kitchen

WebServices - client — API — server

REST | SOAP

How to test REST API
————————————
Step 1: Add HTTP Request Sampler
OR
Add SOAP/XML-RPC Request Sampler

Step 2: Add REST API details

/data/2.5/weather/
q=NewDelhi
appid=5ad76b332e2fa27ea9859353e5fdd69d

Step 3 : Run and Validate

How to test SOAP API
————————————

Step 1 : Add SOAP/XML-RPC Request Sampler

Step 2 : Add details of the Soap API Request

Step 3 : Run and Validate

________ ONLINE COURSES TO LEARN ________

------------ UI TESTING ------------

------------ API TESTING ------------

------------ MOBILE TESTING ------------

------------ CI | CD | DEVOPS ------------

------------ VERSION CONTROL SYSTEM ------------

------------ PERFORMANCE TESTING ------------

------------ PROGRAMMING ------------

------------ IDE ------------

------------ MAVEN ------------

------------ OTHERS ------------

Keep Learning,
Raghav

----------- Connect with Raghav ------------

You can support my mission for education by sharing this knowledge and helping as many people as you can.
Рекомендации по теме
Комментарии
Автор

An Update:
JMeter ver 3.2 onwards - SOAP/XML-RPC Request has been removed as part of Bug 60727. Use HTTP Request element as a replacement. See Building a WebService Test Plan

RaghavPal
Автор

Thanks Raghav, You are an awesome guy.. Really learnt a lot from your tutorials.

vishal.choudhury
Автор

Hi Raghav - Thanks for the video series. Please upload one video for a real-time project of performance testing using jMeter

dipukakati
Автор

Hello Raghav,
Thanks a lot, for your very nice videos.
I have a question, I am using JMeter 3.3 and I don't see any SOAP Sampler
I have also download Custom SOAP Sampler but I don't see any Field SOAP Action in it and I can not send SOAP Request.
is there any separate sampler for SOAP in 3.3 to use? if yes where do i get it?

(I get the follwoing Error:
at
at message)
at
at type, HttpContext context, HttpRequest request, HttpResponse response, Boolean&

akado
Автор

Very Useful Videos Raghav. Thank You So Much for sharing :)

harshadadave
Автор

Superb tutorial for beginners. Great Job!

amitlodhi
Автор

hi Raghav.. good to know that you are online and responded to my comments..I am basically into mobile app and electronic devices testing...can you suggest or give me some tutorials on automating mobile apps ( both iOS & android).also if you know any tool that can help me test electronic hardware ....thnx in advance

reddevilmelbourne
Автор

Supr explanation Raghav, Please can you tell how to authenticate and handle Token also.

mellamputisriramchowdary
Автор

could you pls expln wat are jmeter elements needed based on NFRS requrement and some scenarios based case study test execution and also some case studys regarding bottlenec analysis and resolve will be helpful and your tutorials because it's free with great content. Thanks, Raghav

phpganesh
Автор

These lections are good, thanks a lot..but one thing which is the most noticeable is сhomping. It distracts and makes listeners nervous.

катякот-жж
Автор

Sir one more query - i am not able to see "HTTP Header manager" in my (j meter 5.3)

as per below instructions

Next, select "HTTP Header Manager" and update ("SOAPAction" header to match your webservice) this also

amitsharma
Автор

Great tutural Raghav. How do test a get request. Where you get the information and you want to extract an authorization key from the request and insert it into another request every time you run the test?

chrisforonda
Автор

Hi Raghav,
I am learning from this series of Jeter and i have installed Jeter 4.0, and there is no way to add sampler: Soap/XML-RPC Request. So, please let me know how to add and send soap request while using SOAP API using http request.
Thanks in advance. 🙂

arundevsingh
Автор

Hi Raghav, I find your tutorials extremely useful. Can you please let me know when does an error message like this - "Non HTTP response code: Java.net.SocketException" appear? What does it mean?
Also, suppose I am testing an application for 400 users. So how to understand what is the maximum load that the application can go under? I mean what is the error message that would be received for threshold load exceeded? Thanks a lot in advance.

titirghosh
Автор

Hi Raghav, I'm using JMeter 3.3, but I'm not able to find "SOAP/XML - RPC Request" in my Sampler

vismikgeorge
Автор

Hi Raghav
I am trying to prepare the dynamic login script using REST api but facing issues for the same.
What i have done so far
1. Prepare the Static Script first, it became successfull for 1 user.
Now i am trying to do it for multiple users, so i made a csv containing few users and pass the variable as ${username} and ${pword} in place of static values in XML code..and when i run my script, getting 400 Bad request error.
Please let me know what i am missing in my script?
Awaiting for your positive response
Thanks,

nitinfudani
Автор

I'm using jmeter for api testing and whenever I hit on my api in the testplan, jmeter gets stuck and opens the api after 10-15seconds, same happens when I hit on sample result of the api in view result tree. I've Uninstalled and reinstalled jmeter and jdk but still my jmeter shows the same issue. Using jmeter 5.6.2 and jdk 21. Pls help me with the issue

balaradhsrihari
Автор

Hello Raghav, I want to test web services with Auth 2.0 authentication, can you let us know how we can do it?

Travelet
Автор

Hi Raghav,

Thanks for the helpful video.

Quick question: The SOAP example you provided in the video has shown that it cannot handle 10 concurrent threads and you briefly mentioned what were the next steps you would take to solve the issue. You also mentioned that you have went over this in your previous sessions but I don't remember seeing/hearing them.

Could you please list or link the video that contains next steps on how to find the root cause and troubleshoot the problem?

Thank you!

BobbyMcShibby
Автор

SOAP XML RPC Request sampler is no more available in Jmeter ? From where can i get free sopa API?

achinkumarror