我有一个 cakephp 应用程序,想用 JMeter 测试一下,在我的应用程序前面,我们需要先登录,登录后我们可以访问该页面。我已经在 JMeter 中写入了参数名称和值,以便 JMeter 可以自动登录。我这样写:
名称:值:
data[User][username] admin
data[User][password] 12345
然后,我添加了两个 HTTP 请求,第一个是访问默认页面,第二个是访问索引表单。但是当我运行应用程序时,我在结果中发现了这个:
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2012/07/06 15:49:33 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(true,*local*)
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Starting 5 threads for group J Meter User.
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread started: J Meter User 1-1
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: All threads have been started
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread finished: J Meter User 1-1
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Ending thread J Meter User 1-1
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread started: J Meter User 1-2
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread finished: J Meter User 1-2
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Ending thread J Meter User 1-2
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread started: J Meter User 1-3
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread finished: J Meter User 1-3
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Ending thread J Meter User 1-3
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread started: J Meter User 1-4
2012/07/06 15:49:33 INFO - jmeter.threads.JMeterThread: Thread finished: J Meter User 1-4
2012/07/06 15:49:33 INFO - jmeter.engine.StandardJMeterEngine: Ending thread J Meter User 1-4
2012/07/06 15:49:34 INFO - jmeter.threads.JMeterThread: Thread started: J Meter User 1-5
2012/07/06 15:49:34 INFO - jmeter.threads.JMeterThread: Thread finished: J Meter User 1-5
2012/07/06 15:49:34 INFO - jmeter.engine.StandardJMeterEngine: Ending thread J Meter User 1-5
2012/07/06 15:49:34 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2012/07/06 15:49:34 INFO - jmeter.gui.util.JMeterMenuBar: setRunning(false,*local*)
2012/07/06 15:49:34 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host null
有人可以告诉我如何使用 JMeter 访问 cakephp 中的登录表单,以便我可以在我的应用程序中进行负载测试吗?