用于 WebApp 用户创建和登录的 JUnit 或 JMeter 使用会话 cookie 测试场景?

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

我想问一下哪个是测试 1.(多个)用户创建和 2. 在 WebApp 中使用会话 cookie 登录的最佳工具?

JUnit 和 JMeter 都支持这样的测试吗?

  1. JUnit是一个XUnit testing framework,它支持你在Java中编写的所有内容,但是你需要自己实现逻辑、并发、结果分析等,JUnit只提供[=32] =] 配置和 运行 测试并定义 pass/fail 标准
  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(也可以手动添加 cookie)

因此,如果您需要快速设置所有内容,JMeter 应该可以满足您的需求,因为编写类似浏览器的 HTTP 客户端将花费大量的精力和时间。

更多信息: