protractor icon indicating copy to clipboard operation
protractor copied to clipboard

Stress testing

Open Basman01 opened this issue 13 years ago • 5 comments

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?

Basman01 avatar Nov 07 '13 13:11 Basman01

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?

manevpe avatar Nov 07 '13 13:11 manevpe

i want to test it so that the user cannot "break" the program

Basman01 avatar Nov 07 '13 13:11 Basman01

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.

manevpe avatar Nov 07 '13 14:11 manevpe

Ok :)

thanks for the advise

i think i will keep this part of testing on the manual side then

Basman01 avatar Nov 07 '13 14:11 Basman01

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.

MexicanAce avatar Nov 07 '13 15:11 MexicanAce