Automatic regression tests with Selenium

REMOTELY CONTROLLED BROWSER

Article from Issue 72/2006
Author(s):

Testing complex web applications does not necessarily mean investing in expensive, proprietary tools such as Test Director or Silk Performer. Selenium is for free; it can remotely control any major browser, and it is programmable in Perl.

The only way to say for sure if a web application will work after modifying the code is to try all the functions in a browser. This means opening every single page, pressing every single button, and filling out every single text box. And you have to go through this multiple times to check out every possible success or error scenario. The people from quality assurance would probably not look forward to the prospect of performing these monotonous tests manually. At the same time, this approach leaves you open to human error. We need an automatic test.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Distribution for Software Testers: Bugnux 2007

    Bugnux includes PCLinuxOS and various test tools. The newcomer on the distribution market will run from a live CD or install on disk.

  • CeBIT 2009: Mozilla Shows Off Next Generation Web

    The Mozilla Foundation features a booth in the Open Source Project lounge in Hall 6 at this year's CeBIT.

  • Under the Hood

    Screen scrapers often fail when confronted with complex web pages. To keep his scraper on task, Mike Schilli remotely controls the Chrome browser using the DevTools protocol to extract data, even from highly dynamic web pages.

  • Servile Guardian

    What is making the lights on the router flicker so excitedly? An intruder? We investigate with pfSense on a Protectli micro appliance and a screen scraper to email the information.

  • Cloud Computing

    Cloud computing systems like Amazon's Elastic Compute Cloud (EC2) save power and overhead by taking the peak out of your server load.

comments powered by Disqus

Direct Download

Read full article as PDF:

Perl_Web_Regression_Test.pdf (217.34 kB)

News