Home > Enterprise >  JUnit or JMeter for a WebApp user creation and Login using session cookies test scenario?
JUnit or JMeter for a WebApp user creation and Login using session cookies test scenario?

Time:11-09

I would like to ask which would be the best tool to test 1. (multiple) user creations and 2. login using session cookies in a WebApp?

Do both JUnit and JMeter support such testing?

Regards.

CodePudding user response:

  1. JUnit is an XUnit testing framework, it supports everything you write in Java, however you will need to implement the logic, concurrency, results analysis, etc. yourself, JUnit only provides API to configure and run tests and to define pass/fail criteria
  2. JMeter is a multi-protocol load testing tool, concurrency, metrics and results you have out of the box, for web applications load testing you have HTTP Request sampler and the cookies are automatically handled using HTTP Cookie Manager (it's possible to add cookies manually as well)

So if you need to setup everything quickly JMeter should fit your needs as writing a browser-like HTTP client will take immense effort and time.

More information:

  • Related