Chapter 1. Tests

Table of Contents

Functional Tests
Performance Tests
Stability Tests

Mateusz Fiolka v2.0, June 2014: Reformatted for AsciiDoc. :toc: :numbered: :website: :Date: 2010-04-06 21:22


Tests are very important part of Tigase server development process.

Each release goes through fully automated testing process. All server functions are considered implemented only when they pass testing cycle. Tigase test suite is used for all our automatic tests which allows to define different test scenarios.

There is no tweaking on databases for tests. All databases are installed in standard way and run with default settings. Database is cleared each time before test cycle starts.

There are no modifications to Tigase configuration file as well. All tests are performed on default configuration generated by configuration wizards.

The server is tested in all supported environments:

  1. XMLDB - tests with built-in simple XML database. This is simple and efficient solution for small installations. I recommend it for services with up to 100 user accounts although it was successfully tested with 10,000 user accounts.
  2. MySQL - tests with MySQL database. Much slower than XMLDB but may handle much more user accounts.
  3. PostgreSQL - tests with PostgreSQL database. Again it is much slower than XMLDB but may handle much more user accounts. This is basically exactly the same code as for MySQL database (SQL Connector) but tests are executed to make sure the code is compatible with all supported SQL databases and to compare performance.
  4. Distributed - is test for distributed installation where c2s and s2s components run on separated machine which connects using external component protocol (XEP-0114) to another machine with SessionManager running.

Functional Tests

Basic checking if all the functions work at correctly. These tests are performed every time the code is sent to source repository.

Stability Tests

Checking whether the function behaves well in long term run. It must handle hundreds of requests a second in several hours server run.