JMeter Beginner Tutorial 3 - How to use Assertions

Поделиться
HTML-код
  • Опубликовано: 6 ноя 2024

Комментарии • 429

  • @RaghavPal
    @RaghavPal  5 лет назад +3

    Free online courses - automationstepbystep.com/online-courses/

  • @shobhitsrivastava4496
    @shobhitsrivastava4496 3 года назад +3

    This is one of the best Automation and Testing tutorial based youtube channel, God bless you for making such quality content!

    • @RaghavPal
      @RaghavPal  3 года назад

      Thanks for the kind words Shobhit

  • @puneetrustagi4675
    @puneetrustagi4675 4 года назад +6

    Great Content ! Crystal Clear Explanations in all the Tutorials..
    Thanks for all the hardwork done for creating these videos Raghav..

    • @RaghavPal
      @RaghavPal  4 года назад

      You're very welcome Puneet

  • @amitjha9156
    @amitjha9156 4 года назад +3

    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..

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Happy to know this

  • @sb7355
    @sb7355 3 года назад +2

    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.

  • @aryanahamed2218
    @aryanahamed2218 2 дня назад +1

    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?

    • @RaghavPal
      @RaghavPal  День назад

      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.

  • @angelcollazo2636
    @angelcollazo2636 3 года назад +2

    Your tutorials are just great! Looking forward to learning more from you!

    • @RaghavPal
      @RaghavPal  3 года назад

      Awesome, thank you Ángel

  • @EnriqueOlavarria
    @EnriqueOlavarria 5 лет назад +2

    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!

  • @somasekharpatil4665
    @somasekharpatil4665 7 лет назад

    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.

    • @RaghavPal
      @RaghavPal  7 лет назад

      Hi Somasekhar, it will work on the ip that is accessible. You can try with ip or domain name.

  • @asr1234asr
    @asr1234asr 6 лет назад +1

    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.

    • @RaghavPal
      @RaghavPal  6 лет назад

      I am glad to know this Anurag.

  • @pcginfo7270
    @pcginfo7270 6 лет назад

    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.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks a lot for your message

  • @mohamedsannoh9427
    @mohamedsannoh9427 7 лет назад

    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.)

    • @RaghavPal
      @RaghavPal  7 лет назад

      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

    • @mohamedsannoh9427
      @mohamedsannoh9427 7 лет назад +1

      Thanks a lot Raghav.

  • @hariprasadyadavali2524
    @hariprasadyadavali2524 5 лет назад +1

    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.

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Hari, Glad to know this. You can discuss on the error and warnings with developer

    • @hariprasadyadavali2524
      @hariprasadyadavali2524 5 лет назад

      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.

    • @RaghavPal
      @RaghavPal  5 лет назад

      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

  • @vinoth1012
    @vinoth1012 5 лет назад +1

    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??

    • @RaghavPal
      @RaghavPal  5 лет назад +1

      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

  • @olaola5333
    @olaola5333 5 лет назад

    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

    • @RaghavPal
      @RaghavPal  5 лет назад

      Happy to see this. Thanks

  • @akhileshbhoir8729
    @akhileshbhoir8729 5 лет назад

    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

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Akhilesh, these are listeners. Like results of your JMeter tests, There are multiple listeners available. Check full series here - automationstepbystep.com/online-courses/

  • @sanjaybenjwal2075
    @sanjaybenjwal2075 4 года назад

    Hi Raghav,my question is,Will we check all format(HTML,XHTML,XML) for same test?

    • @RaghavPal
      @RaghavPal  4 года назад

      Not necessary, basically its as per your needs and requirements. In most cases the assertions required are:
      Response status
      Time (SLA)

  • @bhallaskitchen
    @bhallaskitchen 6 лет назад

    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

    • @RaghavPal
      @RaghavPal  6 лет назад

      There can be multiple reasons, check this - sqa.stackexchange.com/questions/5986/jmeters-threads-got-stuck-and-never-end

  • @ahmadelkomey2539
    @ahmadelkomey2539 6 лет назад

    Dude! You are the first Indian I enjoyed listening to his tutorials! Keep it up (Y) :)

    • @RaghavPal
      @RaghavPal  6 лет назад

      I am glad to know this Ahmad. Thanks

  • @bugnay9314
    @bugnay9314 2 года назад

    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

    • @RaghavPal
      @RaghavPal  2 года назад

      Can use Response Assertion

  • @madhuridurgam4928
    @madhuridurgam4928 9 месяцев назад

    Hi Sir,
    Do you teach about load runner also similar to jmeter..?
    If yes, please add sessions

    • @RaghavPal
      @RaghavPal  9 месяцев назад

      Yes will do Madhuri

  • @anuqt2210
    @anuqt2210 4 года назад

    Hi Raghav you have done a great job...really it was helped alot in my job..thank you sooo much...

    • @RaghavPal
      @RaghavPal  4 года назад

      So happy to know this Anu, All the best

  • @rossmacdonald5282
    @rossmacdonald5282 6 лет назад

    Very good and clear tutorials! Thank you and well done Raghav!

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for watching Ross

  • @itsrohit30
    @itsrohit30 4 года назад +1

    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 ?

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Rohit, I will check the setup again

  • @chinnagurusamykaruppiah9487
    @chinnagurusamykaruppiah9487 8 месяцев назад

    Awesome explanation Raghav🎉

    • @RaghavPal
      @RaghavPal  8 месяцев назад

      Glad you liked it..

  • @neamafouad57
    @neamafouad57 7 лет назад

    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

    • @RaghavPal
      @RaghavPal  7 лет назад +1

      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

    • @neamafouad57
      @neamafouad57 7 лет назад +1

      Thank you!

  • @avinashan823
    @avinashan823 6 лет назад

    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?

    • @RaghavPal
      @RaghavPal  6 лет назад

      Yes Avinash, so that is correct. It should fail if the duration is more that 2000ms

  • @SrikarChandraChamarthy-r3o
    @SrikarChandraChamarthy-r3o 3 месяца назад +1

    I have a doubt why do you only use 200 in the response assertion is there any specific reason?

    • @RaghavPal
      @RaghavPal  3 месяца назад

      Yes, HTTP status code 200 means “OK” and indicates that the request has been successfully processed
      www.w3schools.com/tags/ref_httpmessages.asp

  • @knowledge2654
    @knowledge2654 4 года назад

    any programming language required as prerequisite..I m planning to pursue my career in performance testing .

    • @RaghavPal
      @RaghavPal  4 года назад

      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/

  • @tioputrasalis9807
    @tioputrasalis9807 4 года назад

    thanks for everything
    please don't be bored for share your knowledge

  • @vaghelajayesh9291
    @vaghelajayesh9291 7 лет назад

    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.

    • @RaghavPal
      @RaghavPal  7 лет назад

      Hi Jayesh, View Results Tree may fail to display some HTML code under HTML renderer, see Bug 54586. jmeter.apache.org/changes.html

  • @nikitamathur4086
    @nikitamathur4086 4 года назад +1

    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
      @RaghavPal  4 года назад

      Hi Nikita, where exactly did you see. In the lates ver, I could not find these field in HTML assertion.

    • @nikitamathur4086
      @nikitamathur4086 4 года назад

      ​@@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 :)

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Okay can you send me your request url and html assertion settings to check

    • @nikitamathur4086
      @nikitamathur4086 4 года назад

      Sure Raghav. I'll add the details here

  • @gayathrich8261
    @gayathrich8261 6 лет назад

    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...

    • @RaghavPal
      @RaghavPal  6 лет назад

      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

    • @gayathrich8261
      @gayathrich8261 6 лет назад

      Okay thanks for clarification

    • @sheelstera
      @sheelstera 6 лет назад

      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

  • @ankushwankhade3804
    @ankushwankhade3804 4 года назад

    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.

    • @RaghavPal
      @RaghavPal  4 года назад +1

      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

  • @MuhammadNadeem-ef3dd
    @MuhammadNadeem-ef3dd 2 года назад

    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?

    • @RaghavPal
      @RaghavPal  2 года назад +1

      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

  • @strykr_23
    @strykr_23 3 года назад

    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.

    • @RaghavPal
      @RaghavPal  3 года назад

      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

  • @theentertainer8062
    @theentertainer8062 2 года назад

    Wonderful course. Thank you very much mere friend.

  • @giaptiennbros
    @giaptiennbros 7 лет назад +1

    really helpful ! Thank Raghav Pal !

  • @bapusoumya1
    @bapusoumya1 6 лет назад

    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.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Hi Somya, there may be some minor diff due to duration, packets, etc. Ideally it should be the same

  • @fish821004
    @fish821004 4 года назад

    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 😭

  • @sameerpawar3909
    @sameerpawar3909 7 лет назад +2

    great tutorial, nice work bro. keep it up

  • @nitin123kesarwani
    @nitin123kesarwani 6 лет назад

    Very good and very clear everything. Great job dear.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for watching Nitin.

  • @huymanhle3066
    @huymanhle3066 4 года назад +1

    Thank you so much.
    And can you add subtitles in videos, so we can understand more clearly, that will be great.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Huy, some videos do not have subtitles. I will put subtitles soon

  • @prasanth4u761
    @prasanth4u761 3 года назад

    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

    • @RaghavPal
      @RaghavPal  3 года назад +1

      Hi Prasanth, it may be expecting string there, Just check with the dev team

  • @Michael-ed5fs
    @Michael-ed5fs 6 лет назад

    Thanks so much Raghav, very helpful Jmeter video series, learning a lot from you!

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for watching Michael

  • @HarishKumar-df4od
    @HarishKumar-df4od 4 года назад

    Very simple and understandable way u told...Good

    • @RaghavPal
      @RaghavPal  4 года назад

      Thanks for watching Harish

  • @karthiks9600
    @karthiks9600 2 года назад

    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?

    • @RaghavPal
      @RaghavPal  2 года назад

      Yes, in general success or failure is based on general success codes like 200, 201, we can use assertions for other detailed checks

  • @cerenaadonis
    @cerenaadonis 7 лет назад

    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?

    • @RaghavPal
      @RaghavPal  7 лет назад +1

      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.

    • @cerenaadonis
      @cerenaadonis 7 лет назад

      Hi, that would be helpful, please post it

  • @ishallnotbenamed0810
    @ishallnotbenamed0810 5 лет назад

    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.

    • @RaghavPal
      @RaghavPal  5 лет назад

      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

  • @mochammadisa4278
    @mochammadisa4278 7 лет назад

    Hi Raghav, is it possible to use xml schema to validate againts xml response ?

    • @RaghavPal
      @RaghavPal  7 лет назад

      Hi Isa, you can use xml schema assertion. This can help:
      jmeterworld.wordpress.com/2008/12/29/xml-schema-assertions-jmeter-tutorial/

  • @daniaalkhalil8355
    @daniaalkhalil8355 3 года назад

    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:

    • @RaghavPal
      @RaghavPal  3 года назад

      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

    • @daniaalkhalil8355
      @daniaalkhalil8355 3 года назад

      @@RaghavPal Thank you

  • @rijophilip737
    @rijophilip737 5 лет назад

    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?

    • @RaghavPal
      @RaghavPal  5 лет назад

      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/

  • @ahmedisultana751
    @ahmedisultana751 4 года назад

    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.

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Ahmedi, this can help stackoverflow.com/questions/12580368/how-to-stop-thread-if-response-assertion-fails-in-jmeter

    • @ahmedisultana751
      @ahmedisultana751 4 года назад

      @@RaghavPal. entire script needs to stop bec there are multiple thread groups this will stop only one single thread group sir

    • @RaghavPal
      @RaghavPal  4 года назад

      Ok, I will need to check on this online

    • @ahmedisultana751
      @ahmedisultana751 4 года назад

      @@RaghavPal Hello Sir, Result Status Action Handler (post processor) works

  • @mehranshah3707
    @mehranshah3707 7 лет назад

    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 !

    • @RaghavPal
      @RaghavPal  7 лет назад

      Mehran, i have posted links in you other comment. Please check that. You can see JMeter playlists here
      ruclips.net/p/PLhW3qG5bs-L-zox1h3eIL7CZh5zJmci4c

  • @yairvelasco1351
    @yairvelasco1351 6 лет назад +1

    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.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for the wishes and feedback Yair, feedback taken.

  • @faboste61
    @faboste61 5 лет назад

    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?

    • @RaghavPal
      @RaghavPal  5 лет назад

      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.

  • @GurudattaPraharaj
    @GurudattaPraharaj 4 года назад

    Thanks Raghav. nice tutorial.

    • @RaghavPal
      @RaghavPal  4 года назад

      Most welcome Gurudatta

  • @Exploitmenot
    @Exploitmenot 7 лет назад

    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

  • @aishwaryakamaraj3756
    @aishwaryakamaraj3756 Год назад

    Well explained concepts sir !

  • @saikiranpalugula802
    @saikiranpalugula802 4 года назад

    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

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Sai, this is strange, do you get any error message, Can try to restart JMeter and check

  • @r9k9
    @r9k9 3 года назад

    Thank you Raghav, great job!!

  • @vaghelajayesh9291
    @vaghelajayesh9291 7 лет назад

    Is the Jmeter any of version support to get the HTML assertion with code format with HTML 5 version?

    • @RaghavPal
      @RaghavPal  7 лет назад

      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

  • @pixiecat6109
    @pixiecat6109 4 года назад

    very helpful for a first timer!

    • @RaghavPal
      @RaghavPal  4 года назад

      Glad it was helpful!

  • @knownothing1277
    @knownothing1277 7 лет назад

    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?

    • @RaghavPal
      @RaghavPal  7 лет назад

      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/

    • @knownothing1277
      @knownothing1277 7 лет назад +1

      Thank you for the nice clarification and the http code list links. Great!

  • @mariathomas2384
    @mariathomas2384 4 года назад

    Hi Raghav, I have few questions on performane testing

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Maria, pls tell me

  • @sudarshanraju1276
    @sudarshanraju1276 7 лет назад

    When we start running the test on jmeter..by default which browser will be used to run ?

    • @RaghavPal
      @RaghavPal  7 лет назад

      Hi Sudarshan, jmeter is for server side test analysis. So browser (client side) is not relevant here.

  • @pawansharma2162
    @pawansharma2162 4 года назад

    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..

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Hi Pawan, I am yet to explore on this

  • @manekagayomi9079
    @manekagayomi9079 5 лет назад

    Hi Raghav,
    Can you please tell me how to get the character length of the response from the jmeter?

    • @RaghavPal
      @RaghavPal  5 лет назад

      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.

    • @manekagayomi9079
      @manekagayomi9079 5 лет назад +1

      @@RaghavPal Thank you Raghav I'll try to do..

  • @OksanaLiakhova
    @OksanaLiakhova Год назад

    Just perfect - simple and understandable)) thanks a lot

  • @nehadongre7659
    @nehadongre7659 6 лет назад

    What is the difference betn RESPONSE ASSERTION & DURATION ASSERTION ?

    • @RaghavPal
      @RaghavPal  6 лет назад

      Response assertion is on the response data that you get as a result. Duration assertion is to validate the time taken by the response

    • @nehadongre7659
      @nehadongre7659 6 лет назад +1

      Thankuu@ - Raghav Pal

  • @TemuriTofuria-a
    @TemuriTofuria-a 4 года назад

    Great tutorials mate, keep up the good work!

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Thanks for watching Temur

  • @sainiranjan40
    @sainiranjan40 5 лет назад

    Billion Thanks, Raghav!

  • @sathish3891
    @sathish3891 3 года назад

    Thank you so much, bro. Nice work

  • @clipseteam8622
    @clipseteam8622 7 лет назад

    Gud explanation.. really good to understand with simple english

  • @Sunstar0606
    @Sunstar0606 6 лет назад

    Hi Raghav, you're awesome teacher !!! keep it up !!!

    • @RaghavPal
      @RaghavPal  6 лет назад

      Thanks for your message Ravi.

  • @Sportstalk96
    @Sportstalk96 3 года назад

    Can Some Help me out fro this Error (html assertion can't parse argument number). When trying HTML Assertion in Jmeter.

    • @RaghavPal
      @RaghavPal  3 года назад +1

      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

  • @rajeshkannan6681
    @rajeshkannan6681 4 года назад

    Keep u the good work, awesome tutorial

  • @vikky020
    @vikky020 6 лет назад

    Thanks, can you plz show how to compare XML data with database value

    • @RaghavPal
      @RaghavPal  6 лет назад

      not created yet, will check

    • @vikky020
      @vikky020 6 лет назад +1

      Automation Step by Step - Raghav Thank you , it would be really helpfull of you create one and explain,

  • @anuqt2210
    @anuqt2210 4 года назад

    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

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Anu, May be some minor diff in latest ver. I will check

  • @rosadepari7298
    @rosadepari7298 3 года назад

    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?

    • @RaghavPal
      @RaghavPal  3 года назад

      Yes, that is because there may be some syntax, formatting issues on the webpage, you can increase the threshold

  • @kartoz38
    @kartoz38 6 лет назад

    Hi Raghav video is very informative. Just wanted to know more about Response Assertion (JMeter Variable)? Can you please guide me.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Sure Karthik, let me know if there is something specific you are looking at.

    • @kartoz38
      @kartoz38 6 лет назад

      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?

    • @RaghavPal
      @RaghavPal  6 лет назад

      I believe if you have a direct plugin. that's the easiest and best way

    • @rupeshgurjarbhavsar7564
      @rupeshgurjarbhavsar7564 6 лет назад

      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

  • @avinashan823
    @avinashan823 6 лет назад

    Good work Raghav :) Helped a lot.

    • @RaghavPal
      @RaghavPal  6 лет назад

      Glad to know this Avinash

  • @rashmi12sin
    @rashmi12sin 7 лет назад

    Very Well explained Great learning .I loved it!!

  • @sheelstera
    @sheelstera 6 лет назад

    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

    • @RaghavPal
      @RaghavPal  6 лет назад

      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.

    • @sheelstera
      @sheelstera 6 лет назад +1

      Alright! Thank you so much for the quick response. :) Great tutorials, really!

  • @laralara7822
    @laralara7822 4 года назад

    Hello Raghav @13:55 the Tools popup box did you have to download that separately, because I can’t open my save tests

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Iara, that should come when you click browse

    • @laralara7822
      @laralara7822 4 года назад

      Automation Step by Step - Raghav Pal mine is not showing tools, is there a way I can send you pictures of it ?

    • @RaghavPal
      @RaghavPal  4 года назад

      Sure can upload online and send me link - imgbb.com/upload

    • @laralara7822
      @laralara7822 4 года назад

      Automation Step by Step - Raghav Pal
      I have upload the pictures

    • @laralara7822
      @laralara7822 4 года назад

      Hello
      Did you see my upload?

  • @knownothing1277
    @knownothing1277 7 лет назад

    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.

    • @RaghavPal
      @RaghavPal  7 лет назад

      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.

  • @nidhishetty9732
    @nidhishetty9732 6 лет назад

    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.

    • @RaghavPal
      @RaghavPal  6 лет назад

      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.

    • @nidhishetty9732
      @nidhishetty9732 6 лет назад +1

      Thankyou Raghav for this expanation.

  • @meghnagandhi24
    @meghnagandhi24 8 лет назад +3

    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?

    • @RaghavPal
      @RaghavPal  8 лет назад +3

      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.

    • @meghnagandhi24
      @meghnagandhi24 8 лет назад

      Thanks Raghav..:-)

    • @Abhijit5587
      @Abhijit5587 7 лет назад +2

      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..

  • @vishalmeerut0508
    @vishalmeerut0508 4 года назад

    Amazingly explained....kudos to you Sir :)

    • @RaghavPal
      @RaghavPal  4 года назад +1

      Thanks a ton Vishal

  • @raghuram7893
    @raghuram7893 8 лет назад

    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,

    • @RaghavPal
      @RaghavPal  8 лет назад

      Raghu, you can use JSR223 Assertion and add script to it for validating JSON Object.

  • @nidamirza3955
    @nidamirza3955 7 лет назад

    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

    • @RaghavPal
      @RaghavPal  7 лет назад

      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

  • @JeffreyMyersII
    @JeffreyMyersII 6 лет назад

    Beautiful explanation sir.

  • @ramamohan1622
    @ramamohan1622 5 лет назад

    Great tutorial.Nice explanation

    • @RaghavPal
      @RaghavPal  5 лет назад

      Thanks for watching Rama

  • @dailyenglishphrases461
    @dailyenglishphrases461 4 года назад

    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 ?

    • @RaghavPal
      @RaghavPal  4 года назад

      Hi Taha, should be fine

  • @kshipra4504
    @kshipra4504 4 года назад

    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.

    • @RaghavPal
      @RaghavPal  4 года назад

      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

    • @kshipra4504
      @kshipra4504 4 года назад

      @@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?

    • @RaghavPal
      @RaghavPal  4 года назад

      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.

    • @kshipra4504
      @kshipra4504 4 года назад

      @@RaghavPal Thanks Raghav! I am able to save the HTML assertion file with .txt extension in Jmeter itself and see the results in it

  • @bhaskarvar6149
    @bhaskarvar6149 2 года назад

    Really help full thanks

    • @RaghavPal
      @RaghavPal  2 года назад

      Most welcome Bhaskar

  • @jaideeppatwa5214
    @jaideeppatwa5214 6 лет назад

    For JMeter coding is compulsory ???

    • @RaghavPal
      @RaghavPal  6 лет назад

      Not compulsory, you can do most of the functions without coding, but it can always help

  • @manekagayomi9079
    @manekagayomi9079 6 лет назад

    Dear Raghav,
    Can you please provide detail tutorial on XPath assertion?

    • @RaghavPal
      @RaghavPal  6 лет назад

      sure Maneka, I will add it in my list.

  • @bhavyasreeuppuluri4493
    @bhavyasreeuppuluri4493 2 года назад

    I want response code 200 but i got response code 400 in my response how can i handle this errors. Please suggest me

    • @RaghavPal
      @RaghavPal  2 года назад

      Pls check your request, can use other sample request

  • @Bell4Fun
    @Bell4Fun 5 лет назад +1

    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...

    • @RaghavPal
      @RaghavPal  5 лет назад

      Hi Dinesh, the difference might be due to redirection. This should be okay as long as you do not get any error code