Lua Selenium Driver includes Luaunit with minor changes for test execution management. Luaunit is a member of the xUnit family of testing frameworks and provides both a framework that makes the writing of tests easy as well as the functionality to easily run the tests and analyse their results.

Luaunit features:

  • Tests aggregation into test suites.
  • New test classes (anything that begins with "Test") are automatically detected and added to the test suite
  • Test functions based on the use of "assert" are easily integrated
  • File, line and detailed failure reason are displayed when something goes wrong
  • Classical setUp/tearDown method for setting up a tearing down the test environment
  • Output can be easily customized to your needs

Feel free to contribute! Send your example


In order to create and run the tests in there are a few things we need to download and install:

  • Download Selenium RC
  • Download and install Java which is required for running Selenium
  • In order to run Selenium tests we need to run Selenium Server which is shipped with Selenium RC. Since it’s a Java program we run it by typing java –jar selenium-server.jar in a console window.

Google Search Test

Purpose: to demonstrate the following Lua Selenium Diriver functionality:

  • entering text into a text field
  • clicking a button
  • checking to see if a page contains text

Simple Report Test

Purpose: Describe how to produce a simple report in txt format.

Simple txt Report

Tiddly Report

Purpose: Describe how to produce a tiddly report. TiddlyWiki is written in HTML, CSS and JavaScript to run on any reasonably modern browser without needing any ServerSide logic. It allows to create a results repository, SelfContained hypertext documents that can be published to a WebServer, sent by email, stored in a DropBox or kept on a USB.

Tiddly Report