JMeter Beginner Tutorial 11 - Testing Web Services API
Вставка
- Опубліковано 15 жов 2024
- 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.
Watch - Please Watch - • JMeter API Testing
See Building a WebService Test Plan jmeter.apache.o...
API = Application Programming Interface
example-
Restaurant - table - WAITER - kitchen
real world example - makemytrip.com
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
(openweathermap....)
api.openweathermap.org/data/2.5/forecast/city?id=524901&APPID=1111111111
api.openweather...
api.openweathermap.org
/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
(www.webservicex...)
Step 3 : Run and Validate
JMeter Beginner Playlist : bit.ly/2Q0AJG3
JMeter Intermediate Playlist : bit.ly/2M6AiIS
JMeter Advanced Playlist: bit.ly/38T8KR5
Free Courses - automationstep...
_______ ONLINE COURSES TO LEARN _______
FREE Courses - automationstep...
Udemy Discounts - automationstep...
GitHub - github.com/Rag...
Udemy - www.udemy.com/...
Training schedule - automationstep...
----------- UI TESTING -----------
Selenium Beginners - bit.ly/2MGRS8K
Selenium Java Framework from Scratch - bit.ly/2N9xvR6
Selenium Python - bit.ly/2oyMp5x
Selenium Tips - bit.ly/2owxc50
Selenium Builder - bit.ly/2MKNtlq
Katalon Studio - bit.ly/2wARFdi
Robot Framework with RIDE- bit.ly/2Px6Ue9
Robot Framework with Eclipse - bit.ly/2N8DZxb
Protractor - bit.ly/2KtqVkU
TestProject - bit.ly/2DRNJYE
----------- API TESTING -----------
Web Services (API) - bit.ly/2MGafL7
SoapUI - bit.ly/2MGahmd
Postman - bit.ly/2wz8LrW
General - bit.ly/2PYdwmV
Katalon Studio API Testing - bit.ly/2BwuCTN
----------- MOBILE TESTING -----------
Appium - bit.ly/2ZHFSGX
Mobile Playlist - bit.ly/2PxpeUv
----------- CI | CD | DEVOPS -----------
Jenkins Beginner - bit.ly/2MIn8EC
Jenkins Tips & Trick - bit.ly/2LRt6xC
Docker - bit.ly/2MInnzx
Kubernetes - bit.ly/2MJIlMK
----------- VERSION CONTROL SYSTEM -----------
Git & GitHub - bit.ly/2Q1pagY
GitLab - bit.ly/2kQPGyQ
----------- PERFORMANCE TESTING -----------
JMeter Tips & Tricks - bit.ly/2NOfWD2
Performance Testing - bit.ly/2wEXbLS
----------- PROGRAMMING -----------
Java Beginners - bit.ly/2PVUcXs
Java Tips & Tricks - bit.ly/2CdcDnJ
GROOVY - bit.ly/2FvWV5C
JAVASCRIPT - bit.ly/2KJDZ8o
PYTHON - bit.ly/2Z4iRye
----------- IDE -----------
Visual Studio Code - bit.ly/2V15yvt
----------- MAVEN -----------
Maven - bit.ly/2NJdDRS
----------- OTHERS -----------
Redis- bit.ly/2N9jyCG
Misc - bit.ly/2Q2q5xQ
Tools & Tips - bit.ly/2oBfwoR
QnA Friday- bit.ly/2NgwGpw
Sunday Special - bit.ly/2wB23BO
Ask Raghav - bit.ly/2CoJGWf
Interviews - bit.ly/2NIPPxk
All Playlists - bit.ly/2LSiezA
Keep Learning,
Raghav
---------- Connect with Raghav -----------
Website - automationstep...
LifeCharger -
Udemy Courses - www.udemy.com/...
Facebook - / automationstepbystep
Twitter - / automationsbs
UA-cam - / automationstepbystep
Call for training at your location - raghav.qna@gmail.com
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
jmeter.apache.org/usermanual/build-ws-test-plan.html
with HTTP Request element - can we test SOAP API as well ?
Hi Raghav - Thank you so much for your tutorial regarding this topic. Could you please provide more info regarding importing client certificate for SOAP
Hi sir IAM able to get the result by using normal http request. But I gave parameters like q and app I'd and got the result. So what is the need of using soap rpc request in specific? IAM so thankful to ur tutorials
Hi Raghav, this one was very informative. I didn't know how to load test the API. I have a question, how do we load test an API where we must first login as an Admin user to get the same results you showed us here. I test APIs after logging into a Login api as an Admin. And the bearer access token is only valid for 120 seconds. Lemme know if you could help.
@@ZafarDidit yes
You are an awesome teacher. The way you are teaching is simplified and understandable. I am learning new things in Performance Testing and always preferred your tutorials because it's free with great content. Thanks, Raghav
You're very welcome Samir. Humbled
It's a nice video. Hope it will help me in future. I am a technical analyst at CG and I am currently on bench. I once heard about this JMeater and so I thought I should watch some video and your video come as first search results. Please discuss the scope of it too. Thank you
Sure, Love, Can check this ua-cam.com/video/f3K9gWKpY2c/v-deo.html
Hello Raghav, You are just doing awesome Job! Your way of explaining things make more easy to understand the concepts..please keep doing. Thanks
Thanks for your message, will continue this.
Raghav truly grateful to you for sharing your knowledge with so much clarity.Cheers
I am glad Aisshvarya, that it helped. Keep learning.
Hi Raghav,
You are doing an Awesome job. Your Explanation in Tutorial Very Clear. Keep up the Good Job.
I am glad it was helpful. Keep Learning.
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
Akhil, i will be making sessions on mobile testing both iOS and android, but not much info on electronic hardware
Hi Raghav, You have explained REST API so clearly. Amazing job !! Thanks alot...
Most welcome Sabita
Raghav, you have done a fab job explaining JMeter. Cannot thank you enough!
Sachine, I,m glad it helped
Thanks raghav, for giving your time towards exploring the knowledge.
Have you done any videos for load testing of a flow using API's like for login, perform some task like book a ticket, logout..... Etc
Hi Vinod, I have taken some basic examples, You can find several playlists on JMeter here - automationstepbystep.com/
Supr explanation Raghav, Please can you tell how to authenticate and handle Token also.
Hi Mellamputi, f you want to pass the authorization token as a header you just need to add a HTTP Header Manager config element in the HTTP Request Sampler. You can then pass the Authorization token value in the same manner.
This should help you
www.redline13.com/blog/2018/05/test-rest-apis-authentication-using-jmeter/
octoperf.com/blog/2018/04/23/jmeter-rest-api-testing/
Let me know if you were able to do it
Hai Raghav,
Great info,In samplers Rpc request working directly is that mandatory to use http request as well
Hi, yes you can use it, but it is not present in latest versions.
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
Hi Ganesh, I will plan on this
great reply thancQ
Hi Raghav, Thanks for the wonderful tutorials on jmeter. i have been following all your tutorials. Request you to please have a series of tutorials on REST API.
Many Thanks
Glad to know this Vikas, You can see tutorials on SOAPUI and POSTMAN, will add new sessions soon.
ua-cam.com/play/PLhW3qG5bs-L-oT0GenwPLcJAPD_SiFK3C.html
ua-cam.com/play/PLhW3qG5bs-L-Bt9T_bnyflQ0Te4VgFhKF.html
Automation Step by Step - Raghav Pal Thanks Raghav
Hi Raghav - Thanks for the video series. Please upload one video for a real-time project of performance testing using jMeter
hi Dipu, although i have tried to cover most of the concept that will be useful in any real time projects, will try to create more sessions with practical implementations.
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?
Thanks for liking. You can use regular expression to extract values and provide to subsequent request.
Watch this - ua-cam.com/video/7-NcyZuUQnw/v-deo.html
Hi Raghav, i could not find the sampler 'SOAP/XML-RCP request' in 4.0 version, it is throwing 'this test element is obsolete' message when i reuse my old jmx file. How do we test this now in 4.0 version?
Hi Ramjee, 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
jmeter.apache.org/usermanual/build-ws-test-plan.html
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
You will find under Config elements www.blazemeter.com/blog/using-jmeters-http-header-manager/
Hi Raghav, I'm using JMeter 3.3, but I'm not able to find "SOAP/XML - RPC Request" in my Sampler
Hi Vismi
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi, I have viewed all the videos in the playlist. All these are really helpful. Thanks for sharing knowledge. 1 help I need from you. Please let me know how much Java I should learn and what topics in java I should learn to write proper beanshell script for complex scenarios.
Hi Prachi, You can start with basics, and understand OOP concepts, After this I will say that you can learn and work as per the topic or script you need to write. Can check Java tutorials here - automationstepbystep.com/
Hello Raghav! I found your tutorials very easy to understand however, I am having problem with testing webservice SOAP because SOAP sampler was removed in JMeter ver 3.2 can you share how to test webservice using the latest version of JMeter. Thank you
Yes, . 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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi Raghav,
Need help regarding Tutorial 9, in jmeter 3.2 SOAP is not in sampler and jmeter 3.0 is removed by apache from its website what to do?
Hi, i have added this info in the description of the video
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Very Well explained Raghav pal. I just started working on API performance testing. Can i reach out to you for any questions ? thanks!
Great to know this. Yes you can put your questions, messages in the comment section of the relevant video.
Hi Raghav, need a query , L&P testing we are using JMeter ...scenario is : API Testing 1st API request to java application that response 401 handle by java code and return to another java method with adding some parameter value to handle this response and finally we got the 200 response. please guide me how to handle this scenario via JMeter script.
Hi Kannan, replied you on mail, you can use a java code inside JMeter to run any java app
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. 🙂
Hi Arun
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi Raghav, I have a scenario like need to add Parameter and Body in the HTTP request. While accessing ,able to use only one as input. Could you please let me know how to give input values for both. Thanks!
Hi Koushik, We now use HTML Sampler for API requests, There is option to provide parameters. I will try to create a session on this
Hi Raghav, My soap webservies have many methods. I need to test performance of each method. So what is the way to call methods in the api. I am using HTTP request sampler in Jmeter 3.3. Where shall I specify method in the Request.For example getItemList is one of the method and wsdl is ItemAPI.wsdl
Hi, in your case you will have to create multiple samplers per api request (method)
Excellent explanation of APIs. I'll be using the waiter analogy in future!
thanks for watching Ian
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:
soap:ClientSystem.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: .
at System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
at System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMessage message)
at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type type, HttpContext context, HttpRequest request, HttpResponse response, Boolean& abortProcessing)
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
jmeter.apache.org/usermanual/build-ws-test-plan.html
Thanks, Raghav for Info.
Hi Raghva,
I just want to say thanks , those videos are helping for beginners .
You're welcome Allu,
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
Srihari
The issue you're experiencing with JMeter getting stuck and taking a long time to respond to API calls and view results could be caused by various factors. Here are some potential causes and solutions to investigate:
1. **Slow System Resources:** Check if your system has sufficient resources, such as CPU, RAM, and network bandwidth, to handle the load of the API testing. If your system is overloaded, it can cause delays in JMeter's response times.
2. **Network Latency:** Ensure that your network connection is stable and has low latency. High latency can significantly impact JMeter's ability to communicate with the API server.
3. **API Server Performance:** Verify that the API server itself is performing well and can handle the load of your test requests. If the API server is experiencing performance issues, it can cause delays in response times.
4. **JMeter Memory Settings:** Increase the Java heap size allocated to JMeter if it's running out of memory. This can be done by modifying the `JAVA_OPTS` environment variable or using the `-Xmx` flag when starting JMeter.
5. **JMeter Configuration:** Review your JMeter configuration settings, particularly those related to the JDBC connection, HTTP request samplers, and listeners. Ensure that the settings are optimized for your testing scenario.
6. **JMeter Thread Group:** Adjust the ramp-up period and thread count in the Concurrency Thread Group to manage the load gradually and avoid overloading the system.
7. **JMeter Plugins:** Disable any unnecessary plugins that might be interfering with JMeter's performance.
8. **JVM Garbage Collection:** Check if JVM garbage collection settings are causing delays. Consider using the `-XX:+UseG1GC` flag to enable the G1 garbage collector, which may improve performance.
9. **JMeter Version:** Ensure you're using the latest stable version of JMeter. Older versions may have known bugs or performance issues that have been addressed in newer releases.
10. **Community Support:** If the issue persists, consider seeking assistance from the JMeter community forums or mailing lists. There may be specific configuration or compatibility issues related to your environment that require additional guidance.
Remember, performance testing involves understanding the performance bottlenecks and limitations of both the system under test and the testing infrastructure. By carefully analyzing the system resources, network conditions, API server performance, and JMeter configuration, you can identify the root cause of the delays and implement appropriate solutions to improve JMeter's responsiveness.
Hi Raghav ,Plz suggest how to work this out with JMeter 3.3 the latest version? As there is not SOAP-RPC Sampler in the Menu item
Hi Ravi, 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 - jmeter.apache.org/usermanual/build-ws-test-plan.html
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!
Hi Bobby,
What i mentioned was, using other sessions in this series you can create and get a detailed results including factors like response time, latency and can also get graphical results to better understand the performance issues.
Let me know if there is anything specific you want to know.
Yes, I am aware of being able to find response and latency times, but how exactly do you figure out why it cannot handle 10 users? Or is that something you just report to the dev team and have them figure it out?
Thanks!
Hi Raghav. thank you for all of your videos. Could you please make a video on Post request of rest api with multiple users for macbook.
I will plan Sobys
Hi Raghav,
I have 2 test cases , its running fine in jmeter.
now i want to configure my SVN and Jmeter ...Like in code if any changes
its happened in svn .... test case will execute immediately.
You can create commands to run your jmeter test from commandline. Watch this.
ua-cam.com/video/K26q5VgwLKk/v-deo.html
And then set it up to run from jenkins. Watch this :
ua-cam.com/video/mYGQPj78YhI/v-deo.html&list=PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk
Then in jenkins you can select source control as svn.
HI Raghav, very well explained. Thanks aton.
Can you share link of session on "How to write groovy scripts" in Jmeter please.
I have not yet done it Vaidehi, will plan on this
Hi Raghav,
I was just going through the API Testing tutorial and faced a issue. I am using JMeter V3.2 still no SOAP/XML-RPC Request sampler displayed. Could you please help out.
Hi Jinesh,
Yes, . 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 jmeter.apache.org/usermanual/build-ws-test-plan.html
But this wont handle HTTPS requests, I do not see any Video in your playlist. It would be really great to have that. thanks @Raghav
Hi, now we need to use https sampler for api requests and you can provide https in protocol filed. I will make new videos on that
Thank you Raghav for sharing knowledge.you explained it very well.it helped a lot
I am glad Ruchi, it helped.
Thanks Raghav, You are an awesome guy.. Really learnt a lot from your tutorials.
Thanks for your message Vishal
Hello, I installed the XML plugin but the "SOAP/XML - RPC Request" is not displayed in Samples. Can you help me?
Hi Razvan, have mentioned this in description of the video - 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 - jmeter.apache.org/usermanual/build-ws-test-plan.html
Thank you for providing these tutorials.Its very helpful for us. In JMETER 4.0, SOAP/XML-RPC Request Sampler is not available. Can you let us know how to do that without this sampler. For REST I did it with HTTP Request Sampler. IS the process same with SOAP service?
Hi Sneha, thanks for watching. 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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi sir
Is it good to learn jmeter after postman to get a job
jmeter is continuation of postman ?
or its alternative
Yes, it will be a good diverse skill set
Online Courses - automationstepbystep.com/
Dear Raghav, I have one query on the difference in response time using the 2 samplers (SOAP XML RPC request and http sampler). If we are using the SOAP sampler the request is processed faster. Will it not affect the end results? So now the performance becomes dependent on the sampler used. Am I correct or missing something?
Hi Prashant, Are all your parameters and configurations for both samplers same. Not sure why is it showing this. Ideally, sampler should not impact server performance.
Hi...Raghav I m using Apache JMeter 4.0 As I follow your video I can not see SOAP/XML- RPC Request Opthin on Thread group > Add > Sampler >
can you please suggest how to sort this out. Thank you
Hi Mehul
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Thank you, Raghav
Hello Raghav, I want to test web services with Auth 2.0 authentication, can you let us know how we can do it?
Hi, can you check if this link helps you - stackoverflow.com/questions/41818784/how-to-do-a-oauth-2-0-authentication-in-jmeter?
Hi Raghav, I want to create a test plan using IFTTT. Could you please inform me how to proceed
Hi Himabindu, I have to check on this online.
Thank you for sharing your knowledge. Your example are clear and easy to understand.
Thanks for your message Allan
Hi Raghav, In JMeter 4.0, I cannot find Sampler - SOAP/XML-RPC Request. How and where to look about?
Hi Isha,
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi raghav i'm using jmeter 4.0 version there is no soap web service or sopa/xml sampler how can i proceed??
Hi Aditya, I have mentioned this in the Description
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
I'm using Jmeter 3.3 and there's no SOAP/XML-RPC Request. Has this been replaced with a different sampler, or is it no longer necessary?
Hi Alvaro 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
jmeter.apache.org/usermanual/build-ws-test-plan.html
very thanks for your videos sharing your knowledge. Your example are clear and easy to understand.
Thanks a lot
At 14:41 only SOAP API starts, right. Was it mentioned wrongly for REST API a while earlier just before 14,:41?
Hi Smana, first part deals with REST and second part with REST. where is the confusion
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.
Hi Titir, This may usually happen if the server has closed the connection at its end (issue at the server end) or probably an issue with the request that you send to the server (client end)
For checking the application performance you have to set a baseline (i.e. record the metrics with normal load) and then keep on increasing the load gradually and on every run compare the metrics with baseline (e.g. response time, throughput, avg etc) If you start getting huge differences, that would mean your application (servers) cannot take more load
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,
Hi Nitin, just check the logs to validate if its passing the correct username and password.
Thank You Raghav for the quick response!
Problem Resolved!
Hi Ragav,
In this video when you give the number of thread count as 10, then some of the SOAP request are failing right? How can i debug why those request got failed?
Hi Prasana, you can add listeners like View Results Tree and see the actual request and response.
In case you get any server side error like 5xx code, then the issue is at server end. i.e.its not able to handle the load.
My Jmeter doesn't show SOAP XML-RPC under Sampler options...what do i do?
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi Raghav, i need to run multiple APIs and these are inter linked means , after one API runs then i need to take some date from the responce then i need to use that in next Rest API, then i need to hit the 2nd Rest API and some date need to pick up from responce and that data to be used in 3rd Rest API... so this is whole is a set. I need to do perfomrece testing on this ... please tell me how can i do this?
Hi Kumara, what are your API format, REST or SOAP, in case of JSON response you can use JSON extractor in case of XML you can use XML extractors. Here are some videos to help
ua-cam.com/video/7-NcyZuUQnw/v-deo.html
ua-cam.com/play/PLhW3qG5bs-L-oMT1Cnrurt7gEaLrRub2V.html
Hello Raghav
Have you uploaded any video on Socket testing using Jmeter. If u have any video or any reference please share the link and thank you for these videos, it help me alot.
Not yet Abhishek
You are a very good teacher, thank you very much! I wish you all the best!
Thanks Alex.
my api collection is ready in postman.Please suggest how can i use that postman collection in jmeter for performance testing
Hi Shrutika, Although I did not try this, following can help
loadium.com/postman-to-jmeter-converter/
stackoverflow.com/questions/48009587/postman-script-to-jmeter-script
apiumhub.com/tech-blog-barcelona/automatizing-postman-test-jmeter/
Hello Raghav, So I signed up at website for the API keys and once I Logged in, the server name starts with “samples” Instead of api.openweather.. why is that? My test failed once I changed it to api for IP under web server on jmeter.
Hi Zain, In case there are any changes at the api side, you can create the request accordingly. Can also try any other API in case this one is not working. I took this as a demo
Automation Step by Step - Raghav Pal sounds good, thank you for getting back.
Hi Raghav,I am trying to this web services (API) testing using 3.2 Jmeter. I am unable to found option SOAP/XML-RPC Request under Sampler. is there any other file required for web service. could you please help?
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Thanks Raghav
hi Raghav, i have one question for you.
why Jmeter has 8888 as default port number ?
Hi Veerendhra, Not exactly sure on this.
Hello Raghav,
I found your tutorials very easy to understand.I run test for 10 users but i get the errors for some requests like (403 Forbidden). so can you please tell me the how to slove this problem
Hi Srihari, in case some of your requests are getting passed and some fails, then you probably have uncovered a potential performance issue, that your servers are not able to handle multiple concurrent authentication requests.
You can look at the logs for further details.
I am not getting the SOAP/XML -RPC request in my samplers list. I am using apache J meter v 5.1.1
Hi Venkatesh,
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
hi raghav,
i am doing load test in jmeter . i got some errors like non http response code java.net.connectexception. how to solve this problem .
Hi Srihari, this looks like an issue from the server side. can check this :
stackoverflow.com/questions/30164200/getting-response-code-non-http-response-code-java-net-connectexception-for-som
Hi Raghav,
What to do if my variable is in parameter? For example, my URL is www.lifecharger.org/xyzabc/ND_1000.
Now when I refresh my page then in my URL xyzabc become qwerty and it changes when you refresh the page and new value is created in place of qwerty. How can I tell JMeter to understand that the URL have new values when JMeter tries to retrieve it?
How to handle dynamica variable in URL without input name or type?
Thank you,
you can check using correlation
i dont have SOAP/xml-RPC -Request in JMeter 3.3. Can u show me how to work it in Jmeter 3.3. And evn show it using Body Data.
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
raghav how can we test API in mobile app testing for example if we are testing some travelling
app?
You can check this - ua-cam.com/video/JFDcgKQ8VFw/v-deo.html
Hi Raghav, I have apache version 3.2r and in this i am not getting option for Soap/XML rpc request. could you please tell me where I will get it
Hi,
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
thnksss
dumb question ... on the listeners u said to create .csv files ... is it still the .csv file or is it changed for excel ? or anything newer .. thanks
Yes you can use csv files
thank you sir. appreciate your help ... great videos
Hi Raghav, Can I record a test and check the performance of it instead going for csv file for authentication???
Hi Partha, you can surely create a test with call parameters hard coded , as well the assertions and do not require a csv file.
Hi, How can i test my web app which use web-socket for communication With Apache JMeter
Scenario is like that
1) Agent Login to application
2) Visitor send message to agent from Tab-1
3) Agent pick message of visitor from Tab-0
4) visitor close chat & close Tab-1
5) Agent close chat
6) Logout Agent
Hi Jagrut, if you search you will find information on how to test web socket apps with JMeter. I will too try to create a session on this soon.
Thank you. I try searching but couldn't find good resource for that, very less information available for that , waiting for your session.
Hi,
can you give me an example to authenticate using wsdl and process the rest of the wsdl end point using jmeter
I will plan on this Nageshwar
hello raghav
I am using 16gb ram and intel core i5, 7th gen machine.
Can you please tell me the Maximum number of threads supported by JMeter...
thanks
Hi Srihari, see this should help - stackoverflow.com/questions/3528765/jmeter-max-thread-limit
hello Ragahv thank you for this video but i don't have the option SOAP/XML-RPC Request Sampler in my jmeter Version 5.4 ! please advice
Yes Dania, check the latest videos on API here - ua-cam.com/play/PLhW3qG5bs-L9sCVY1c_vox9blIrIzwEEb.html
@@RaghavPal Thank you
I am using Jmeter 3.3 version. I am not able to add SOAP API request. Could you please let me know how to add in the latest version
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 - jmeter.apache.org/usermanual/build-ws-test-plan.html
thank you very much raghav
Hi, Thanks for sharing.
Is it possible for the given scenario: Output of 1st web service used as input of 2nd web service and output of 2nd web service used as input of 3rd web service. Can you please share...
Thanks Mrutyunjay,
Yes its possible through XPath extractor post processor. I will create a session on the same soon.
Hi Raghav,
Have you created a video on XPath extractor? Waiting for that as I am having issues related to extracting Countries from the same WSDL that you have used in this video.
HI , can you please let me know, on 5.1 version , which sampler i use . i got only the http one not the having the soap/rpc sampler
Hi Manas, 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
jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi Raghav, Wanted to know how to test the performance of an api which brings loads of data in response on giving different inputs in request.
Are you getting any exception in parsing the data.
No Raghav, just wanted to know that is it possible to test such scenario in Jmeter.I am working ona library application. where there is no rush of users but loads of items are returned through API.So is it possible to performance test API's which returns loads of data in return
Yes, you can try setting the test and then see if you get any error in logs. Ideally you should be able to achieve this.
Hi, Thanks alot for this video, I have one question, How can give the image parameter (attributes) in Body Data Like Firstname, Lastname, Profile_image Field for the Post Query in HTTP Request. Thanks in Advance.
Hi Hafiz, I did not get you completely, How do you provide this in functional testing, it will be the same here. stackoverflow.com/questions/48200768/jmeter-send-image-and-other-parameters-together-in-post-request
SOAP XML RPC Request sampler is no more available in Jmeter ? From where can i get free sopa API?
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Hi, Your videos are great and have been very useful. Just wanted to let you know the SOAP/XML-RPC Request Sampler has been removed in Jmeter v.3.2. This video needs an update.
Hi Chris, although this have been mentioned in description and few comments as well. I will plan to create a new version as well
Hi, Yes I noticed that you mentioned it in the description. I just wanted to give you a heads up for if you wanted to make an update. Some of our newer users to UA-cam might get confused.
how to test API now in the latest version ?
@yashu verma: did you find the solution?
did you find the soultion?
Hi can assertions be made for the REST or SOAP responses?
Also you used "NewDelhi" as your search parameter for the REST API URL, is there anyway to like CSV file to load other cities to be sent per URL call?
BTW this is a very good video! thank you!
Thanks Sahan for liking. Yes, assertions can be made on response by using Response Assertions. You can watch this video:
ua-cam.com/video/mXhC9CtQBC8/v-deo.html
You can load API parameter from external file like CSV. I will create a video for this shortly.
here you go:
Jmeter Beginner Tutorial 13 - How to read data from csv file (Parameterisation)
ua-cam.com/video/aH_ZhMrhHhI/v-deo.html
Hi..you got the API key by signing up the portal?
There is an option to get API key, You can explore as I will need to go back and check the process again
Hi Ragav
i am running distributed load testing . i am adding all rdps ip's add in jmeter properties file . add on the all servers of rdps. but i am getting one error . ie Connection refused to host :172.13.12.32 ; nested exception is: java.net.ConnectException:Connection timed out: connect
can please tell me answer as soon as possible .
thank you
srihari
Hi Srihari, can you test manually if your node is accessible from your master machine.
yes its accessible. it shows on jmeter. and one more thing i am using aws RDPS...
Really Good tutorial! Explained every part of FTP concept very comprehensively! Thanks Raghav:)
Hi Nidhi, thanks for watching and learning.
good afternoon sir. pls i am having this error if i run the test. >> Unable to update attachment reference. how can i resolve it. thank you
Nicholas
Let's break down the problem and work through it step by step
Step 1: Understand the error
The error message "Unable to update attachment reference" suggests that JMeter is having trouble updating or accessing an attachment, which is likely a file or resource associated with your test
Step 2: Check the test plan
Review your test plan to identify any attachments or files that are being used. Check if you have added any files or resources to your test plan, such as CSV files, images, or other types of files
Step 3: Verify file paths and permissions
Ensure that the file paths to your attachments are correct and that JMeter has the necessary permissions to access them. Check if the files are located in the correct directory and that the file names are spelled correctly
Step 4: Check the JMeter log file
Look for more detailed error messages in the JMeter log file. You can find the log file in the `bin` directory of your JMeter installation. The log file may provide additional information about the error, such as the specific attachment that's causing the issue
Step 5: Check for file encoding issues
If you're using a CSV file or another type of file with special characters, try saving the file in a different encoding (e.g., UTF-8) to see if that resolves the issue
Step 6: Try removing and re-adding the attachment
Remove the attachment from your test plan and then re-add it. This can sometimes resolve issues with file references
Step 7: Check for JMeter version issues
If you're using an older version of JMeter, try updating to the latest version. Sometimes, errors like this can be resolved by updating to a newer version of JMeter
Step 8: Search online for similar issues
If none of the above steps resolve the issue, search online for similar problems and see if other users have encountered and resolved the same error
By following these steps, you should be able to identify and resolve the "Unable to update attachment reference" error in JMeter
-
@@RaghavPal thank you sir
in sampler list "SOAP/XML Request sampler" is missing here ..what i can do for that.?
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
thats fine ..Thanku
Hi bro! Can you tell us about performance testing mobile apps? Thank you so much.
Hi Ivan, you can use JMeter to test server-side performance - ua-cam.com/video/JFDcgKQ8VFw/v-deo.html
www.testbytes.net/blog/performance-testing-tools-for-mobile-applications/
Hello Raghav. such a good information!. How to do simulation of the json file ( Body data) in the jmeter using Http- POST method
Replied to your other comment Hema
Do you know where can I get the old version? The new version does not have the SOAP/XML Sampler. BTW, really good tutorials. Liked and subscribed!
Hi Alyssa, You can get earlier ver here - archive.apache.org/dist/jmeter/binaries/
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 jmeter.apache.org/usermanual/build-ws-test-plan.html
Thank you so much :)
You're welcome Alyssa
I have created the script with my key and its working but when i am try change the city other then London like Bristol, Derby and even Noida then it works but always showing the the City as London in the response
Hi Alok, pls check if the data is passed properly in the request, You can use step by step debugger to see the variables and its values. ua-cam.com/video/7JI3GD0ifTw/v-deo.html
@@RaghavPal Hi Raghav, even i have the same issue, showing city as London eventhough i change the city name, and also if I keep method POST it is giving me error as invalid apiKey, Can you please post another updated video how to test with SOAP API as SOAP Request was removed in new version of jmeter,Thanks!
hello sir can you tell me the best certification for jmeter. I have one Vskills for jmeter plz tell me which is best.
Answered your other comment Abhinav
Hello Raghav, Can you help us to do performance testing with protocol buffer ?
Hi Ganesh, I will check on this
@@RaghavPal , Appreciated about your time and efforts for teaching us in simple way! Thank you.
Nice Tutorial ...Actually the Rest API not working on my machine.I am getting error "500 Internal Server Error".Could please help me on that?
Hi Amit, are you testing with the same api as shown in the video. It might be down. Can you check manually.
Yes, I tried it wid another api and now it's running fine. Thanks !!
Hi. I got one quich question. Will Jmeter show an error if we parameterize invalid username and password from CSV file.
Thank you,
Hi Ishit, JMeter on itself will not show an error if its able to get the value from csv successfully. Its that in the response you will get something like invalid username/password and you can put an assertion over it, to fail if you do not get correct response.
Automation Step-by-Step - Raghav Pal
First of all thanks Raghav for replying. Can you also help me with what kind of response and assertion I have to use to get invalid username and password error.
Thanks,
Hi Ishit, if you goto response assertions you will get options for http code/ content etc. You can use content assertion here
Hello Raghav,
How to pass the token Id in Api to Another Api .. can you please tell me Answer
can you please give me the your email or ph no..
Hi Srihari, you can use correlation - ua-cam.com/video/7-NcyZuUQnw/v-deo.html