Stress testing
Hi
i have a question . i am trying to do some stress testing .I am trying to test my buttons of the program and am trying to raise the pressure to see how the program holds up
any ideas on how to do this properly?
What exactly do you want to test - how your backend / server behaves when under a heavy load, or you want to check that your application handles well when a user clicks like crazy on it?
i want to test it so that the user cannot "break" the program
Don't we all want that ;)
In my opinion - this could be best done manually - it is probably not worth creating an automated test for this. Reasons - automated tests follow a strict scenario (in the general case) and this kind of testing is mostly chaotic / exploratory. It would be hard to create a scenario that would do that. Automated verification of this kind of testing would also be a pain.
If you however, decide to go on with this, some pointers - protractor, by default, synchronizes with your application and it would not proceed with an action, before the previous one has completed and the application has processed it. In order to stress it, you would need to produce a lot of actions almost simultaneously. To do that, you will need to disable the automatic syncing, which could make your tests flaky and give false positive results.
Ok :)
thanks for the advise
i think i will keep this part of testing on the manual side then
If your site is using angular, I would look into using Angular Batarang. It's a Chrome Add-on that handles great debugging for AngularJS. It also has a great performance monitoring section that you'd be most interested in.