Is it possible to do Functional Testing w/ JMeter - Invalid input test and required field input test?



  • I need to know if it's possible to do functional testing (frontend or backend) with JMeter only - w/o 3rd party software. I need to be able to test required fields and bad data input in a form.



  • You cannot test frontend using JMeter mainly due to its main constraint, as per JMeter project main page:

    JMeter is not a browser, it works at protocol level. As far as web-services and remote services are concerned, JMeter looks like a browser (or rather, multiple browsers); however JMeter does not perform all the actions supported by browsers. In particular, JMeter does not execute the Javascript found in HTML pages. Nor does it render the HTML pages as a browser does (it's possible to view the response as HTML etc., but the timings are not included in any samples, and only one sample in one thread is ever displayed at a time).

    So if JavaScript prevents you from entering letters into the field which accepts only numbers - this is something you cannot test using JMeter.

    However you can easily send invalid data inside a HTTP Request and then use Response Assertion to ensure that the response contains expected value(s) or vice versa, doesn't contain something which it shouldn't be containing. You can also mark HTTP status codes above 400 as successful by ticking Ignore Status box



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2