pjproject/tests/pjsua
Nanang Izzuddin 96b5e742e0 Fixed #2066: SDP ignored in 180/183 response without To tag.
git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@5700 74dad513-b988-da41-8d7b-12977e46ad98
2017-11-22 02:07:48 +00:00
..
scripts-call Re #1842: Updated pjsua app to avoid stdout buffering, and also adjusted python tests accordingly. 2015-04-13 12:14:02 +00:00
scripts-media-playrec Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
scripts-pesq Automated test (re #1111): decrease Speex PESQ threshold as it is not always able to achieve that, possibly depending on the host activity 2010-08-18 14:30:15 +00:00
scripts-pres Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
scripts-recvfrom Re #1346 (python test fixes): Updated test scenario that requires pjsua to generate multiple media offer using --extra-audio instead of using --use-srtp=3 (optional-with-duplicated-media). 2011-08-19 12:24:48 +00:00
scripts-run Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
scripts-sendto Re #1842: Updated pjsua app to avoid stdout buffering, and also adjusted python tests accordingly. 2015-04-13 12:14:02 +00:00
scripts-sipp Fixed #2066: SDP ignored in 180/183 response without To tag. 2017-11-22 02:07:48 +00:00
tools Re #2054: When setting CXXCFLAGS manually, make sure it's applied correctly. 2017-11-01 05:23:36 +00:00
wavs Ticket #920: New pjsystest application for testing target system/device. Initial work on Win32 and WM 2009-07-16 10:36:48 +00:00
README.TXT Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
config_site.py Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
inc_cfg.py Re #1842: Minor update on python test to reduce possibility of EADDRINUSE error in running pjsua. 2015-04-13 12:31:46 +00:00
inc_const.py Close #1523: 2012-06-26 02:28:59 +00:00
inc_sdp.py Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
inc_sip.py Misc (re #1110): fixed bug in the python unit test that caused tests to run for much longer than needed because it unnecessarily waits for incoming message until timeout occurs 2010-08-18 07:37:29 +00:00
mod_call.py Re #1842: Updated pjsua app to avoid stdout buffering, and also adjusted python tests accordingly. 2015-04-13 12:14:02 +00:00
mod_media_playrec.py Misc (#915): several fixes on the python unit tests on Linux: 2009-08-17 08:29:47 +00:00
mod_pesq.py - 2009-01-05 15:31:25 +00:00
mod_pres.py Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
mod_recvfrom.py Misc (re #1068): fix python self-test module 'mod_recvfrom.py': 2010-08-09 07:31:34 +00:00
mod_run.py Created top-level directory tests and moved test-pjsua there. This will be the placeholder for future developed tests 2008-12-22 18:54:58 +00:00
mod_sendto.py Implemented core multipart support and support in the invite session (re #1070) 2010-08-01 09:48:51 +00:00
mod_sipp.py Re #1842: 2015-04-13 12:28:02 +00:00
run.py Re #1842: 2015-04-13 12:28:02 +00:00
runall.py Re #1828 Temporary deactivation of failing tests to be examined in detail later on 2015-03-24 11:02:29 +00:00

README.TXT

                           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