Changeset 2029 for pjproject/trunk
- Timestamp:
- Jun 18, 2008 9:04:14 PM (16 years ago)
- Location:
- pjproject/trunk/pjsip-apps/src/test-pjsua
- Files:
-
- 17 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip-apps/src/test-pjsua/inc_cfg.py
r2025 r2029 1 # $Id :$1 # $Id$ 2 2 import random 3 3 … … 72 72 # the function for test body 73 73 test_func = None 74 post_func = None 75 user_data = None 74 76 def __init__( self, 75 77 title, # Test title 76 78 inst_params, # InstanceParam's as list 77 func=None): 79 func=None, 80 post_func=None, 81 user_data=None): 78 82 self.title = title 79 83 self.inst_params = inst_params 80 84 self.test_func = func 85 self.post_func = post_func 86 self.user_data = user_data 81 87 82 88 -
pjproject/trunk/pjsip-apps/src/test-pjsua/inc_const.py
r2025 r2029 1 # $Id :$1 # $Id$ 2 2 # Useful constants 3 3 … … 35 35 36 36 ########################## 37 # MEDIA 38 # 39 40 # Connecting/disconnecting ports 41 MEDIA_CONN_PORT_SUCCESS = "Port \d+ \(.+\) transmitting to port" 42 MEDIA_DISCONN_PORT_SUCCESS = "Port \d+ \(.+\) stop transmitting to port" 43 44 # Filename to play / record 45 MEDIA_PLAY_FILE = "--play-file (\S+)" 46 MEDIA_REC_FILE = "--rec-file (\S+)" 47 48 ########################## 37 49 # MISC 38 50 # -
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_call.py
r2025 r2029 1 # $Id :$1 # $Id$ 2 2 import time 3 3 import imp … … 10 10 11 11 # Test body function 12 def test_func(t ):12 def test_func(t, user_data): 13 13 callee = t.process[0] 14 14 caller = t.process[1] -
pjproject/trunk/pjsip-apps/src/test-pjsua/mod_pres.py
r2025 r2029 1 # $Id :$1 # $Id$ 2 2 import time 3 3 import imp … … 10 10 11 11 # Test body function 12 def test_func(t ):12 def test_func(t, user_data): 13 13 u1 = t.process[0] 14 14 uri1 = cfg_file.test_param.inst_params[0].uri -
pjproject/trunk/pjsip-apps/src/test-pjsua/run.py
r2028 r2029 179 179 if script.test.test_func != None: 180 180 try: 181 script.test.test_func(script.test )181 script.test.test_func(script.test, script.test.user_data) 182 182 except TestError, e: 183 183 handle_error(e.desc, script.test) … … 197 197 p.wait() 198 198 199 # Run the post test function 200 if script.test.post_func != None: 201 try: 202 script.test.post_func(script.test, script.test.user_data) 203 except TestError, e: 204 handle_error(e.desc, script.test) 205 199 206 # Done 200 207 print "Test " + script.test.title + " completed successfully"
Note: See TracChangeset
for help on using the changeset viewer.