blob: f21c79085e90588b1946b69c023e6aec49768ced [file] [log] [blame]
Benny Prijono4b4adb32008-06-12 15:37:22 +00001
2 PJSUA TEST FRAMEWORK
3 =========================
4
50. What is this
6---------------
Benny Prijono7d578a72008-06-20 00:25:55 +00007This is the automated testing scripts for pjsua. It can do many things (just don't ask
8it to write good documentation :) ).
Benny Prijono4b4adb32008-06-12 15:37:22 +00009
10
111. Requirements
12---------------
13To run the tests you need:
14 - Python (tested with Python 2.5.2)
15 - pjsua application, built and placed in pjsip-apps/bin directory
16 - the pjsua must be built with:
Benny Prijono7d578a72008-06-20 00:25:55 +000017 - SRTP enabled (the default)
Benny Prijono4b4adb32008-06-12 15:37:22 +000018
19
202. Using
21--------
22To run all the tests:
23 $ python runall.py
24
25To run individual test:
26 $ python run.py MODULE CONFIG
27
Benny Prijono7d578a72008-06-20 00:25:55 +000028The run.py is the main entry for the test. It imports the various inc_xxx.py files, and
29it will load the MODULE. The MODULE contains specific test flows, and we have few of
30them:
31
32 - mod_run.py:
33 a simple test which just run pjsua with the configuration from CONFIG file
34 and checks if pjsua can start properly.
35
36 - mod_call.py:
37 call testing where it spawns two pjsua instances each with configurations as
38 specified in CONFIG file, makes one pjsua call the other, and checks if the call
39 can be established.
40
41 - mod_pres.py:
42 presence testing
43
44 - mod_sendto.py:
45 Simple UAC to send arbitrary SIP message
46
47 - mod_media_playrec.py:
48 Media testing
Benny Prijono4b4adb32008-06-12 15:37:22 +000049
50Example:
51 $ python run.py mod_run.py scripts-run/100_simple.py
52 $ python run.py mod_call.py scripts-call/100_simple.py
Benny Prijono7d578a72008-06-20 00:25:55 +000053
54