简体   繁体   中英

Funkload Load Testing Implementation

I am very new to performance testing. I am using funkload pypi package to do that. I can run load tests with that. I want the following scenario to implement.

  1. Ability to specify ramp up rate (ie 5 users every 1 minute)
  2. Ability to specify ramp up time (ie ramp up all users within 20 mins)
  3. Ability to specify ramp down rate (ie stop 5 users every 30 seconds)
  4. Ability to specify ramp down time (ie stop all users within 1 min)
  5. Ability to specify how long to execute after users have been ramped up (ie after all users are ramped up,run performance test for 30 mins)
  6. Ability to specify how long each test case should be run (ie run login and log out test script 15 times)
  7. Ability to choose rendezvous point (ie wait for all users to login and then execute steps in the scripts)
  8. Ability to wait between steps (ie for a script that logs in, presses new account button, creates a new account and logs out; we should be able to randomly wait between 15 - 45 seconds between login and press the create new account button, randomly wait between 15s - 45s between pressing new account button and creating new account, and randomly wait between 15-45 seconds between creating new account and logging out).

there are configuration for sleep_time, cycle_time, startup_delay, sleep_time_min and sleep_time_max you can take a look at documentation and here http://lists.idyll.org/pipermail/testing-in-python/2007-August/000363.html to see to what they do. The ramp up seems possible for me to do, the ramp down rate do not, because it wait for the threads to finish. The ability to ramp down all users , maybe using "duration"as a workaround for it...duration says the amount of time of the test that is logged, meaning what will appear in your report. It is possible for the threads to continue execution beyond it is reported...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM