Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.

HelpIM development wiki

winfried edited this page Dec 16, 2011 · 5 revisions

Stress testing HelpIM 3.1 with Selenium

Setting up Selenium IDE (firefox)

  1. Download the Selenium IDE firefox extension from http://seleniumhq.org/download/ and install it.
  2. Install the "Selenium IDE - Sel Blocks" extension from the mozilla add-ons.
  3. Install the Selenium timer extension from: http://wiki.openqa.org/display/SEL/Timer+Extension. To install it, place it in the file pointed to by the "Selenium Core extensions" setting in the options of Selenium.
  4. Optionally: install the "File Logging (Selenium IDE)" from the mozilla add-ons.

Running the stress test

Put the following script in the Selenium IDE (you can copy the html-source):

Stresstest
timerStart total
for i=0; i <= 300; i++ i
typeKeys css=textarea.sendTextarea.goog-textarea.goog-textarea-focused .
type css=textarea.sendTextarea.goog-textarea.goog-textarea-focused iter ${i}
keyPress css=textarea.sendTextarea.goog-textarea.goog-textarea-focused \13
timerStart iter
waitForTextPresent iter ${i}
timerStop iter
endFor
timerStop total

Then open a chat-window and run the script. The 300 iterations in this script should take about 5 minutes. More iterations are not very useful: it then becomes more a stress-test of the browser then of he server, because the list to find the text in, becomes longer.