Changeset 8081


Ignore:
Timestamp:
07/08/10 21:05:38 (23 months ago)
Author:
MichaelTempest
Message:

Item1326: Give quickstart instructions for getting the selenium-based tests up and running

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UnitTestContrib/data/System/UnitTestContrib.txt

    r7306 r8081  
    5151Tests derived from =FoswikiSeleniumTestCase= use [[http://seleniumhq.org/projects/remote-control/][Selenium Remote Control]] to exercise Foswiki via one or more browsers. 
    5252These tests only execute if one or more browsers are [[%SCRIPTURLPATH{"configure"}%#UnitTestContrib$Extensions][configured]] in $Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Browsers}, 
    53 which tells the perl Selenium client (Test::WWW::Selenium) where to find the !SeleniumRC server for each browser and how the server should launch the browser. 
     53which tells the perl Selenium client (Test::WWW::Selenium, available from CPAN) where to find the !SeleniumRC server for each browser and how the server should launch the browser. 
    5454The default value is blank (i.e. no browsers), so these tests are skipped by default. 
    5555If any browsers are specified, then each test derived from =FoswikiSeleniumTestCase= is executed via each browser. 
     
    8080Use the =SeleniumConfigTests= to verify your configuration. 
    8181 
     82---+++ Quick-start 
     83*Prerequisites:* 
     84   * =Test::WWW::Selenium= from CPAN 
     85   * A decent Java runtime, 1.5 or newer 
     86   * Firefox 2.0 or newer 
     87 
     88*Get started:* 
     89   1 Download Selenium Remote Control (from http://seleniumhq/download) 
     90   1 Extract selenium-server.jar 
     91   1 Run =java -jar selenium-server.jar= as a user that may run firefox 
     92   1 Open [[%SCRIPTURLPATH{"configure"}%#UnitTestContrib$Extensions][configure]] 
     93      * Set =$Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Browsers}= to =={ FF => {} }== 
     94      * Set =$Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Username}= and =$Foswiki::cfg{UnitTestContrib}{SeleniumRc}{Password}= to a valid username and password 
     95   1 Go to =foswiki/test/unit= and run <noautolink> =perl -T ../bin/TestRunner.pl SeleniumConfigTests= </noautolink> 
     96 
    8297---++ Installation Instructions 
    8398 
Note: See TracChangeset for help on using the changeset viewer.