Selenium/How-to/Use MediaWiki API

This tutorial will assume that you are running tests from your machine, targeting beta cluster. Code from this page is available at repository. repository has more code examples in folder.

You can use the MediaWiki action API for testing, reusing parts of Selenium/Stack, but without Selenium.

Examples will:


 * Check if a page exists using MediaWiki action API.

Stack
The stack:

Advantages

 * Assertions.
 * Testing framework (setup, teardown, reporting...).

Disadvantages

 * Several new tools to learn.

Output
Everything is fine.

There is a problem.