Big fan of yours for making such wonderful videos. I was very new to jmeter but could easily follow and practice along with your videos. Three cheers to your hard work and determination :) Thanks a lot for making our learning a cakewalk.
My Jmeter Load test is not stopping by its own . I used 1000 users , ramp up time 120 seconds , Hold target time 300 seconds , Also I have changed Heap size to 3072 . Its working fine with 300 users only
Raghave great video, i love the fact how you are going step by step and teaching all the things that one needs to know ....i surely feel lack of words for commending you for this selfless act of teaching other something that enable them to succeed in their respective careers. kudos.
Hi sir i have a question regarding the Size Assertion. How do I know my response size before verifying it? Should we asked the developer that the size of the assertion should not more than that or should have a limit?
Aryan Yes, generally your requirements should tell you that.. you can also check with client or dev teams. If you are not told a specific value and you have to still add it, Execute some test requests without assertions to capture actual response sizes using the "View Results Tree" listener. Based on the gathered data, define Size Assertions (minimum and maximum) that reflect expected responses.
Hay Raghav, Here are my questions; Q1) Given you have a user ID and password assigned for 10 users and a JMeter script set up for 10 virtual users (or 'threads'), which pre-processor would you use in the JMeter script so that each of the 10 virtual users receives their own distinct user ID and password, without using a CSV file? Q2) Given you have a scenario in which you must shutdown a test script automatically if an average response time is 11 seconds or more for more than 5 seconds, which listener would you use in the script to achieve this? Q3) What are two ways to implement "pacing" in a JMeter script? ('pacing' in load testing refers to the time between the iterations of your test scenarios. If the candidate doesn't know what pacing is then he doesn't have a very good grasp of performance testing.)
Hi M. Sannoh, 1. If you want to refer multiple values (like username/password) in this case you can create user variables and refer them (although csv file will be good option here) 2. You can use Duration Assertion. Can also see auto-stop plugin. 3. Read this - www.blazemeter.com/blog/how-to-easily-implement-pacing-jmeter
Great tutorial video. Thanks. I have a question related to HTML assertion, you have selected 'Errors Only' checkbox to write Jtidy report in .txt file but warnings are also written in that file. Could you please provide reason of it ?
Thanks for the tutorials, Raghav. Can you please explain what does it mean when we get 'offset' and 'length' values as response while doing a HTML assertion?
@@RaghavPal Thank you for the response. This was observed when i performed the following steps: 1. Added a HTML assertion for website like 'Amazon.com' 2. In the assertion results listener, received a response under 'HTML Assertion' with 'Offset' and 'Length' parameters I'm using Jmeter 5.2.1 version :)
Hi Raghav, Does adding assertions affect the performance test results? I mean if we are checking some texts in the response it might take a second or so. Will it not affect actual performance results of the website we are testing??
Hi Vinoth, There is always some overhead for processing the assertion, but unless it is performing an excessive number of tests it should be minimal. The assertion is performed on the load generator so if that component cannot handle the additional overhead then the assertions will not be your only concern stackoverflow.com/questions/19826859/assertion-in-jmeter-and-its-impact-on-result
Hi Raghav, how can I check if the value that I gave in the request is equal to the response what assertion should I use? if you have do you have an example
some status bar on my Jmeter (black background) are missing , but i still understand your lecture , is easy to follow...keep it up , you are making impact , and that is what success is all about
Hi, you can start even if you do not have any existing knowledge of programming language, but I will suggest to start learning. You can start with Java. It will help you to goto next level and its is really easy and interesting, You can check here - automationstepbystep.com/online-courses/
Sir ,i m very thankful to you for your awesome explanation about Jmeter . And here i am Using Jmeter and i am facing IP address problems . 1) I used IP address in HTTP Request then i clicked on Run,then i checked in View result table here the status was error (Red). my question is whether will it take hosted Page of IP only or UAT also.
Hi Raghav, I am new to JMeter your explanation is very good. The errors whatever we are getting while using HTML assertion and Xml assertion does it really impact on load? and who will resolve those issues? Is it by performance engineer or developer.
Thank you for your time and does it impact on load of the site and what is the use by validating this assertions in real time scenario by performance testers.
Hi Hari, assertions are like validations and you put them as per your needs. For example if you want to assert the response time, size etc. Load on the site is not impacted by assertions
Do we need to add an assertion for response code? Wont jmeter automatically check for 200 response code and based on this only it calculates the error rate?
Hi Maneka, you should find some functions for that - jmeter.apache.org/usermanual/functions.html In case there is something very custom you want to do, will have to script for it.
Hello sir , how can i get token value for bzm-blazemeter sense uploader actually this is using for creating the pdf report and send them to the mail address but i dont know how i can get the token value for it please create a video for it..
Hi.. Could you please let me know if Jmeter can be used to test a non web based application. I have a product written using Delphi and C#. I want to open a backend screen and see how much time it takes. Is it possible using Jmeter?
Hi Cerena, a generic answer to your query is Yes, JMeter can be used for testing non-web based applications. However you will need to check the requirements specific to your application. I will soon post a session for testing desktop applications using JMeter.
Hi Fahad, this is due to some issue in HTML format, You can discuss on this with your dev team or if you are good to check the content rather than the backend html, you can use response assertion
why when the response code assertion is run for google.com for response code 200 it fails ? and when I set pattern matching rule from "Equals" to "Contains" it is okey ?
Hi Raghav! I am unable to see the text file for HTML Assertion as the project is saved as one single file with .jmx extension on my Mac desktop. Can you help.
Hi Kshipra, yes, so the test plan gets saved as single jmx file. Why do you need separate file for assertion, You can do the editing on JMeter and save
@@RaghavPal I want to see the assertions checked in text file as you showed in the video. I am unable to figure this out. How to see this assertion text file? Where is such option in Jmeter?
Hi Kshipra, I believe you are talking about logging the assertion results in a file by providing the file path in the Write Results to File field. If you are not able to do this check the logs to find the issue. You will see a logs icon at top left corner.
Thank you, Raghav for awesome tutorials of JMeter. but I have a question, based on what I decide the results of the system is good or not like latency, bytes ...etc
Hi Neama, all this is based on your requirements and needs and the performance output you would want from your application. You can read about - APDEX - en.wikipedia.org/wiki/Apdex
Hi Raghav, see I have created test plan and I am reading data from CSV file. Now there is only one column in CSV file and I want to deliberately fail one cell from that column. What assertion I should use? Thanks in advance.
Hi Nadeem, here we are checking that we get response from our server within a specific time, So we are checking our server response time. So we are anyways not considering the client network or browser issues, Just in case you want to check the performance by throttling network i.e. how will the application perform on different network or bandwidths you can check priyank-it.medium.com/jmeter-different-network-speeds-41e7f3d4b7ab#:~:text=Jmeter%20has%20capability%20to%20throttle,the%20connection%20speed%20is%20throttled. q-automations.com/2019/05/29/how-to-simulate-network-bandwidth-in-jmeter/ Can find more if you google - jmeter throttling network
Nice tutorials! Thank u so much! Could u please enable the auto-generated cc subtitles for these courses? 'cause my english is not good enough to understand clearly 😭
Hi raghav. I am facing an issue with Jmeter 5.4.3 version. When i am using HTML Assertion i am getting following error after starting the test plan 2023-09-10 21:55:04,199 WARN o.a.j.a.HTMLAssertion: Cannot parse result content java.lang.IllegalArgumentException: can't parse argument number: at java.text.MessageFormat.makeFormat(MessageFormat.java:1451) ~[?:?] at java.text.MessageFormat.applyPattern(MessageFormat.java:491) ~[?:?] at java.text.MessageFormat.(MessageFormat.java:370) ~[?:?] at java.text.MessageFormat.format(MessageFormat.java:859) ~[?:?] Could you please tell me how to resolve above error as i couldn't find any solution on internet.
Amit The error message `java.lang.IllegalArgumentException: can't parse argument number:` means that the HTML Assertion is unable to parse the argument that you have passed to it. This can happen for a few reasons: * The argument that you have passed is not in the correct format. * The argument that you have passed is not a valid HTML element. * The HTML Assertion is not compatible with the version of JMeter that you are using. To resolve this error, you need to make sure that the argument that you are passing to the HTML Assertion is in the correct format. You can find the correct format for the argument in the documentation for the HTML Assertion. You also need to make sure that the HTML element that you are referring to is valid. You can use a tool like the W3C Validator to check the validity of an HTML element. Finally, you need to make sure that the HTML Assertion is compatible with the version of JMeter that you are using. You can find the latest version of the HTML Assertion on the JMeter website. If you have checked all of these things and the error is still happening, then you may need to contact the JMeter support team for help. Here are some additional things to keep in mind: * The HTML Assertion is a powerful tool, but it can be difficult to use. If you are not familiar with HTML, you may want to consider using a different assertion. * The HTML Assertion is not compatible with all versions of JMeter. Make sure that you are using a compatible version. I hope this helps
Hi Raghav ... Thank you for useful video What I want to know ... Wat is the use of _-. "view results in table "" &. " View results in tree"" Wat does both do
Hi Akhilesh, these are listeners. Like results of your JMeter tests, There are multiple listeners available. Check full series here - automationstepbystep.com/online-courses/
Hi Dania, it basically means somewhere in your html its trying to parse String as a number. You can take more help from dev team. issues.jenkins.io/browse/JENKINS-54596
Hello Raghav, for HTML assertion i am only getting this error- HTML Assertion : can't parse argument number: It's not throwing the value to put in threshold. How to test error threshold
Jayesh as mentioned here jmeter.apache.org/changes.html See Bug JDK-8031109 The fix is to use JDK9 b65 or later. I hope in next ver 3.4 this should be fixed once there is support on Java 9
Hi Raghav I am getting response code 200 and 301 for one URL# lifecharger.org,There should be only 200 OK,can you please explain why 301 response code came although 200 is there,so I am adding assertion with equals and or operations for passing test case (200 and 301)
@@RaghavPalHi Raghav ,Still after giving the https protocol, getting 200 and 301 response codes for one API,which is not expected any setting need to be changed in jmeter?
Hi Raghav .. Your videos are really suparb !! Thanks for sharing your knowledge 🙏 I am getting an error in HTML assertion --" can't parse argument numbers : can u pls help this one
Bit confused on the Assertion sections on Assertion Response. Say, we put/add 200. This 200 means what? What we mean by 200. Is it 200 users, 200 seconds, 200 responses by single user or what. Could you please explain about 200 is equal to mean what?
Alok, 200 it the http status code received from the server. We have pre-defined http status codes based on the response from the server. 200 is success or OK. So when we put 200 we are asserting that the server should send success response. In case we get any other code it should fail. You can find the list here : en.wikipedia.org/wiki/List_of_HTTP_status_codes httpstatuses.com/
Hello Raghav - hello!! thank you for explaining this. If this can be used interchangeably for an http request then why does it show no errors for HTML assertion with XML option checked and why does it show errors for XML assertion for the same http request? Any inputs would be helpful
Hi Sheel, if you notice, while running the test with XML radio button checked in HTML assertion, there was error and warning threshold set. As the count of errors and warnings was below threshold, so it did not show any failures.
Hi Raghav, I am not able to add the value for the response assertion. After clicking on add button, when I enter a value, entered value is not displayed. Please help me
Hello sir, i have installed apache jmeter and trying to run the batch file but i m getting an error of "not able to fine java executable version" . have installed jdk 1.8
Hi Nida, have you also set environment variables for java. What do you get if you run command java -version javac -version In case you need help can see this: th-cam.com/video/FqpmH8MVO6A/w-d-xo.html th-cam.com/video/NSvtis2fGlA/w-d-xo.html
I do not understand for what is exactly HTML Assertions.So this assertion shows the problems/errors from a site ? So if a site has problems and this assertion shows these errors how can we fix ?I really dont get it..or perhaps is not that.I would like to get a replay..I am kinda confused
HTTP Request HTML Assertion : can't parse argument number: XML Assertion : The markup in the document preceding the root element must be well-formed. I got errors like. So, what should I do?
Hello Sir, your videos where very helpful for me, thanks. Currently I wanted to know can we terminate entire test script if the response from one of the request is not as expected, problem is, there are many thread groups and each thread group has some amount of requests if one of them fails the script should terminate, I don't know how to do it.
Hello Raghav, thanks for the topic explained. i tried with repsonse code equals 200 , but test is getting failed, I have to use contains as pattern matching rules. any reason for this, I am using new version.
Hi Ankush, in the Pattern Matching Rules, what are the details you are providing. Pattern Matching Rules : this tell JMeter how it should interpret “Patterns to test”. There are different options: Contains : This means “Patterns to test” is a Regular Expression that JMeter will use to see if Response field to test contains the pattern Matches : This means “Patterns to test” is a Regular Expression that JMeter will use to see if Response field to test matches the pattern. So the pattern applies on the whole response Equals : This means “Patterns to test” is a text that JMeter will compare with Response field to test. If different assertion will fail. Substring : This means “Patterns to test” is a text that JMeter will search in Response field to test. If not found, assertion will fail. This is the default in JMeter. The Not checkbox will apply a Negation on the previous rules, which will become: Not contains Not Matches Not equals Not substring
Hi Ayushi, i hope you are adding this listener after adding response assertion component. Also ensure you are doing right click on the right component as shown in the video. If nothing works, you can try getting a diff version of JMeter and check
Hi Sir, I am beginner on jmeter, will you guide me please that how we can login our virtual user to our web application ? and if we login the user then can we login in gain to test the load ti me of other pages of our we application ? waiting for your answer !
Mehran, i have posted links in you other comment. Please check that. You can see JMeter playlists here th-cam.com/play/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c.html
Hi Raghav, In above video,when i add 5 users and one server url/ip ,this means that all the users are using the same server url to test ,then how come the duration/response code for same page with different users is coming differently?? Can u pls explain this.
Hi Nidhi, this is exactly what we test with Jmeter. When a service (e.g. website) is being used by multiple users, how does it respond in terms of response time, availability etc. So in case the server is not able to take enough load, it may not server some of the requests and can through service not available, or similar response codes.
Hey Raghav, Amazing series. Kudos! A quick Q. While asserting, I am not seeing the expected and actual values in the message for Response Assertion (Duration Assertion is giving correct message w both expected and actual values). For Response Assertion the only thing I am seeing is: Under View Results Tree: Assertion error: false Assertion failure: true Assertion failure message: 2 Under Assertion Results: MyHomePage Response Assertion : 2 What settings do I need to update so that I can see the values as well? I am running the latest Apache Jmeter 4.0.
Hi Raghav,I am getting the two response codes 301 and 200 for any URL in HTTP Response I have checked Follow Redirects check box,please tell me whether 301 is any issue and another doubt is for one URL the response code should be only one right ,I.e success 200, But for me 2 response codes I am able to see,as part of assertions I have put both 200 or 301 for green result, please clarify in this
Hello Raghav, Through JMeter, how can we make sure our load test results are successful? I mean is there any way where we can compare actual and expected response structures?
Hi Rijo, yes Assertions are exactly for that. You can try diff assertions based on your need. You will also need to see what are your requests, are they api or web. Based on that assertions can be used. Can also do custom scripting e.g. www.blazemeter.com/blog/the-easiest-way-to-compare-rest-api-responses-using-jmeter/
Hi Raghav, thanks for the videos. One question here, what is the difference between the XML Assertion and the XML format type in HTML Assertion. Here, when you selected HTML assertion but type as XML and ran the test, there were no errors, even though the response is in HTML? Thanks once again.
Hi Raghav, Thanks for this video.It is really informative covers a lot of type of assertions. I have a question.Why the response size differs ? Ideally it should be same as every time we get a same response and the same response body when we hit the same server.
Man, your videos are absolutely good, and you are good to explain everything. I just have one suggestion and it is that you should clean your mouth from saliva to avoid doing those annoying sounds, it's from communication perspective. You know if you take it or not. Keep up the good work, and thank you.
Hi Raghav..Can you please let me know how to assert entire JSON Object which we get in API response.Because When I try to assert the Response JSON it is throwing error for me.Could you please help me on this. Thanks in advance,
Free online courses - automationstepbystep.com/online-courses/
This is one of the best Automation and Testing tutorial based youtube channel, God bless you for making such quality content!
Thanks for the kind words Shobhit
Great Content ! Crystal Clear Explanations in all the Tutorials..
Thanks for all the hardwork done for creating these videos Raghav..
You're very welcome Puneet
Hi Raghav,
It's great to learn JMeter through your channel. Well explained content easy to understand and perform hands on practical..
Thanks a lot..
Happy to know this
Your tutorials are just great! Looking forward to learning more from you!
Awesome, thank you Ángel
Big fan of yours for making such wonderful videos. I was very new to jmeter but could easily follow and practice along with your videos. Three cheers to your hard work and determination :) Thanks a lot for making our learning a cakewalk.
Most welcome Shilpi
I love all of your videos. And this one is no exception. Keep teaching us Raghav. And Thanks for taking the effort for creating them.
I am glad to know this Anurag.
My Jmeter Load test is not stopping by its own . I used 1000 users , ramp up time 120 seconds , Hold target time 300 seconds , Also I have changed Heap size to 3072 . Its working fine with 300 users only
There can be multiple reasons, check this - sqa.stackexchange.com/questions/5986/jmeters-threads-got-stuck-and-never-end
Raghave great video, i love the fact how you are going step by step and teaching all the things that one needs to know ....i surely feel lack of words for commending you for this selfless act of teaching other something that enable them to succeed in their respective careers. kudos.
Thanks a lot for your message
Hi Raghav, congrats! for your great tutorials, I have been following you for a while and you have helped me a lot in my job, Thanks!
You're welcome Luis
Hello Raghav @13:55 the Tools popup box did you have to download that separately, because I can’t open my save tests
Hi Iara, that should come when you click browse
Automation Step by Step - Raghav Pal mine is not showing tools, is there a way I can send you pictures of it ?
Sure can upload online and send me link - imgbb.com/upload
Automation Step by Step - Raghav Pal
I have upload the pictures
Hello
Did you see my upload?
Dude! You are the first Indian I enjoyed listening to his tutorials! Keep it up (Y) :)
I am glad to know this Ahmad. Thanks
Hi sir i have a question regarding the Size Assertion. How do I know my response size before verifying it? Should we asked the developer that the size of the assertion should not more than that or should have a limit?
Aryan
Yes, generally your requirements should tell you that.. you can also check with client or dev teams. If you are not told a specific value and you have to still add it, Execute some test requests without assertions to capture actual response sizes using the "View Results Tree" listener.
Based on the gathered data, define Size Assertions (minimum and maximum) that reflect expected responses.
Hi Raghav you have done a great job...really it was helped alot in my job..thank you sooo much...
So happy to know this Anu, All the best
Hay Raghav,
Here are my questions;
Q1) Given you have a user ID and password assigned for 10 users and a JMeter script set up for 10 virtual users (or 'threads'), which pre-processor would you use in the JMeter script so that each of the 10 virtual users receives their own distinct user ID and password, without using a CSV file?
Q2) Given you have a scenario in which you must shutdown a test script automatically if an average response time is 11 seconds or more for more than 5 seconds, which listener would you use in the script to achieve this?
Q3) What are two ways to implement "pacing" in a JMeter script? ('pacing' in load testing refers to the time between the iterations of your test scenarios. If the candidate doesn't know what pacing is then he doesn't have a very good grasp of performance testing.)
Hi M. Sannoh,
1. If you want to refer multiple values (like username/password) in this case you can create user variables and refer them
(although csv file will be good option here)
2. You can use Duration Assertion. Can also see auto-stop plugin.
3. Read this - www.blazemeter.com/blog/how-to-easily-implement-pacing-jmeter
Thanks a lot Raghav.
really helpful ! Thank Raghav Pal !
Awesome explanation Raghav🎉
Glad you liked it..
Very good and clear tutorials! Thank you and well done Raghav!
Thanks for watching Ross
great tutorial, nice work bro. keep it up
thanks for everything
please don't be bored for share your knowledge
So nice of you
Very simple and understandable way u told...Good
Thanks for watching Harish
Great tutorial video. Thanks.
I have a question related to HTML assertion, you have selected 'Errors Only' checkbox to write Jtidy report in .txt file but warnings are also written in that file. Could you please provide reason of it ?
Hi Rohit, I will check the setup again
Thanks for the tutorials, Raghav. Can you please explain what does it mean when we get 'offset' and 'length' values as response while doing a HTML assertion?
Hi Nikita, where exactly did you see. In the lates ver, I could not find these field in HTML assertion.
@@RaghavPal Thank you for the response. This was observed when i performed the following steps:
1. Added a HTML assertion for website like 'Amazon.com'
2. In the assertion results listener, received a response under 'HTML Assertion' with 'Offset' and 'Length' parameters
I'm using Jmeter 5.2.1 version :)
Okay can you send me your request url and html assertion settings to check
Sure Raghav. I'll add the details here
Wonderful course. Thank you very much mere friend.
Most welcome
Very good and very clear everything. Great job dear.
Thanks for watching Nitin.
Hi Raghav,
Does adding assertions affect the performance test results? I mean if we are checking some texts in the response it might take a second or so. Will it not affect actual performance results of the website we are testing??
Hi Vinoth,
There is always some overhead for processing the assertion, but unless it is performing an excessive number of tests it should be minimal. The assertion is performed on the load generator so if that component cannot handle the additional overhead then the assertions will not be your only concern
stackoverflow.com/questions/19826859/assertion-in-jmeter-and-its-impact-on-result
Thanks Raghav. nice tutorial.
Most welcome Gurudatta
Thanks so much Raghav, very helpful Jmeter video series, learning a lot from you!
Thanks for watching Michael
Thank you Raghav, great job!!
Most welcome!
Hi Raghav, how can I check if the value that I gave in the request is equal to the response what assertion should I use? if you have do you have an example
Can use Response Assertion
some status bar on my Jmeter (black background) are missing , but i still understand your lecture , is easy to follow...keep it up , you are making impact , and that is what success is all about
Happy to see this. Thanks
Hi Sir,
Do you teach about load runner also similar to jmeter..?
If yes, please add sessions
Yes will do Madhuri
Thanks, can you plz show how to compare XML data with database value
not created yet, will check
Automation Step by Step - Raghav Thank you , it would be really helpfull of you create one and explain,
Thank you so much, bro. Nice work
Thanks Sathish
any programming language required as prerequisite..I m planning to pursue my career in performance testing .
Hi, you can start even if you do not have any existing knowledge of programming language, but I will suggest to start learning. You can start with Java. It will help you to goto next level and its is really easy and interesting, You can check here - automationstepbystep.com/online-courses/
Well explained concepts sir !
Thanks Aishwarya
Hi Raghav, you're awesome teacher !!! keep it up !!!
Thanks for your message Ravi.
Sir ,i m very thankful to you for your awesome explanation about Jmeter .
And here i am Using Jmeter and i am facing IP address problems .
1) I used IP address in HTTP Request then i clicked on Run,then i checked in View result table here the status was error (Red).
my question is whether will it take hosted Page of IP only or UAT also.
Hi Somasekhar, it will work on the ip that is accessible. You can try with ip or domain name.
Hi Raghav, I am new to JMeter your explanation is very good. The errors whatever we are getting while using HTML assertion and Xml assertion does it really impact on load? and who will resolve those issues? Is it by performance engineer or developer.
Hi Hari, Glad to know this. You can discuss on the error and warnings with developer
Thank you for your time and does it impact on load of the site and what is the use by validating this assertions in real time scenario by performance testers.
Hi Hari, assertions are like validations and you put them as per your needs. For example if you want to assert the response time, size etc. Load on the site is not impacted by assertions
Just perfect - simple and understandable)) thanks a lot
You are welcome Oksana
I have a doubt why do you only use 200 in the response assertion is there any specific reason?
Yes, HTTP status code 200 means “OK” and indicates that the request has been successfully processed
www.w3schools.com/tags/ref_httpmessages.asp
Do we need to add an assertion for response code? Wont jmeter automatically check for 200 response code and based on this only it calculates the error rate?
Yes, in general success or failure is based on general success codes like 200, 201, we can use assertions for other detailed checks
very helpful for a first timer!
Glad it was helpful!
Hi Raghav,
Can you please tell me how to get the character length of the response from the jmeter?
Hi Maneka, you should find some functions for that - jmeter.apache.org/usermanual/functions.html
In case there is something very custom you want to do, will have to script for it.
@@RaghavPal Thank you Raghav I'll try to do..
Gud explanation.. really good to understand with simple english
Keep u the good work, awesome tutorial
Thank you Rajesh
Hello sir ,
how can i get token value for bzm-blazemeter sense uploader
actually this is using for creating the pdf report and send them to the mail address
but i dont know how i can get the token value for it
please create a video for it..
Hi Pawan, I am yet to explore on this
Thank you so much.
And can you add subtitles in videos, so we can understand more clearly, that will be great.
Hi Huy, some videos do not have subtitles. I will put subtitles soon
Hi.. Could you please let me know if Jmeter can be used to test a non web based application. I have a product written using Delphi and C#. I want to open a backend screen and see how much time it takes. Is it possible using Jmeter?
Hi Cerena, a generic answer to your query is Yes, JMeter can be used for testing non-web based applications. However you will need to check the requirements specific to your application. I will soon post a session for testing desktop applications using JMeter.
Hi, that would be helpful, please post it
Can Some Help me out fro this Error (html assertion can't parse argument number). When trying HTML Assertion in Jmeter.
Hi Fahad, this is due to some issue in HTML format, You can discuss on this with your dev team or if you are good to check the content rather than the backend html, you can use response assertion
why when the response code assertion is run for google.com for response code 200 it fails ? and when I set pattern matching rule from "Equals" to "Contains" it is okey ?
Hi Taha, should be fine
Hi Raghav! I am unable to see the text file for HTML Assertion as the project is saved as one single file with .jmx extension on my Mac desktop. Can you help.
Hi Kshipra, yes, so the test plan gets saved as single jmx file. Why do you need separate file for assertion, You can do the editing on JMeter and save
@@RaghavPal I want to see the assertions checked in text file as you showed in the video. I am unable to figure this out. How to see this assertion text file? Where is such option in Jmeter?
Hi Kshipra, I believe you are talking about logging the assertion results in a file by providing the file path in the Write Results to File field. If you are not able to do this check the logs to find the issue. You will see a logs icon at top left corner.
@@RaghavPal Thanks Raghav! I am able to save the HTML assertion file with .txt extension in Jmeter itself and see the results in it
Hi Raghav, is it possible to use xml schema to validate againts xml response ?
Hi Isa, you can use xml schema assertion. This can help:
jmeterworld.wordpress.com/2008/12/29/xml-schema-assertions-jmeter-tutorial/
Thank you, Raghav for awesome tutorials of JMeter.
but I have a question, based on what I decide the results of the system is good or not like latency, bytes ...etc
Hi Neama, all this is based on your requirements and needs and the performance output you would want from your application. You can read about - APDEX - en.wikipedia.org/wiki/Apdex
Thank you!
Hi Raghav, see I have created test plan and I am reading data from CSV file. Now there is only one column in CSV file and I want to deliberately fail one cell from that column. What assertion I should use? Thanks in advance.
Hi Vikram, it depends on the response you get when you use the data from that cell. You may also use a BeanShell or JSR223 script to do this
hi, Raghav i have one doubt what if the user connection is slow what will be a scenario in this case for duration assertion, is it still a failure?
Hi Nadeem, here we are checking that we get response from our server within a specific time, So we are checking our server response time. So we are anyways not considering the client network or browser issues, Just in case you want to check the performance by throttling network i.e. how will the application perform on different network or bandwidths you can check
priyank-it.medium.com/jmeter-different-network-speeds-41e7f3d4b7ab#:~:text=Jmeter%20has%20capability%20to%20throttle,the%20connection%20speed%20is%20throttled.
q-automations.com/2019/05/29/how-to-simulate-network-bandwidth-in-jmeter/
Can find more if you google - jmeter throttling network
Nice tutorials! Thank u so much!
Could u please enable the auto-generated cc subtitles for these courses? 'cause my english is not good enough to understand clearly 😭
Sure, will do it
Hi raghav. I am facing an issue with Jmeter 5.4.3 version. When i am using HTML Assertion i am getting following error after starting the test plan
2023-09-10 21:55:04,199 WARN o.a.j.a.HTMLAssertion: Cannot parse result content
java.lang.IllegalArgumentException: can't parse argument number:
at java.text.MessageFormat.makeFormat(MessageFormat.java:1451) ~[?:?]
at java.text.MessageFormat.applyPattern(MessageFormat.java:491) ~[?:?]
at java.text.MessageFormat.(MessageFormat.java:370) ~[?:?]
at java.text.MessageFormat.format(MessageFormat.java:859) ~[?:?]
Could you please tell me how to resolve above error as i couldn't find any solution on internet.
Amit
The error message `java.lang.IllegalArgumentException: can't parse argument number:` means that the HTML Assertion is unable to parse the argument that you have passed to it. This can happen for a few reasons:
* The argument that you have passed is not in the correct format.
* The argument that you have passed is not a valid HTML element.
* The HTML Assertion is not compatible with the version of JMeter that you are using.
To resolve this error, you need to make sure that the argument that you are passing to the HTML Assertion is in the correct format. You can find the correct format for the argument in the documentation for the HTML Assertion.
You also need to make sure that the HTML element that you are referring to is valid. You can use a tool like the W3C Validator to check the validity of an HTML element.
Finally, you need to make sure that the HTML Assertion is compatible with the version of JMeter that you are using. You can find the latest version of the HTML Assertion on the JMeter website.
If you have checked all of these things and the error is still happening, then you may need to contact the JMeter support team for help.
Here are some additional things to keep in mind:
* The HTML Assertion is a powerful tool, but it can be difficult to use. If you are not familiar with HTML, you may want to consider using a different assertion.
* The HTML Assertion is not compatible with all versions of JMeter. Make sure that you are using a compatible version.
I hope this helps
Hi Raghav ... Thank you for useful video
What I want to know ... Wat is the use of _-. "view results in table "" &. " View results in tree""
Wat does both do
Hi Akhilesh, these are listeners. Like results of your JMeter tests, There are multiple listeners available. Check full series here - automationstepbystep.com/online-courses/
Very Well explained Great learning .I loved it!!
Thanks Rashmi
Good Lectures ...!!!! Nice Explanation....!!!!
Thanks A V M
Thanks for the Tutorials,Raghav.
Can you please explain what does it mean when i get in HTML assertion :
HTML Assertion : can't parse argument number:
Hi Dania, it basically means somewhere in your html its trying to parse String as a number. You can take more help from dev team.
issues.jenkins.io/browse/JENKINS-54596
@@RaghavPal Thank you
Hello Raghav, for HTML assertion i am only getting this error- HTML Assertion : can't parse argument number:
It's not throwing the value to put in threshold. How to test error threshold
Hi Sahiba, save in the file and check what is missing
@@RaghavPal Thank you so much sir, able to generate the log file and could see the warnings and errors.
Great tutorial.Nice explanation
Thanks for watching Rama
Really help full thanks
Most welcome Bhaskar
Billion Thanks, Raghav!
You're welcome Sai
Is the Jmeter any of version support to get the HTML assertion with code format with HTML 5 version?
Jayesh as mentioned here jmeter.apache.org/changes.html See Bug JDK-8031109 The fix is to use JDK9 b65 or later. I hope in next ver 3.4 this should be fixed once there is support on Java 9
Hi Raghav I am getting response code 200 and 301 for one URL# lifecharger.org,There should be only 200 OK,can you please explain why 301 response code came although 200 is there,so I am adding assertion with equals and or operations for passing test case (200 and 301)
Hi Venkat, pls try with https protocol and check again
@@RaghavPalcan you please post video how to use https protocol and I am using apache jmeter 5.3 version
Hi Venkat, you just need to put https in the Protocol field of Html Request Sampler
@@RaghavPalHi Raghav ,Still after giving the https protocol, getting 200 and 301 response codes for one API,which is not expected any setting need to be changed in jmeter?
Try with a diff application
Hi Raghav ..
Your videos are really suparb !! Thanks for sharing your knowledge 🙏
I am getting an error in HTML assertion --" can't parse argument numbers : can u pls help this one
Hi Prasanth, it may be expecting string there, Just check with the dev team
Beautiful explanation sir.
thanks Jeffrey
Bit confused on the Assertion sections on Assertion Response. Say, we put/add 200. This 200 means what? What we mean by 200. Is it 200 users, 200 seconds, 200 responses by single user or what. Could you please explain about 200 is equal to mean what?
Alok, 200 it the http status code received from the server. We have pre-defined http status codes based on the response from the server. 200 is success or OK.
So when we put 200 we are asserting that the server should send success response. In case we get any other code it should fail.
You can find the list here :
en.wikipedia.org/wiki/List_of_HTTP_status_codes
httpstatuses.com/
Thank you for the nice clarification and the http code list links. Great!
Great tutorials mate, keep up the good work!
Thanks for watching Temur
Excelente tutorial, muy bien explicado,
Gracias por ver
How can size very for static content ? In case of size assertion.
It can be due to resources and data exchanged, can be a minute difference
What is the difference betn RESPONSE ASSERTION & DURATION ASSERTION ?
Response assertion is on the response data that you get as a result. Duration assertion is to validate the time taken by the response
Thankuu@ - Raghav Pal
Hello Raghav - hello!! thank you for explaining this. If this can be used interchangeably for an http request then why does it show no errors for HTML assertion with XML option checked and why does it show errors for XML assertion for the same http request? Any inputs would be helpful
Hi Sheel, if you notice, while running the test with XML radio button checked in HTML assertion, there was error and warning threshold set. As the count of errors and warnings was below threshold, so it did not show any failures.
Alright! Thank you so much for the quick response. :) Great tutorials, really!
It was really JMeter performance tutorial for beginers
Hope it helped.
Hi Raghav, I am not able to add the value for the response assertion.
After clicking on add button, when I enter a value, entered value is not displayed.
Please help me
Hi Sai, this is strange, do you get any error message, Can try to restart JMeter and check
Hello sir, i have installed apache jmeter and trying to run the batch file but i m getting an error of "not able to fine java executable version" . have installed jdk 1.8
Hi Nida, have you also set environment variables for java. What do you get if you run command
java -version
javac -version
In case you need help can see this:
th-cam.com/video/FqpmH8MVO6A/w-d-xo.html
th-cam.com/video/NSvtis2fGlA/w-d-xo.html
I do not understand for what is exactly HTML Assertions.So this assertion shows the problems/errors from a site ? So if a site has problems and this assertion shows these errors how can we fix ?I really dont get it..or perhaps is not that.I would like to get a replay..I am kinda confused
Good work Raghav :) Helped a lot.
Glad to know this Avinash
HTTP Request
HTML Assertion : can't parse argument number:
XML Assertion : The markup in the document preceding the root element must be well-formed.
I got errors like. So, what should I do?
Yes, that is because there may be some syntax, formatting issues on the webpage, you can increase the threshold
Hello Sir, your videos where very helpful for me, thanks. Currently I wanted to know can we terminate entire test script if the response from one of the request is not as expected, problem is, there are many thread groups and each thread group has some amount of requests if one of them fails the script should terminate, I don't know how to do it.
Hi Ahmedi, this can help stackoverflow.com/questions/12580368/how-to-stop-thread-if-response-assertion-fails-in-jmeter
@@RaghavPal. entire script needs to stop bec there are multiple thread groups this will stop only one single thread group sir
Ok, I will need to check on this online
@@RaghavPal Hello Sir, Result Status Action Handler (post processor) works
Hello Raghav, thanks for the topic explained.
i tried with repsonse code equals 200 , but test is getting failed, I have to use contains as pattern matching rules.
any reason for this, I am using new version.
Hi Ankush, in the Pattern Matching Rules, what are the details you are providing. Pattern Matching Rules : this tell JMeter how it should interpret “Patterns to test”. There are different options:
Contains : This means “Patterns to test” is a Regular Expression that JMeter will use to see if Response field to test contains the pattern
Matches : This means “Patterns to test” is a Regular Expression that JMeter will use to see if Response field to test matches the pattern. So the pattern applies on the whole response
Equals : This means “Patterns to test” is a text that JMeter will compare with Response field to test. If different assertion will fail.
Substring : This means “Patterns to test” is a text that JMeter will search in Response field to test. If not found, assertion will fail. This is the default in JMeter.
The Not checkbox will apply a Negation on the previous rules, which will become:
Not contains
Not Matches
Not equals
Not substring
I am not getting the 'Assertion Result' option in the setup through right click... what could be the solution for this!!!1
Hi Ayushi, i hope you are adding this listener after adding response assertion component. Also ensure you are doing right click on the right component as shown in the video. If nothing works, you can try getting a diff version of JMeter and check
Hi Sir, I am beginner on jmeter, will you guide me please that how we can login our virtual user to our web application ? and if we login the user then can we login in gain to test the load ti me of other pages of our we application ?
waiting for your answer !
Mehran, i have posted links in you other comment. Please check that. You can see JMeter playlists here
th-cam.com/play/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c.html
Hi Raghav,
In above video,when i add 5 users and one server url/ip ,this means that all the users are using the same server url to test ,then how come the duration/response code for same page with different users is coming differently??
Can u pls explain this.
Hi Nidhi, this is exactly what we test with Jmeter. When a service (e.g. website) is being used by multiple users, how does it respond in terms of response time, availability etc.
So in case the server is not able to take enough load, it may not server some of the requests and can through service not available, or similar response codes.
Thankyou Raghav for this expanation.
Hey Raghav, Amazing series. Kudos!
A quick Q. While asserting, I am not seeing the expected and actual values in the message for Response Assertion (Duration Assertion is giving correct message w both expected and actual values). For Response Assertion the only thing I am seeing is:
Under View Results Tree:
Assertion error: false
Assertion failure: true
Assertion failure message: 2
Under Assertion Results:
MyHomePage
Response Assertion : 2
What settings do I need to update so that I can see the values as well? I am running the latest Apache Jmeter 4.0.
Hi, have you put anything in the patterns to test
Pattern Matching Rule = Equals
Patterns to Test = 201
(Following the instructions in the tutorial)
If you have provided pattern, Ideally it should show the expected and actual value. I can look at the jmx
Hi Raghav,I am getting the two response codes 301 and 200 for any URL in HTTP Response I have checked Follow Redirects check box,please tell me whether 301 is any issue and another doubt is for one URL the response code should be only one right ,I.e success 200,
But for me 2 response codes I am able to see,as part of assertions I have put both 200 or 301 for green result, please clarify in this
Hello Raghav,
Through JMeter, how can we make sure our load test results are successful? I mean is there any way where we can compare actual and expected response structures?
Hi Rijo, yes Assertions are exactly for that. You can try diff assertions based on your need. You will also need to see what are your requests, are they api or web. Based on that assertions can be used. Can also do custom scripting e.g.
www.blazemeter.com/blog/the-easiest-way-to-compare-rest-api-responses-using-jmeter/
When we start running the test on jmeter..by default which browser will be used to run ?
Hi Sudarshan, jmeter is for server side test analysis. So browser (client side) is not relevant here.
Hi Raghav here in html assertion u selected browse then it shows tools but for me it is not displaying.can you plz explain one more time
Hi Anu, May be some minor diff in latest ver. I will check
Amazingly explained....kudos to you Sir :)
Thanks a ton Vishal
Hi Raghav, thanks for the videos. One question here, what is the difference between the XML Assertion and the XML format type in HTML Assertion. Here, when you selected HTML assertion but type as XML and ran the test, there were no errors, even though the response is in HTML?
Thanks once again.
Hi Aman, The HTML Assertion checks that the response HTML syntax is a well-formed HTML/XHTML/XML document. It checks against the standard compliant
Hi Raghav,
Thanks for this video.It is really informative covers a lot of type of assertions.
I have a question.Why the response size differs
? Ideally it should be same as every time we get a same response and the same response body when we hit the same server.
Hi Somya, there may be some minor diff due to duration, packets, etc. Ideally it should be the same
Man, your videos are absolutely good, and you are good to explain everything. I just have one suggestion and it is that you should clean your mouth from saliva to avoid doing those annoying sounds, it's from communication perspective. You know if you take it or not. Keep up the good work, and thank you.
Thanks for the wishes and feedback Yair, feedback taken.
Very Informative. Great
thanks for watching Sadaan
Hi Raghav..Can you please let me know how to assert entire JSON Object which we get in API response.Because When I try to assert the Response JSON it is throwing error for me.Could you please help me on this.
Thanks in advance,
Raghu, you can use JSR223 Assertion and add script to it for validating JSON Object.
Hi Raghav, I have few questions on performane testing
Hi Maria, pls tell me
Awesome video,anyone can easily understand this.Thank you....
Thanks for watching Aditya
Automation Step by Step - Raghav Pal how can i do load test for mobile applications??
Hi Aditya, you can find the video in Beginner playlist
th-cam.com/channels/Tt7pyY-o0eltq14glaG5dg.htmlplaylists?shelf_id=4&view=50&sort=dd
Automation Step by Step - Raghav Pal thank you a lot.
when i paste url lifecharger.org and the path /how-to-plan-right when i given this i got wrong red mark so how can i do am using windows 10
Hi Madivada, I will need to see the logs to troubleshoot. Pls check again with the video and show me the logs if it does not work
I think you should remove the / in how-to-plan-right