Closed
Bug 427459
Opened 16 years ago
Closed 16 years ago
selenium test suite for BZ 3.2 written in perl
Categories
(Bugzilla :: Testing Suite, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: nelhawar, Assigned: nelhawar)
Details
Attachments
(1 file, 2 obsolete files)
1.83 KB,
application/octet-stream
|
Details |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.9) Gecko/20070209 Fedora/1.5.0.9-3.fc6 Firefox/1.5.0.9 pango-text Build Identifier: selenium test suite for bugzilla 3.2 written in perl using latest version of Selenium IDE Reproducible: Always
Assignee | ||
Comment 1•16 years ago
|
||
Hi Frederic, I am attaching an example to demonstrate a simple selenium testsuite written in perl to test bugzilla 3.2 Basically the attachment include 4 script: 300_selenium_server_start.t => script to start the selenium server using Alien::SeleniumRC 301_createNewProduct.t,302_createNewBug.t => two seleinum test scripts written in perl using selenium IDE. 399_selenium_server_stop.t => perl script tp kill the selenium server process after tests are finished. Basically the above scripts should run in order according to their numbering. also the script should run on a fresh installation of bugzilla in the localhost with the basic database created using checksetup.pl , also the testing scripts depends on admin account created at the time of running checksetup.pl which is in this case will be: username: test_admin@bugzilla.org password: password Please also make sure that the path to firefox-bin is included in your environment $PATH variable. steps to run the test: 1- freshly install bugzilla using checksetup.pl 2- running checksetup.pl create test_admin@bugzilla.org user with password 'password' 3- run the scripts in the order 300 301 302 399 I hope this is useful ,, ofcourse this process can get more automated. Cheers, Noura
Attachment #314008 -
Flags: review?(LpSolit)
Updated•16 years ago
|
Assignee: zach → testing
Comment 2•16 years ago
|
||
Does it require any special version of Selenium? Also, it seems to use Perl modules which are "obsolete" in the sense that Selenium Remote Control is supposed to do the start/stop itself, isn't it?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 3•16 years ago
|
||
regarding the selenium version: Currently for the tests i attached i am using seleniumRC version 0.9.0 , and for Test::WWW::Selenium I am using version 1.12 so I would imagine that the latest varsions would work fine. however I think that there is incompatability with firfox versions that are 2 or higher. It is working fine with me using firefox-1.5.0.9. regarding the starting and stopping of seleniumRC: Basically seleniumRC consistes of 2 parts: 1. A server which can automatically launch and kill supported browsers, and acts as a HTTP proxy for web requests from those browsers. 2. Client libraries for your favorite computer language. to locate the seleniumRC server java file and to start it we need to use Alien::SeleniumRC module.
Assignee | ||
Comment 4•16 years ago
|
||
This is a new version for the script used to start the selenium server is uses the function Alien::SeleniumRC::start() to start the selenium server instead of using the 'java -jar' command line to do the job. bascially the function code contains that command.
Attachment #314076 -
Flags: review?(LpSolit)
Comment 5•16 years ago
|
||
(In reply to comment #3) > latest varsions would work fine. however I think that there is incompatability > with firfox versions that are 2 or higher. It is working fine with me using > firefox-1.5.0.9. Wow, that's bad. Firefox 1.5 is not supported for a long time already, and I'm using Firefox 3 beta 5 (and will soon move to Fx3 RC1 when it's available later this month).
Comment 6•16 years ago
|
||
Comment on attachment 314076 [details] script to start selenium server >my $jarfile = Alien::SeleniumRC::find_jar_location(); Note that this line is no longer required if you call start(). > my $sel = WWW::Selenium->new(%SELENIUM_ARGS); Could you remind me the difference between Test::WWW::Selenium and WWW::Selenium?
Assignee | ||
Comment 7•16 years ago
|
||
(In reply to comment #6) > (From update of attachment 314076 [details]) > >my $jarfile = Alien::SeleniumRC::find_jar_location(); aah yes true . > > Note that this line is no longer required if you call start(). > > > > my $sel = WWW::Selenium->new(%SELENIUM_ARGS); > > Could you remind me the difference between Test::WWW::Selenium and > WWW::Selenium? > Test::WWW::Selenium is a subclass of WWW::Selenium that provides convenient testing functions, so basically for function like (open, click, type, ...) in WWW::Selenium there is a corresponding <command>_ok method that checks the return value (open_ok, click_ok, type_ok) in Test::WWW::Selenium , samething to the WWW::Selenium getter functions there is correspondence <getter>_is , <getter_isnt> etc in Test::WWW::Selenium
Assignee | ||
Comment 8•16 years ago
|
||
Hi Frederic, Attached is new tar ball with the same files as before only i update the script that starts the server to exclude locating the jar file as you noted from before.. The good news is I was able to run the test suite against firefox-2 , there was an incompatibility issue between seleniumRC-0.9.0 and firefox2 but they fixed that problem in seleniumRC-0.9.2 and now it works ,, to get the latest seleniumRC and the selenium server handling package you can just download them from CPAN you will need to download: perl -MCPAN -e 'install "WWW::Selenium"' perl -MCPAN -e 'install "Alien::SeleniumRC"' and those 2 should make the attached testsuite work fine on firefix2 note: the path to firefox-bin need to be included in the environment variable $PATH for the test suite to work. Cheers, Noura
Assignee: testing → nelhawar
Attachment #314008 -
Attachment is obsolete: true
Attachment #314076 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #315123 -
Flags: review?(LpSolit)
Attachment #314008 -
Flags: review?(LpSolit)
Attachment #314076 -
Flags: review?(LpSolit)
Comment 9•16 years ago
|
||
Comment on attachment 315123 [details]
small selenium testsuite written in perl for BZ 3.2 testing
Selenium scripts are attached and reviewed on bugzillaqa on landfill. This bug is no longer relevant.
Attachment #315123 -
Flags: review?(LpSolit)
Updated•16 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•