Changeset 2033


Ignore:
Timestamp:
Jun 20, 2008 12:25:55 AM (16 years ago)
Author:
bennylp
Message:

More ticket #543: added mod_sendto.py to send arbitrary INVITE request

Location:
pjproject/trunk/pjsip-apps/src/test-pjsua
Files:
11 added
5 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip-apps/src/test-pjsua/README.TXT

    r2009 r2033  
    550. What is this 
    66--------------- 
    7 This is the automated testing scripts for pjsua. It can do many things (just don't ask it to write good documentation :) ). 
     7This is the automated testing scripts for pjsua. It can do many things (just don't ask  
     8it to write good documentation :) ). 
    89 
    910 
     
    1415 - pjsua application, built and placed in pjsip-apps/bin directory 
    1516 - the pjsua must be built with: 
    16      - TLS enabled 
    17      - SRTP enabled 
     17     - SRTP enabled (the default) 
    1818 
    1919 
     
    2626  $ python run.py MODULE CONFIG 
    2727 
    28 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 couple of them: 
    29   - mod_run.py: this module implements a simple test which just run pjsua with the configuration from CONFIG file and checks if pjsua can start properly. 
    30   - mod_call.py: this module implements call testing where it spawns two pjsua instances each with configurations as specified in CONFIG file, makes one pjsua call the other, and checks if the call can be established. 
     28The 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 
    3149 
    3250Example: 
    3351  $ python run.py mod_run.py scripts-run/100_simple.py 
    3452  $ python run.py mod_call.py scripts-call/100_simple.py 
     53 
     54 
  • pjproject/trunk/pjsip-apps/src/test-pjsua/inc_cfg.py

    r2029 r2033  
    8787 
    8888 
     89################################### 
     90# TestError exception 
     91class TestError: 
     92        desc = "" 
     93        def __init__(self, desc): 
     94                self.desc = desc 
    8995 
     96 
  • pjproject/trunk/pjsip-apps/src/test-pjsua/run.py

    r2029 r2033  
    99 
    1010import inc_const as const 
     11from inc_cfg import * 
    1112 
    1213# Get the pjsua executable name 
     
    4243 
    4344G_EXE = G_EXE.rstrip("\n\r \t") 
    44  
    45 ################################### 
    46 # TestError exception 
    47 class TestError: 
    48         desc = "" 
    49         def __init__(self, desc): 
    50                 self.desc = desc 
    5145 
    5246################################### 
  • pjproject/trunk/pjsip-apps/src/test-pjsua/runall.py

    r2028 r2033  
    1313excluded_tests = [ "svn", 
    1414                   "pyc", 
    15                    "scripts-call/150_srtp_1_2", 
    16                    "scripts-call/150_srtp_2_1", 
    17                    "scripts-call/300_ice_1_1"] 
     15                   #"scripts-call/150_srtp_1_2", 
     16                   "scripts-call/150_srtp_2_1" 
     17                   ] 
    1818 
    1919# Add basic tests 
     
    2828for f in os.listdir("scripts-pres"): 
    2929    tests.append("mod_pres.py scripts-pres/" + f) 
     30 
     31# Add mod_sendto tests 
     32for f in os.listdir("scripts-sendto"): 
     33    tests.append("mod_sendto.py scripts-sendto/" + f) 
    3034 
    3135# Filter-out excluded tests 
  • pjproject/trunk/pjsip-apps/src/test-pjsua/scripts-media-playrec

    • Property svn:ignore set to
      *.pyc
Note: See TracChangeset for help on using the changeset viewer.