Bugzilla:QA: Difference between revisions

356 bytes removed ,  29 July 2011
Line 23: Line 23:
'''Note 1:''' The Bugzilla installation to test must already exist, and must already have its important parameters configured (i.e. ''urlbase'', ''cookiepath'', and ''mail_delivery_method''). It is recommended that ''mail_delivery_method'' be set to '''Test''', unless "actual" bug mail is desired.
'''Note 1:''' The Bugzilla installation to test must already exist, and must already have its important parameters configured (i.e. ''urlbase'', ''cookiepath'', and ''mail_delivery_method''). It is recommended that ''mail_delivery_method'' be set to '''Test''', unless "actual" bug mail is desired.


'''Note 2:''' Before executing <em>generate_test_data.pl</em>, make sure the parameters in <em>config/selenium_test.conf</em> are set correctly. This configuration file must match the Bugzilla configuration, especially the ''urlbase'' parameter and the path to the browser ([http://seleniumhq.org/download/ Selenium RC 1.0.3 and 2.0] work with Firefox 3.6). If ''mail_delivery_method'' is set to '''Test''', fake user accounts can be defined in the config file.
'''Note 2:''' Before executing <em>generate_test_data.pl</em>, make sure the parameters in <em>config/selenium_test.conf</em> are set correctly. This configuration file must match the Bugzilla configuration, especially the ''urlbase'' parameter and the path to the browser ([http://seleniumhq.org/download/ Selenium RC 2.0] work with Firefox 5 and IE9). If ''mail_delivery_method'' is set to '''Test''', fake user accounts can be defined in the config file.


Once the DB is populated, start the Selenium server and execute the scripts in t/. To start the Selenium server, either execute <em>config/selenium_server_start.t</em> (which requires the [http://search.cpan.org/~hisso/Alien-SeleniumRC/ Alien::SeleniumRC] Perl module to be installed) or enter:
Once the DB is populated, start the Selenium server and execute the scripts in t/. To start the Selenium server, type:
  java -jar /path/to/selenium-server.jar
  java -jar /path/to/selenium-server-standalone-2.x.x.jar


which is exactly what Alien::SeleniumRC does. If Alien::SeleniumRC was not installed, extract <em>selenium-server.jar</em> from the [http://seleniumhq.org/download/ Selenium RC] ZIP file (generally, the JAR file provided by SeleniumRC is more recent than the one found in Alien::SeleniumRC). To execute the scripts, go into the t/ directory and enter:
The Selenium Server can be downloaded from the [http://seleniumhq.org/download/ Selenium] website. To execute the scripts, go into the t/ directory and enter:
  prove -v --timer *.t
  prove -v --timer *.t


Confirmed users
683

edits