2. Functional User Interface Testing

2.1. Introduction

TestGen?4Web

2.2. Installing and Running

To create TestGen?4Web tests or to play previously recorded tests, you will need to download and install the FireFox extension. Be sure to restart after installing the extension.

To work with these session files in python, see the TestGen4Web-Python wiki page.

2.3. Usage

  1. Start up FireFox

  2. Make sure Zenoss is running:

    zeoctl start
    zopectl start
  3. Navigate to the Zenoss page where you wish to begin your test

  4. Click the red "record" button in the TestGen?4Web FireBox toolbar

  5. Navigate Zenoss, filling in form values appropriately

  6. When you are finished, click the black, square "stop" button in the TestGen?4Web FireBox toolbar

  7. Hit the green "play" button to review the recorded session

  8. When satisfied, save the session by clicking the folder with the red down arrow

  9. If the test is to be included in Zenoss, save the file in source:trunk/Products/ZenUITests/tests/TestGen4Web

2.4. Boiler Plate

To ease in the set-up and tear-down phases of recorded sessions, there are boiler plate files here. boilerPlateSetUp.xml can be opened in TestGen?4Web and appended. Once you are finished recording that session, you can copy the actions in boilerPlateTearDown.xml to the end of your newly recorded session.

2.5. Massaging Session Data

2.6. Selenium

Installing and Configuring

Mac OS X

Selenium uses FireFox by default, so you need to make sure that firefox-bin is in your path:

which firefox-bin

If that returns nothing (as mine does), then you need to add the path to firefox-bin to PATH. For me, this required doing the following:

export PATH=$PATH:/Applications/Internet/Firefox.app/Contents/MacOS/