Search code examples
phpzend-frameworkphpunitzend-test

PHPUnit+ZendFramework ::How I can test multu users session in the same time?


I beginer programmer,and don't have any QA experience

(only simple test that i write without PHPUnit or other tool)

How I can create test for testing multi users sessions in the same time?

(PHPUnit+ZendFramework)

basic tests examples that I thinking to do (I am not QA - I soory if i wrong):

  1. users logins in the same time
  2. users buy process - only 1 user can write and the rest only read.
  3. How much session the server can handle in the same time. etc..

Thanks


Solution

  • For number 3, you're really talking about benchmarking, not testing. Take a look at ab - Apache Benchmarking tool

    You can do things like the command below, which sends 5 concurrent requests at a time and sends 1000 requests overall to the website:

    ab -n 1000 -c 5 http://domain.com/index.php