You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pjproject/tests/pjsua
Riza Sulistyo 5ac9104514
Expand tab to spaces and remove $Id$ (#3292)
2 years ago
..
logs More pjsua-test work: print full log to help investigating any failed test, and other minor updates. (#2322) 5 years ago
scripts-call Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-media-playrec Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-pesq Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-pres Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-recvfrom Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-run Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-sendto Expand tab to spaces and remove $Id$ (#3292) 2 years ago
scripts-sipp Expand tab to spaces and remove $Id$ (#3292) 2 years ago
tools Expand tab to spaces and remove $Id$ (#3292) 2 years ago
wavs Ticket #920: New pjsystest application for testing target system/device. Initial work on Win32 and WM 15 years ago
README.TXT Example command line for pjsua testing with sipp. (#2750) 3 years ago
config_site.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
inc_cfg.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
inc_const.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
inc_sdp.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
inc_sip.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_call.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_media_playrec.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_pesq.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_pres.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_recvfrom.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_run.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_sendto.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
mod_sipp.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
run.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago
runall.py Expand tab to spaces and remove $Id$ (#3292) 2 years ago

README.TXT

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.



PJSUA TEST FRAMEWORK
=========================

0. What is this
---------------
This is the automated testing scripts for pjsua. It can do many things (just
don't ask it to write good documentation :) ).


1. Requirements
---------------
To run the tests you need:
- Python (tested with Python 2.5.2)
- pjsua application, built and placed in pjsip-apps/bin directory
- the pjsua must be built with:
- SRTP enabled (the default)


2. Using
--------
To run all the tests:
$ python [OPTIONS] runall.py

To run individual test:
$ python [OPTIONS] run.py MODULE CONFIG

Where options:
-e EXE use EXE as pjsua executable
-n use null audio
-r TEST (for runall.py only) resume test at TEST


For each individual tests, the run.py is the main entry for the test. It
imports the various inc_xxx.py files, and it will load the MODULE. The MODULE
contains specific test flows, and we have few of them:

- mod_run.py:
a simple test which just run pjsua with the configuration from CONFIG
file and checks if pjsua can start properly.

- mod_call.py:
call testing where it spawns two pjsua instances each with configura-
tions as specified in CONFIG file, makes one pjsua call the other, and
checks if the call can be established.

- mod_pres.py:
presence testing

- mod_sendto.py:
Simple UAC to send arbitrary SIP message to pjsua. Good to test
various incoming INVITE scenarios

- mod_media_playrec.py:
Mainly for resampling quality testing

- mod_pesq.py
Measure call quality of various call settings with PESQ, for people
who have PESQ tool and license

Example:
$ python run.py mod_run.py scripts-run/100_simple.py
$ python run.py mod_call.py scripts-call/100_simple.py
$ python run.py mod_sipp.py scripts-sipp/uac-bad-ack.xml