Project

General

Profile

How to use Tigase Testsuite?

Moffitt tig
Added over 2 years ago

Hi,

I have downloaded Tigase Testsuite source, deployed on the development tools,

don't know how to use the test。

start the TestSuite.java classes will be submitted to the wrong:

the Script name: XMPP - tests. XMPT

The Exception in the thread "main" Java. IO. FileNotFoundException: XMPP - tests. XMPT (system could not find the file specified.)

Thanks


Replies (1)

Added by Wojciech Kapcia TigaseTeam over 2 years ago

An overview of TigaseTestsuite is here: http://docs.tigase.org/tigase-server/snapshot/Development_Guide/html_chunk/tests.html

You should use scripts/all-tests.runner.sh script to run the tests:

tigase-testsuite $ ./scripts/all-tests-runner.sh
Run selected or all tests for Tigase server
----
Author: Artur Hefczyc <artur_hefczyc@vnu.co.uk>
Version: 2.0.0
----
  --help|-h This help message
  --func [mysql|pgsql|derby|mssql|mongodb]
              Run all functional tests for a single database configuration
  --lmem [mysql|pgsql|derby|mssql|mongodb]
              Run low memory tests for a single database configuration
  --perf [mysql|pgsql|derby|mssql|mongodb]
              Run all performance tests for a single database configuration
  --stab [mysql|pgsql|derby|mssql|mongodb]
              Run all stability tests for a single database
              configuration
  --func-all  Run all functional tests for all database
              configurations
  --lmem-all  Run low memory tests for all database
              configurations
  --perf-all  Run all performance tests for all database
              configurations
  --stab-all  Run all stability tests for all database
              configurations
  --all-tests Run all functionality and performance tests for
              database configurations
  --single test_file.cot
  --other script_file.xmpt
----
  Special parameters only at the beginning of the parameters list
  --debug|-d                 Turns on debug mode
  --skip-db-relad|-no-db     Turns off reloading database
  --skip-server|-no-serv     Turns off Tigase server start
  --small-mem|-sm            Run in small memory mode
-----------
  Other possible parameters are in following order:
  [server-dir] [server-ip]

You can put some of the settings in scripts/tests-runner-settings.sh (this is optional) file:

$ cat scripts/tests-runner-settings.sh
#!/bin/bash

func_rep="func-rep.html"
perf_rep="perf-rep.html"
db_name="tigasetest"
db_user="tigase"
db_pass="tigase"
root_user="root"
root_pass="root"

TESTS=("derby" "mysql" "pgsql" "mssql")
IPS=("127.0.0.1" "127.0.0.1" "127.0.0.1" "127.0.0.1")

server_timeout=10

server_dir="/home/tigase/tigase-server"
database="derby"
#database="mysql"
server_ip="127.0.0.1"

MS_MEM=100
MX_MEM=1000

SMALL_MS_MEM=10
SMALL_MX_MEM=50

    (1-1/1)