Skip to content

0xsb/tmtcUnitTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple framework to test IMS stack

tmtcUnitTest is a simple framework to do CI in IMS stack.

SIPp is used to unit test various VoIP scenarioes.

Running logs are collected to check test result and generate reports.

Similar to Spirent Instrument's IMS test Module~~

design

  • IMS stack process called tmtclient is running on an Android phone
  • tmtclient listens on port 21904 to recv cmd
  • control process send cmd like Register, Call, Answer to control tmtclient
  • SIPp serves as IMS Server to interact with tmtclient

Overall Architecture tmtc_arch

Key Feature

  • various IMS scenarioes with different Gateway are defined in SIPp xmls
    • all base xmls are located in bricks dir
  • case can be easily added by json format config
    • sample case definition refer to config.json in reg dir
{  
  "description": {  
      "scenario"  : "reg",  
      "bugid"  : "123456",  
      "commitid"  : "abcdefg",  
      "category"  : "Registration",  
      "casename"  : "reg"  
  },  
  "ue": {  
      "tmtcport"  : 21904,  
      "execdir"  : "/data/data/ut/",  
      "config"  : "provision.ini",  
      "binary"  : "tmtclient",  
      "startuptime": 3,  
      "lib"  : [  
                  "libavatar_ut.so",  
                  "liblemon_ut.so"  
  ]   
  },    
  "cases": [  
    {  
      "desc": "Register",  
      "xml": "reg.xml",  
      "timeout": 2,  
      "tmtccmd": "c-reg"  
  
  },  
    {  
      "desc": "Subscribe/Notify",  
      "xml": "subs_notify.xml",  
      "timeout": 2,  
      "tmtccmd":  ""  
  }  
  ]    
}
  • cases/subcases runtime and result are displayed in html by Jinja2

report sample report

TODOs

  • sdp parser
  • platformization
    • web UI based trigged to generate/run cases
    • record cases in DB

About

unit test framework for sip stack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published