pjproject/tests/pjsua
Benny Prijono 828c761a14 Fixed ticket #959: Assertion upon receiving malformed SIP messages (thanks Andrey Kovalenko for the report)
- transaction checks for the method before processing incoming ACK request
 - transport layer checks the validity of status code in the response
 - added SIPP scenario to reproduce the bad ACK request


git-svn-id: https://svn.pjsip.org/repos/pjproject/trunk@2915 74dad513-b988-da41-8d7b-12977e46ad98
2009-09-22 17:56:44 +00:00
..
scripts-call 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-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 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-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 Ticket #833: 2009-08-11 12:42:38 +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 Misc (#915): several fixes on the python unit tests on Linux: 2009-08-17 08:29:47 +00:00
scripts-sipp Fixed ticket #959: Assertion upon receiving malformed SIP messages (thanks Andrey Kovalenko for the report) 2009-09-22 17:56:44 +00:00
tools Misc (#915): several fixes on the python unit tests on Linux: 2009-08-17 08:29:47 +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 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_const.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_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 Allow SIP messages in mod_sendto.py to insert fields (ticket #707) 2009-02-06 07:56:09 +00:00
mod_call.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_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 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_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 Allow SIP messages in mod_sendto.py to insert fields (ticket #707) 2009-02-06 07:56:09 +00:00
run.py Fixed exception error on the Python test due to child process already exiting 2009-01-04 20:15:37 +00:00
runall.py Added --list argument to list tests in runall.py, and fixed build.mak location error due to moving test directory last time 2008-12-29 14:52: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