Book Image

Selenium 1.0 Testing Tools: Beginner's Guide

By : David Burns
Book Image

Selenium 1.0 Testing Tools: Beginner's Guide

By: David Burns

Overview of this book

<p>Selenium is a suite of tools to automate web application testing across many platforms. A strong understanding of using Selenium will get you developing tests to ensure the quality of your applications.</p> <p>This book helps you understand and use Selenium to create tests and make sure that what your user expects to do can be done. It will guide you to successfully implement Selenium tests to ensure the quality of your applications.</p> <p>The Selenium Testing Tools Beginner’s guide shows developers and testers how to create automated tests using a browser. You'll be able to create tests using Selenium IDE, Selenium Remote Control and Selenium 2 as well. A chapter is completely dedicated to Selenium 2. We will then see how our tests use element locators such as css, xpath, DOM to find elements on the page.</p> <p>Once all the tests have been created we will have a look at how we can speed up the execution of our tests using Selenium Grid.</p>
Table of Contents (18 chapters)
Selenium 1.0 Testing Tools Beginner's Guide
Credits
About the Author
About the Reviewers
Preface
Index

Time for action – running Selenium IDE tests with User Extensions


Imagine that you have created a number of User Extensions and you would now like to use them in Selenium Remote Control tests that you have created by exporting your tests. The following steps will allow you to do this

  1. Open a Command Prompt or console window.

  2. Run the following command:

    java –jar selenium-server-standalone.jar –userExtensions \\path\to\extensions.js -htmlsuite *firefox http://book.theautomatedtester.co.uk c:\path\to\testsuite.html c:\path\to\results.html
    

What just happened?

We have just seen how we can use User Extensions with Selenium Remote Control. This means that our applications can not only be used on different browsers and platforms, but also use the new commands that we create in order to help us with our testing. This is one of the most popular arguments that people use.

Pop quiz

  • Are you allowed to use relative paths to the Test Suite and results file?

  • What is the argument needed to make your tests run...