JMeter Beginner Tutorial 11 - Testing Web Services API
ฝัง
- เผยแพร่เมื่อ 30 ก.ค. 2016
- 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.org/usermanual/b...
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.org/appid)
api.openweathermap.org/data/2.5/forecast/city?id=524901&APPID=1111111111
api.openweathermap.org/data/2....
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.net/New/Home/S...)
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 - automationstepbystep.com/
_______ ONLINE COURSES TO LEARN _______
FREE Courses - automationstepbystep.com/onli...
Udemy Discounts - automationstepbystep.com/udem...
GitHub - github.com/Raghav-Pal/
Udemy - www.udemy.com/user/raghav-pal-3/
Training schedule - automationstepbystep.com/trai...
----------- 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 - automationstepbystep.com/
LifeCharger - lifecharger.org/
Udemy Courses - www.udemy.com/user/raghav-pal-3/
Facebook - / automationstepbystep
Twitter - / automationsbs
TH-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
Raghav truly grateful to you for sharing your knowledge with so much clarity.Cheers
I am glad Aisshvarya, that it helped. Keep learning.
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
AWESOME!!! Thank you very much for these very helpful, well-explained tutorials for beginners! You're a Legend!
Thanks for your kind words John, I am humbled
Raghav, you have done a fab job explaining JMeter. Cannot thank you enough!
Sachine, I,m glad it helped
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.
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.
You are a very good teacher, thank you very much! I wish you all the best!
Thanks Alex.
Thank you for sharing your knowledge. Your example are clear and easy to understand.
Thanks for your message Allan
Excellent explanation of APIs. I'll be using the waiter analogy in future!
thanks for watching Ian
Thank you Raghav for sharing knowledge.you explained it very well.it helped a lot
I am glad Ruchi, it helped.
Hi Raghav, You have explained REST API so clearly. Amazing job !! Thanks alot...
Most welcome Sabita
Hi Raghva,
I just want to say thanks , those videos are helping for beginners .
You're welcome Allu,
Another great video.... Well done.... Keep up the excellent work....
Thanks for watching Agustin.
Thanks Raghav, You are an awesome guy.. Really learnt a lot from your tutorials.
Thanks for your message Vishal
Excellent. Thanks for sharing this video.
Valuable information.
Glad to know this Bharath
very thanks for your videos sharing your knowledge. Your example are clear and easy to understand.
Thanks a lot
Thank u very much!! The tutorials are very helpful :)
Thanks for watching and letting me know Supriya
Superb tutorial for beginners. Great Job!
thanks for watching Amit
Very useful Tutorial! Thank you!
you're welcome
Thank you Raghav, very helpful video.
Glad to know this Amar
Very Useful Videos Raghav. Thank You So Much for sharing :)
Thanks for watching Harshada
Great job!! Thanks!!!
Thanks boss ..Many Many thanks for your videos
you're welcome Himansu
Excellent brother. Keep it up.
Thanks for watching Mushfiq
Really Good tutorial! Explained every part of FTP concept very comprehensively! Thanks Raghav:)
Hi Nidhi, thanks for watching and learning.
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 - th-cam.com/video/7-NcyZuUQnw/w-d-xo.html
Sir you are superb ,the way you teach.
Please send me more video related to Jmeter Tesing
Thanks for your message Manas. You can find all here - automationstepbystep.com/909-2/online-courses/
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.
Great tutorial 👍
Thanks for watching Akshar
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.
th-cam.com/play/PLhW3qG5bs-L-oT0GenwPLcJAPD_SiFK3C.html
th-cam.com/play/PLhW3qG5bs-L-Bt9T_bnyflQ0Te4VgFhKF.html
Automation Step by Step - Raghav Pal Thanks Raghav
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
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 th-cam.com/video/f3K9gWKpY2c/w-d-xo.html
how do you get the end URL for soap? I did not get that point.
hi Bharath, as shown i have taken it from the url on the browser.
Endpoint is the URL where your service can be accessed by a client application.
Most commonly you can fetch the endpoint from the wsdl url.
example:
If wsdl url is:
www.blah.com/myproject/webservice/webmethod?wsdl
then endpoint is:
www.blah.com/myproject/webservice/webmethod
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
Thanks a lot Raghav for the JMeter video you have prepared. :) Can we get the same type of videos for Selenium webdriver as well?
Sure Rajat, you can get Selenium videos in the playlist - th-cam.com/channels/Tt7pyY-o0eltq14glaG5dg.htmlplaylists
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
Excellent
👍 thanks for sharing
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.
Behind a corporate proxy one have to add his proxy information on the "Advanced" tab of HTTP Request.
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,
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, 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
Thanx its really helpful
You're welcome
good job bro (y)
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.
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/
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 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:
th-cam.com/video/mXhC9CtQBC8/w-d-xo.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)
th-cam.com/video/aH_ZhMrhHhI/w-d-xo.html
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, 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
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.
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
THank you very much sir
You're welcome Ramesh
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
th-cam.com/video/7-NcyZuUQnw/w-d-xo.html
th-cam.com/play/PLhW3qG5bs-L-oMT1Cnrurt7gEaLrRub2V.html
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)
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,
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
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
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 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
how to decrypt recorded web services in jmeter???
SoapXml/RPC request is not available in my Jmeter tool
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 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 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 - th-cam.com/play/PLhW3qG5bs-L9sCVY1c_vox9blIrIzwEEb.html
@@RaghavPal Thank you
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
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/
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
SOAP/XML-RPC request sampler is missing in jmeter 4.0, please tell which option i need to select?
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,
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
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
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
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
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. 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
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,
this was good ,
How i can test login page by different user credentials
Hi Hitesh, you can pass the values from csv file.
Jmeter Beginner Tutorial 13 - How to read data from csv file (Parameterisation)
th-cam.com/video/aH_ZhMrhHhI/w-d-xo.html
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
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
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.
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.
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.
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,
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.
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.
th-cam.com/video/K26q5VgwLKk/w-d-xo.html
And then set it up to run from jenkins. Watch this :
th-cam.com/video/mYGQPj78YhI/w-d-xo.html&list=PLhW3qG5bs-L-PpK83CC_m_bWd_722tvgk
Then in jenkins you can select source control as svn.
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 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
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 - th-cam.com/video/JFDcgKQ8VFw/w-d-xo.html
www.testbytes.net/blog/performance-testing-tools-for-mobile-applications/
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.
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 have one question for you.
why Jmeter has 8888 as default port number ?
Hi Veerendhra, Not exactly sure on this.
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.
Hi Raghav,
Can you please guide me on "How to Run Performance Tests on OAuth Secured Apps with JMeter"?
Thanks in advance.
Hi Satya, i will need some time to create a session on this.
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
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 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
Hello Raghav, What about header content?
you can add Http Header Manager
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