Selenium/Ruby

This tutorial will assume that you are running tests from your machine, targeting beta cluster.

Examples will:


 * open browser
 * go to main page
 * check that Log in link is present
 * close browser

The stack:

Stack
In addition to the above stack, this example additionally uses:

Advantages

 * Minimal stack with assertions.

Disadvantages

 * No testing framework (setup, teardown, reporting...).

Code
Save the code in file (for example ) and run it.

Output
Everything is fine.

There is a problem.

Stack
In addition to the above stack, this example additionally uses:

Advantages

 * Simple stack with assertions and testing framework (setup, teardown, reporting...).

Disadvantages

 * Another tool to learn (testing framework).

Code
Save the code in file (for example ) and run it.

Output
Everything is fine.

There is a problem.

Stack
In addition to the above stack, this example additionally uses:

Advantages

 * Simple stack with assertions and testing framework (setup, teardown, reporting...).

Disadvantages

 * Another tool to learn (testing framework).

Code
Save the code in files and run Cucumber.

Output
Everything is fine.

There is a problem.