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.
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.
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.
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.
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
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
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
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 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/
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
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
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 ?
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. One simple doubt. Duration assertion was little bit confusing. when you changed it 2000ms how the duration came under 2000ms and passed? Is it because of internet speed?
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/
Hello Raghav, This video is really good and well explained. I just want to ask you one question, I have gone through this video and I got the HTML assertion result successfully into the document, and when I checked that then the code I found "InputStream: Document content looks like HTML 4.01 Transitional" into the document. Is the Jmeter any of version support to get the HTML assertion with code format with HTML 5 version supported??? Expecting a response back soon, if you can share your comment on it to get the more knowledge on it. Thanks.
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... Thank you so much for these tutorials. It helped a lot for my official work as I'm a beginner in JMeter One doubt is What is the difference between XML Assertion and XML Format in HTTP Assertion.. Please reply...
Hi Gayathri, XML assertion typically checks for a valid xml format of the response. In HTML assertion, you check the response have correct HTML syntax and you have option for HTML, XHTML, XML. So you can use any of these for XML. HTML provides few other options to set threshold values
Automation Step by Step - Raghav Pal 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
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 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
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.
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 .. 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
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.. 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 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 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, 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/
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 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 ruclips.net/p/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c
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, thanks for your message. Google analytics will show the general stats from the server, Will not tell you if the request is coming from JMeter. In case we can drill down to get ip etc, I am not sure on that.
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
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
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
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 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 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.
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
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?
Automation Step-by-Step - Raghav Pal - Thanks for your reply. I actually wanted to validate JSON response, So used (JSON Path Assertion) plugin to do it and it worked. Is there any other way in which we can validate?
Hi Raghav and Karthik i want to use json assertion but Json plugins is now deprecated Can you please tell me how to verify specific json response in JSON Asserion
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, Great learning. Thank you. Could you please help me as when I save the file then it gives me with the extension name is .jmx (not .txt). How do I save it as txt file. Do I need to save separately every assertion. Please Advise.
Hi Alok, are you referring to HTML assertion section? If you give the location along with the file with .txt extension it should save as it is. jmx is the extension for JMeter project file.
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, what is the difference between xml assertion and selecting XML from HTML assertion , Both does the same thing or different? if different than how?
hi Meghana, you can use these interchangeably for http requests, most of the cases . XML assertion is present standalone as there can be some non-http responses (like webservices) where we want to put xml assertions.
hi..need one more clarification..when you use html assertion-->xml then no error get found ..but on the same run when you use separate XML assertion its shows error..please elaborate..
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,
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: ruclips.net/video/FqpmH8MVO6A/видео.html ruclips.net/video/NSvtis2fGlA/видео.html
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.
veriosn 5.0 2 HTTP request in "View Result Tree " ie HTTP Request -0 and HTTP Request -0 , which request to look for , both have different response code ? Anyway good job ..keep it up...
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
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
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.
Your tutorials are just great! Looking forward to learning more from you!
Awesome, thank you Ángel
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
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.
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.
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
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.
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
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
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 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 Raghav,my question is,Will we check all format(HTML,XHTML,XML) for same test?
Not necessary, basically its as per your needs and requirements. In most cases the assertions required are:
Response status
Time (SLA)
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
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 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
Hi Sir,
Do you teach about load runner also similar to jmeter..?
If yes, please add sessions
Yes will do Madhuri
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
Very good and clear tutorials! Thank you and well done Raghav!
Thanks for watching Ross
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
Awesome explanation Raghav🎉
Glad you liked it..
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. One simple doubt. Duration assertion was little bit confusing. when you changed it 2000ms how the duration came under 2000ms and passed? Is it because of internet speed?
Yes Avinash, so that is correct. It should fail if the duration is more that 2000ms
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
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/
thanks for everything
please don't be bored for share your knowledge
So nice of you
Hello Raghav,
This video is really good and well explained.
I just want to ask you one question, I have gone through this video and I got the HTML assertion result successfully into the document, and when I checked that then the code I found "InputStream: Document content looks like HTML 4.01 Transitional" into the document. Is the Jmeter any of version support to get the HTML assertion with code format with HTML 5 version supported???
Expecting a response back soon, if you can share your comment on it to get the more knowledge on it.
Thanks.
Hi Jayesh, View Results Tree may fail to display some HTML code under HTML renderer, see Bug 54586. jmeter.apache.org/changes.html
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
Hi Raghav... Thank you so much for these tutorials. It helped a lot for my official work as I'm a beginner in JMeter
One doubt is What is the difference between XML Assertion and XML Format in HTTP Assertion.. Please reply...
Hi Gayathri, XML assertion typically checks for a valid xml format of the response. In HTML assertion, you check the response have correct HTML syntax and you have option for HTML, XHTML, XML. So you can use any of these for XML. HTML provides few other options to set threshold values
Okay thanks for clarification
Automation Step by Step - Raghav Pal 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
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, 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
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
Wonderful course. Thank you very much mere friend.
Most welcome
really helpful ! Thank Raghav Pal !
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
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
great tutorial, nice work bro. keep it up
Very good and very clear everything. Great job dear.
Thanks for watching Nitin.
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 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
Thanks so much Raghav, very helpful Jmeter video series, learning a lot from you!
Thanks for watching Michael
Very simple and understandable way u told...Good
Thanks for watching Harish
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
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
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, 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/
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,
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/
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
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
ruclips.net/p/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c
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.
Hi Raghav, thank you for your great tutorials. I am learning a lot thanks to your help! Is there a way to see the JMeter requests in Google Analytics?
Hi, thanks for your message. Google analytics will show the general stats from the server, Will not tell you if the request is coming from JMeter. In case we can drill down to get ip etc, I am not sure on that.
Thanks Raghav. nice tutorial.
Most welcome Gurudatta
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
Well explained concepts sir !
Thanks Aishwarya
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
Thank you Raghav, great job!!
Most welcome!
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
very helpful for a first timer!
Glad it was helpful!
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!
Hi Raghav, I have few questions on performane testing
Hi Maria, pls tell me
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.
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
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..
Just perfect - simple and understandable)) thanks a lot
You are welcome Oksana
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
Great tutorials mate, keep up the good work!
Thanks for watching Temur
Billion Thanks, Raghav!
You're welcome Sai
Thank you so much, bro. Nice work
Thanks Sathish
Gud explanation.. really good to understand with simple english
Hi Raghav, you're awesome teacher !!! keep it up !!!
Thanks for your message Ravi.
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
Keep u the good work, awesome tutorial
Thank you Rajesh
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,
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
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
Hi Raghav video is very informative. Just wanted to know more about Response Assertion (JMeter Variable)? Can you please guide me.
Sure Karthik, let me know if there is something specific you are looking at.
Automation Step-by-Step - Raghav Pal - Thanks for your reply. I actually wanted to validate JSON response, So used (JSON Path Assertion) plugin to do it and it worked. Is there any other way in which we can validate?
I believe if you have a direct plugin. that's the easiest and best way
Hi Raghav and Karthik
i want to use json assertion but Json plugins is now deprecated
Can you please tell me how to verify specific json response in JSON Asserion
Good work Raghav :) Helped a lot.
Glad to know this Avinash
Very Well explained Great learning .I loved it!!
Thanks Rashmi
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!
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?
Hi, Great learning. Thank you. Could you please help me as when I save the file then it gives me with the extension name is .jmx (not .txt). How do I save it as txt file. Do I need to save separately every assertion. Please Advise.
Hi Alok, are you referring to HTML assertion section? If you give the location along with the file with .txt extension it should save as it is.
jmx is the extension for JMeter project file.
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, what is the difference between xml assertion and selecting XML from HTML assertion , Both does the same thing or different? if different than how?
hi Meghana, you can use these interchangeably for http requests, most of the cases . XML assertion is present standalone as there can be some non-http responses (like webservices) where we want to put xml assertions.
Thanks Raghav..:-)
hi..need one more clarification..when you use html assertion-->xml then no error get found ..but on the same run when you use separate XML assertion its shows error..please elaborate..
Amazingly explained....kudos to you Sir :)
Thanks a ton Vishal
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.
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:
ruclips.net/video/FqpmH8MVO6A/видео.html
ruclips.net/video/NSvtis2fGlA/видео.html
Beautiful explanation sir.
thanks Jeffrey
Great tutorial.Nice explanation
Thanks for watching Rama
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
Really help full thanks
Most welcome Bhaskar
For JMeter coding is compulsory ???
Not compulsory, you can do most of the functions without coding, but it can always help
Dear Raghav,
Can you please provide detail tutorial on XPath assertion?
sure Maneka, I will add it in my list.
I want response code 200 but i got response code 400 in my response how can i handle this errors. Please suggest me
Pls check your request, can use other sample request
veriosn 5.0 2 HTTP request in "View Result Tree " ie HTTP Request -0 and HTTP Request -0 , which request to look for , both have different response code ?
Anyway good job ..keep it up...
Hi Dinesh, the difference might be due to redirection. This should be okay as long as you do not get any error code