CN1984171B - System and method for realizing speech apparatus function test - Google Patents
System and method for realizing speech apparatus function test Download PDFInfo
- Publication number
- CN1984171B CN1984171B CN2006100727295A CN200610072729A CN1984171B CN 1984171 B CN1984171 B CN 1984171B CN 2006100727295 A CN2006100727295 A CN 2006100727295A CN 200610072729 A CN200610072729 A CN 200610072729A CN 1984171 B CN1984171 B CN 1984171B
- Authority
- CN
- China
- Prior art keywords
- test
- voice
- under test
- voice device
- device under
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本发明涉及设备功能的测试技术,尤其涉及实现语音设备功能测试的系统和方法。 The invention relates to a testing technology for equipment functions, in particular to a system and a method for realizing voice equipment function testing. the
背景技术Background technique
目前,测试自动化已经成为业界众多企业的共识,特别是在电信这类可靠性要求极高的行业,对电信设备的严格测试、覆盖性测试更需要提高测试自动化的程度。在电信网和智能网中,存在很多语音设备,例如呼叫中心、智能外设(IP,Intelligent Peripheral)等等。对于这类设备的测试,除了需要关注信令消息交互是否正确之外,还需要验证包括放音、收号、录音、文语转换和语音自动识别等语音功能是否正确,也就是说,除了需要对语音设备进行协议测试,还需要对语音设备的语音功能进行功能测试。但在目前的语音设备测试中,自动化测试仅仅局限在协议测试层面上,即仅仅关注信令消息交互方面的测试,而在语音功能测试方面几乎没有实现自动化或者仅仅实现了非常有限的自动化。 At present, test automation has become the consensus of many companies in the industry, especially in industries such as telecommunications that require extremely high reliability. Strict testing and coverage testing of telecommunication equipment requires an increase in the degree of test automation. In the telecommunication network and intelligent network, there are many voice devices, such as call center, intelligent peripheral (IP, Intelligent Peripheral) and so on. For the testing of this type of equipment, in addition to paying attention to whether the interaction of signaling messages is correct, it is also necessary to verify whether the voice functions including playback, number collection, recording, text-to-speech conversion, and automatic voice recognition are correct. Protocol testing of voice equipment also requires functional testing of the voice function of the voice equipment. However, in the current voice equipment testing, automated testing is limited to the protocol testing level, that is, it only focuses on the testing of signaling message interaction, while almost no or only very limited automation is achieved in voice function testing. the
到现在为止,在进行语音设备的语音功能测试时,往往需要搭建一套由公共电话交换网(PSTN,Public Switched Telephone Network)、业务交换点(SSP,Service Switching Point)、计算机电信集成(CTI,Computer TelecomIntegration)等组成的真实测试环境,将被测语音设备和发送测试音的话机连接到真实的测试环境中,测试人员采用手工操作,通过一次拨号、二次拨号等进行测试,并需要亲自听收、放音是否正确、判断语音设备收号是否正确等以完成测试。这种测试方法由于需要全部采用真实环境,导致耗费大量测试资源,环境的搭建和维护成本都很高。另外,在测试过程中需要测试人 员进行手工操作,而且反复多次的回归测试成本也很高,影响测试人员的工作积极性。 Until now, when testing the voice function of voice equipment, it is often necessary to build a set of public switched telephone network (PSTN, Public Switched Telephone Network), service switching point (SSP, Service Switching Point), computer telecommunications integration (CTI, Computer Telecom Integration) and other real test environments, connect the voice device under test and the phone that sends the test tone to the real test environment, the testers use manual operations, through one-time dialing, two-time dialing, etc. to test, and need to personally listen Whether receiving and playing the sound is correct, judging whether the voice equipment receives the number correctly, etc. to complete the test. Since this testing method needs to use all real environments, it consumes a lot of testing resources, and the cost of setting up and maintaining the environment is very high. In addition, testers are required to perform manual operations during the testing process, and the cost of repeated regression testing is also high, which affects the enthusiasm of testers. the
鉴于上述全部采用手工测试的缺点,一些国家和企业开发了专用语音设备测试工具,例如美国Ameritec公司开发生产的一系列语音设备测试工具。这类测试工具主要用于对语音设备的性能进行测试,可以部分地模拟PSTN对被测语音设备进行消息驱动。 In view of the above-mentioned shortcomings of all manual testing, some countries and enterprises have developed special voice equipment testing tools, such as a series of voice equipment testing tools developed and produced by American Ameritec. This type of test tool is mainly used to test the performance of the voice equipment, which can partially simulate the PSTN to drive the voice equipment under test. the
然而,使用这类测试工具同样需要搭建真实的测试环境,环境的搭建和维护的成本高;除了需要编写语音设备的测试脚本,还需要编写这类测试工具的业务脚本以适应测试需要;由于电信技术的发展日新月异,这类专用语音设备测试工具往往落后于被测语音设备的技术发展,难以满足测试要求。此外,这类专用语音设备测试工具开发成本高,由于测试进度的压力,往往开发周期也短,工具本身往往就不够稳定,影响测试执行。 However, the use of such test tools also requires the establishment of a real test environment, and the cost of setting up and maintaining the environment is high; in addition to writing test scripts for voice equipment, it is also necessary to write business scripts for such test tools to meet testing needs; The development of technology is changing with each passing day. Such special voice equipment test tools often lag behind the technical development of the voice equipment under test, and it is difficult to meet the test requirements. In addition, the development cost of such special voice equipment testing tools is high. Due to the pressure of testing progress, the development cycle is often short, and the tools themselves are often not stable enough, which affects test execution. the
综上所述,可以看到无论是采用手工拨打电话完成语音设备的语音功能测试还是应用专用语音设备测试工具进行测试,都存在需要搭建真实测试环境,耗费大量测试资源,测试效率低下,难以满足测试要求的缺点。可见,语音设备的语音功能测试难度大,难以实现语音功能测试自动化。 To sum up, it can be seen that no matter whether the voice function test of the voice device is completed by manual dialing or the test is performed by using a special voice device test tool, there is a need to build a real test environment, which consumes a lot of test resources, and the test efficiency is low and difficult to meet. Disadvantages of testing requirements. It can be seen that the voice function test of the voice equipment is very difficult, and it is difficult to realize the automation of the voice function test. the
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种实现语音设备功能测试的系统,减少语音功能测试对环境的占用,低成本、高效率地实现语音功能测试自动化。 In view of this, the main purpose of the present invention is to provide a system for realizing the function test of voice equipment, which reduces the occupation of the environment for the test of the voice function, and realizes the automation of the test of the voice function at low cost and high efficiency. the
本发明的另一目的在于提供一种实现语音设备功能测试的方法,减少语音功能测试对测试环境的占用,实现低成本、高效率的语音功能测试自动化。 Another object of the present invention is to provide a method for realizing the function test of the voice equipment, which reduces the occupation of the test environment by the voice function test, and realizes low-cost and high-efficiency voice function test automation. the
为了实现上述目的,本发明提供一种实现语音设备功能测试的系统,包括被测语音设备,用于接收测试音,生成对测试音的响应结果,该系统还包括树和表的组合表示法-2TTCN2模块和测试音模拟模块,其中, In order to achieve the above object, the present invention provides a system for realizing the function test of voice equipment, including the voice equipment under test, which is used to receive the test tone and generate the response result to the test tone, and the system also includes the combined representation of tree and table- 2TTCN2 module and test tone simulation module, wherein,
TTCN2模块与被测语音设备和测试音模拟模块相连,用于模拟测试被 测语音设备所需的信令消息和业务消息,并控制测试音模拟模块向被测语音设备发送测试音,通过判断被测语音设备对测试音的响应结果与预先设定的结果是否一致,确定被测语音设备的语音功能是否正常; The TTCN2 module is connected with the voice equipment under test and the test tone simulation module, and is used for simulating the signaling message and service message required by the voice equipment under test, and controls the test tone simulation module to send the test tone to the voice equipment under test. Whether the response result of the tested voice device to the test tone is consistent with the preset result, and determine whether the voice function of the tested voice device is normal;
测试音模拟模块通过被测语音设备的语音接口与被测语音设备相连,用于在TTCN2模块的控制下向被测语音设备发送测试音。 The test sound simulation module is connected with the tested voice device through the voice interface of the tested voice device, and is used to send the test sound to the tested voice device under the control of the TTCN2 module. the
所述TTCN2模块包括信令消息模拟单元、业务消息模拟单元和比较判断单元,其中,信令消息模拟单元用于模拟测试被测语音设备所需的按照TTCN2编写的信令消息,与被测语音设备进行信令消息的交互;业务消息模拟单元用于模拟测试被测语音设备所需的按照TTCN2编写的业务消息,与被测语音设备进行业务消息的交互,并控制测试音模拟模块向被测语音设备发送测试音;比较判断单元用于判断被测语音设备对测试音的响应结果与预先设定的结果是否一致,确定被测语音设备的语音功能是否正常。所述TTCN2模块可以进一步包括:用于输出比较判断模块的判断结果的输出单元。 The TTCN2 module includes a signaling message simulation unit, a business message simulation unit and a comparison and judgment unit, wherein the signaling message simulation unit is used to simulate the signaling message written by TTCN2 required for testing the voice equipment under test, and the tested voice The equipment interacts with signaling messages; the business message simulation unit is used to simulate the business messages written in accordance with TTCN2 required for testing the voice equipment under test, interact with the voice equipment under test for business messages, and control the test tone simulation module to send The voice device sends a test sound; the comparison and judgment unit is used to judge whether the response result of the tested voice device to the test sound is consistent with the preset result, and determine whether the voice function of the tested voice device is normal. The TTCN2 module may further include: an output unit for outputting the judgment result of the comparison judgment module. the
所述业务消息模拟单元包括被测语音设备业务消息模拟子单元和测试音模拟模块控制子单元,其中,被测语音设备业务消息模拟子单元,用于模拟测试被测语音设备所需的按照TTCN2编写的业务消息,与被测语音设备进行业务消息的交互;测试音模拟模块控制子单元,控制测试音模拟模块向被测语音设备发送测试音。 The service message simulation unit includes a service message simulation subunit of the voice device under test and a test tone simulation module control subunit, wherein the service message simulation subunit of the voice device under test is used for simulating the test voice equipment required according to TTCN2 The written business message interacts with the voice device under test; the test tone simulation module controls the subunit to control the test tone simulation module to send a test tone to the voice device under test. the
所述测试音模拟模块包括电话机和测试适配器,其中,电话机通过测试适配器与被测语音设备相连,所述TTCN2模块与测试适配器相连,用于控制测试适配器动态地将发送测试音的电话机连接到与被测语音设备的语音接口匹配的时隙上。所述测试适配器可以是电信交换机。 The test tone simulation module includes a telephone set and a test adapter, wherein the telephone set is connected with the voice device under test through the test adapter, and the TTCN2 module is connected with the test adapter, and is used to control the test adapter to dynamically send the telephone set of the test tone Connect to the time slot that matches the voice interface of the voice device under test. The test adapter may be a telecommunications switch. the
所述测试音模拟模块是专用语音设备测试工具,专用语音设备测试工具与TTCN2模块相连,用于在TTCN2模块的控制下模拟电话机向被测语音设备发送测试音。 The test tone simulation module is a special voice equipment test tool, and the special voice equipment test tool is connected with the TTCN2 module, and is used to simulate a telephone set to send a test tone to the voice equipment under test under the control of the TTCN2 module. the
所述测试音模拟模块是与被测语音设备相同的语音设备,语音设备与 TTCN2模块相连,用于在TTCN2模块的控制下模拟电话机向被测语音设备发送测试音。 The test tone simulation module is the same voice equipment as the voice equipment under test, and the voice equipment is connected with the TTCN2 module, which is used to simulate the telephone to send the voice equipment under test under the control of the TTCN2 module. the
所述TTCN2模块设置在计算机中,由计算机执行,该系统进一步包括适配器,连在设置TTCN2模块的计算机和被测语音设备之间,用于将计算机所支持的传输控制协议TCP/网际协议IP转换成被测语音设备所支持的七号信令。 Described TTCN2 module is arranged in the computer, is carried out by computer, and this system further comprises adapter, is connected between the computer that arranges TTCN2 module and the voice equipment under test, is used for the Transmission Control Protocol TCP/Internet Protocol IP that computer supports Become the No. 7 signaling supported by the voice device under test. the
本发明还提供一种实现语音设备功能测试的系统,包括被测语音设备,用于接收测试音,生成对测试音的响应结果,该系统还包括TTCN2模块和测试音模拟模块,其中, The present invention also provides a system for realizing the function test of the voice equipment, including the voice equipment under test, which is used to receive the test tone and generate a response result to the test tone. The system also includes a TTCN2 module and a test tone simulation module, wherein,
TTCN2模块与被测语音设备和测试音模拟模块相连,用于模拟测试被测语音设备所需的信令消息和业务消息,控制测试音模拟模块动态地连接到被测语音设备上,接收并输出被测语音设备对测试音的响应结果; The TTCN2 module is connected with the voice equipment under test and the test tone simulation module, and is used to simulate the signaling messages and business messages required for testing the voice equipment under test, and controls the test tone simulation module to dynamically connect to the voice equipment under test, receive and output The response result of the tested voice device to the test tone;
测试音模拟模块通过被测语音设备的语音接口与被测语音设备相连,用于向被测语音设备发送测试音。 The test sound simulation module is connected with the tested voice device through the voice interface of the tested voice device, and is used for sending the test sound to the tested voice device. the
所述测试音模拟模块包括电话机和测试适配器,其中,电话机通过测试适配器与被测语音设备相连,所述TTCN2模块与测试适配器相连,用于控制测试适配器动态地将发送测试音的电话机连接到与被测语音设备的语音接口匹配的时隙上。所述测试适配器是电信交换机。 The test tone simulation module includes a telephone set and a test adapter, wherein the telephone set is connected with the voice device under test through the test adapter, and the TTCN2 module is connected with the test adapter, and is used to control the test adapter to dynamically send the telephone set of the test tone Connect to the time slot that matches the voice interface of the voice device under test. The test adapter is a telecommunications switch. the
所述TTCN2模块包括信令消息模拟单元、业务消息模拟单元和输出单元,其中,信令消息模拟单元,用于模拟测试被测语音设备所需的按照TTCN2编写的信令消息,与被测语音设备进行信令消息的交互;业务消息模拟单元,用于模拟测试被测语音设备所需的按照TTCN2编写的业务消息,与被测语音设备进行业务消息的交互;输出单元,与业务消息模拟单元相连,用于输出被测语音设备上报的对测试音的响应结果。 The TTCN2 module includes a signaling message simulation unit, a service message simulation unit and an output unit, wherein the signaling message simulation unit is used for simulating the signaling message written by TTCN2 required for testing the voice equipment under test, and the tested voice The equipment interacts with signaling messages; the business message simulation unit is used to simulate the business messages written in accordance with TTCN2 required for testing the voice equipment under test, and interacts with the voice equipment under test for business messages; the output unit interacts with the business message simulation unit Connected to output the response result to the test tone reported by the voice device under test. the
所述业务消息模拟单元包括被测语音设备业务消息模拟子单元和测试音模拟模块控制子单元,其中,被测语音设备业务消息模拟子单元,用于模拟测试被测语音设备所需的按照TTCN2编写的业务消息,与被测语音设备 进行业务消息的交互;测试音模拟模块控制子单元,用于控制测试音模拟模块动态地连接到被测语音设备上。 The service message simulation unit includes a service message simulation subunit of the voice device under test and a test tone simulation module control subunit, wherein the service message simulation subunit of the voice device under test is used for simulating the test voice equipment required according to TTCN2 The written business message interacts with the voice device under test; the test tone simulation module control subunit is used to control the dynamic connection of the test tone simulation module to the voice device under test. the
本发明另外提供一种实现语音设备功能测试的方法,该方法包括: The present invention additionally provides a method for realizing voice equipment functional testing, the method comprising:
A、发送测试被测语音设备所需的按照TTCN2编写的控制消息,驱动被测语音设备进入接收测试音状态; A. Send the control message written according to TTCN2 required for testing the voice device under test, and drive the voice device under test to enter the state of receiving the test tone;
B、向被测语音设备发送测试音,被测语音设备对测试音做出响应; B. Send a test tone to the voice device under test, and the voice device under test responds to the test tone;
C、判断被测语音设备的响应结果与预先设定的结果是否一致,确定被测语音设备的语音功能是否正常。 C. Judging whether the response result of the voice device under test is consistent with the preset result, and determining whether the voice function of the voice device under test is normal. the
步骤B中所述向被测语音设备发送测试音,包括:发送按照TTCN2编写的消息,控制连在被测语音设备上的专用语音设备测试工具向被测语音设备发送测试音。 Sending the test tone to the voice device under test described in step B includes: sending a message written according to TTCN2, and controlling the special voice device test tool connected to the voice device under test to send the test tone to the voice device under test. the
步骤B中所述向被测语音设备发送测试音,包括:发送按照TTCN2编写的消息,控制连在被测语音设备上的与被测语音设备相同的语音设备向被测语音设备发送测试音。 Sending the test tone to the voice device under test described in step B includes: sending a message written according to TTCN2, and controlling the same voice device connected to the voice device under test as the voice device under test to send the test tone to the voice device under test. the
步骤B中所述向被测语音设备发送测试音,包括:通过电话机经由测试适配器向被测语音设备发送测试音。 The sending the test tone to the voice device under test in step B includes: sending the test tone to the voice device under test through the telephone set via the test adapter. the
从以上技术方案可以看到,本发明提供的实现语音设备功能测试的系统和方法具有以下有益效果:在语音设备功能测试中引入协议测试工具TTCN2,模拟测试被测语音设备所需的信令消息和业务消息,结合语音设备测试工具等测试手段,实现语音设备功能测试的半自动化和全自动化;另外,由于采用TTCN2模块模拟真实测试环境的组网,所以大大简化了测试环境,节省了设备投资,节约了测试环境的搭建及维护时间,并且可以在协议测试、功能测试阶段都采用TTCN2模块,于是可以实现测试工具归一化、测试脚本重用。 As can be seen from the above technical solutions, the system and method for realizing the voice equipment function test provided by the present invention have the following beneficial effects: in the voice equipment function test, the protocol test tool TTCN2 is introduced to simulate the required signaling messages of the voice equipment under test and business information, combined with testing methods such as voice equipment testing tools, to realize semi-automation and full automation of voice equipment function testing; in addition, because the TTCN2 module is used to simulate the networking of the real test environment, the test environment is greatly simplified and equipment investment is saved , which saves the construction and maintenance time of the test environment, and the TTCN2 module can be used in the protocol test and function test stages, so the normalization of test tools and the reuse of test scripts can be realized. the
附图说明Description of drawings
图1是根据本发明实施例一的语音设备功能半自动化测试的环境组网 Fig. 1 is the environmental networking of the voice equipment function semi-automated test according to Embodiment 1 of the present invention
图2是根据本发明实施例一的TTCN2模块的组成结构示意图; Fig. 2 is a schematic diagram of the composition structure of the TTCN2 module according to Embodiment 1 of the present invention;
图3是根据本发明实施例一的语音设备功能测试中收号功能半自动化测试的消息交互图; Fig. 3 is a message interaction diagram of the semi-automatic test of the number receiving function in the voice equipment function test according to Embodiment 1 of the present invention;
图4是根据本发明实施例二的TTCN2模块的组成结构示意图; Fig. 4 is a schematic diagram of the composition structure of the TTCN2 module according to Embodiment 2 of the present invention;
图5是根据本发明实施例三的语音设备功能全自动化测试的环境组网图; Fig. 5 is the environmental networking diagram of the fully automatic test of voice equipment function according to the third embodiment of the present invention;
图6是根据本发明实施例三的语音设备功能测试中收号功能全自动化测试的消息交互图。 Fig. 6 is a message interaction diagram of a fully automated test of the number receiving function in the voice device function test according to Embodiment 3 of the present invention. the
具体实施方式Detailed ways
为了使本发明的优点和特征更加清楚明白,下面参考附图结合具体实施例对本发明再作进一步详细的描述。 In order to make the advantages and features of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments with reference to the accompanying drawings. the
电信语音设备的目的是为了给电信网提供语音资源、实现增值业务和智能网业务。这类设备的对外接口一般包括三部分: The purpose of telecom voice equipment is to provide voice resources for the telecom network and realize value-added services and intelligent network services. The external interface of such equipment generally includes three parts:
信令接口:电信语音设备通过信令接口与外部设备进行信令消息的交互,信令一般采用七号信令,用作电信语音设备的基本消息驱动; Signaling interface: Telecom voice equipment interacts with external equipment for signaling messages through the signaling interface. Signaling generally uses No. 7 signaling, which is used as the basic message driver for telecom voice equipment;
语音接口:电信语音设备一般采用E1中继线与外部设备相连,接收和提供语音资源; Voice interface: Telecom voice equipment generally uses E1 trunk lines to connect with external equipment to receive and provide voice resources;
业务接口:电信语音设备通过业务接口与外部设备进行业务消息的交互,用以控制电信语音设备实现各种各样的业务,一般采用基于传输控制协议(TCP,Transmission Control Protocol)的消息接口。 Service interface: Telecom voice equipment interacts with external equipment for business messages through the service interface to control telecom voice equipment to implement various services. Generally, a message interface based on Transmission Control Protocol (TCP, Transmission Control Protocol) is used. the
对于信令接口,本发明考虑到是信令消息交互方面的操作,可以采用国际标准规定的协议测试工具树和表的组合表示法-2(TTCN2,Tree andTabular Combined Notation-2)来模拟通过电信语音设备信令接口的信令消息,实现协议测试及语音设备功能测试所需的消息驱动;对于业务接口,也可以采用国际标准TTCN2来模拟通过电信语音设备业务接口的业务消息, 为了避免在测试过程中根据测试内容不断修改业务脚本,还可以按照TTCN2编写所有测试所需的业务消息,用以对电信语音设备进行业务控制;而对于语音接口,本发明采用两种方案,一种方案是将电话机通过测试适配器连接到语音接口上,人工通过电话机拨号发送测试音,进而判断收、放音等是否正确,以此来实现半自动化的语音功能测试;另一种方案是将专用语音设备测试工具连接到被测语音设备的语音接口上,模拟人工通过电话机发送的测试音,以进行收、放音等功能的测试,实现全自动化的语音功能测试。 For the signaling interface, the present invention considers the operation of the signaling message interaction aspect, and can adopt the combination representation method-2 (TTCN2, Tree and Tabular Combined Notation-2) of the protocol test tool tree and table specified by the international standard to simulate the communication through telecommunication. The signaling message of the voice equipment signaling interface realizes the message drive required for protocol testing and voice equipment function testing; for the service interface, the international standard TTCN2 can also be used to simulate the business message passing through the service interface of the telecommunications voice equipment, in order to avoid testing In the process, the service script is constantly modified according to the test content, and all test required service messages can also be written according to TTCN2, so as to carry out service control to the telecommunication voice equipment; The telephone is connected to the voice interface through the test adapter, and the test tone is sent manually through the telephone dial, and then judges whether the reception and playback are correct, so as to realize the semi-automatic voice function test; another solution is to use the dedicated voice equipment The test tool is connected to the voice interface of the voice device under test, and simulates the test tone sent manually through the telephone to test functions such as receiving and playing, and realizes a fully automated voice function test. the
本发明的主要思想是:利用TTCN2模块模拟测试被测语音设备所需的信令消息和业务消息,屏蔽掉测试被测语音设备的真实环境,通过控制测试音模拟模块向被测语音设备发送测试音,对被测语音设备进行测试。 The main idea of the present invention is: use the TTCN2 module to simulate the signaling message and service message required for testing the voice equipment under test, shield the real environment of testing the voice equipment under test, and send the test tone to the voice equipment under test by controlling the test tone simulation module. Tone, to test the voice device under test. the
下面,结合实施例一、实施例二和实施例三分别描述半自动化和全自动化这两种语音功能测试方案。其中,实施例一是半自动化测试方案,需要由测试人员通过电话机输入测试音,由系统判断测试是否正确;实施例二也是自动化测试方案,由测试人员通过电话机输入测试音并判断测试是否正确;实施例三是全自动化测试方案,由系统自动控制输入测试音并判断测试是否正确。 In the following, the semi-automated and fully-automated speech function testing schemes are respectively described in combination with Embodiment 1, Embodiment 2 and Embodiment 3. Among them, the first embodiment is a semi-automatic test scheme, which requires the tester to input the test tone through the telephone, and the system judges whether the test is correct; embodiment two is also an automated test scheme, and the tester inputs the test tone through the telephone and judges whether the test is correct Correct; Embodiment 3 is a fully automated test solution, in which the system automatically controls the input of test sounds and judges whether the test is correct. the
实施例一 Embodiment one
首先,参见图1、图2和图3,描述语音设备功能测试的半自动化方案。 First, referring to FIG. 1 , FIG. 2 and FIG. 3 , the semi-automated solution of the function test of the voice device is described. the
参见图1,图1示出了根据本发明实施例一的语音设备功能半自动化测试的环境组网图。从图1中可以看到,实现语音设备功能半自动化测试的系统包括TTCN2模块、被测语音设备和测试音模拟模块。 Referring to FIG. 1 , FIG. 1 shows a network diagram of an environment for semi-automatic testing of voice device functions according to Embodiment 1 of the present invention. It can be seen from Figure 1 that the system for semi-automatic testing of voice equipment functions includes a TTCN2 module, a voice equipment under test and a test tone simulation module. the
TTCN2模块与被测语音设备和测试音模拟模块相连,用于模拟测试被测语音设备所需的信令消息和业务消息,对被测语音设备进行测试;参见图2,TTCN2模块包括信令消息模拟单元、业务消息模拟单元和比较判断单元。 The TTCN2 module is connected with the voice device under test and the test tone simulation module, and is used to simulate the signaling messages and service messages required for testing the voice device under test, and to test the voice device under test; see Figure 2, the TTCN2 module includes signaling messages A simulation unit, a service message simulation unit and a comparison and judgment unit. the
信令消息模拟单元与被测语音设备的信令接口相连,用于向被测语音设备发送测试所需的按照TTCN2编写的信令消息,与被测语音设备进行信令消息的交互,为被测语音设备的测试做准备。 The signaling message simulation unit is connected to the signaling interface of the voice device under test, and is used to send the signaling message written according to TTCN2 to the voice device under test, and interact with the voice device under test for the Prepare for the test of the test voice device. the
业务消息模拟单元与被测语音设备的业务接口和测试音模拟模块相连,用于向被测语音设备发送测试所需的业务消息,与被测语音设备进行业务消息的交互,并控制测试音模拟模块向被测语音设备发送测试音。根据业务消息模拟单元所模拟的业务消息的不同,业务消息模拟单元可以包括被测语音设备业务消息模拟子单元和测试音模拟模块控制子单元,被测语音设备业务消息模拟子单元用于与被测语音设备进行业务消息的交互,而测试音模拟模块控制子单元用于控制测试音模拟模块向被测语音设备发送测试音。 The service message simulation unit is connected with the service interface of the voice device under test and the test tone simulation module, and is used to send the service message required for the test to the voice device under test, interact with the service message of the voice device under test, and control the test tone simulation The module sends a test tone to the voice device under test. According to the different business messages simulated by the business message simulation unit, the business message simulation unit can include a service message simulation subunit of the voice equipment under test and a test tone simulation module control subunit, and the business message simulation subunit of the voice equipment under test is used for communicating with the voice equipment under test. The voice device under test interacts with service messages, and the test tone simulation module control subunit is used to control the test tone simulation module to send a test tone to the voice device under test. the
比较判断单元,与业务消息模拟单元相连,具体地,可以连接到业务消息模拟单元中的被测语音设备业务消息模拟子单元,用于接收被测语音设备业务消息模拟子单元发送的被测语音设备对测试音的响应结果,并判断该响应结果是否与预先设定的结果一致。通常情况下,比较判断单元中预先保存被测语音设备测试用例的正确结果,在被测语音设备对测试音进行响应并将响应结果发送至业务消息模拟单元,业务消息模拟单元在将响应结果发送至比较判断单元后,比较判断单元对预先设定的结果与被测语音设备发送来的响应结果进行比较,判断二者是否一致,确定被测语音设备的语音功能是否正常。 The comparison and judgment unit is connected to the service message simulation unit, specifically, can be connected to the service message simulation subunit of the voice device under test in the service message simulation unit, and is used to receive the voice under test sent by the service message simulation subunit of the voice device under test The response result of the device to the test tone, and judge whether the response result is consistent with the preset result. Usually, the correct result of the test case of the voice device under test is pre-stored in the comparison and judgment unit, and the voice device under test responds to the test tone and sends the response result to the business message simulation unit, and the business message simulation unit sends the response result to After arriving at the comparison and judgment unit, the comparison and judgment unit compares the preset result with the response result sent by the voice device under test, judges whether the two are consistent, and determines whether the voice function of the voice device under test is normal. the
TTCN2模块还可以进一步包括输出单元,输出单元与比较判断单元相连,用于输出比较判断单元的判断结果。 The TTCN2 module may further include an output unit connected to the comparison and judgment unit for outputting the judgment result of the comparison and judgment unit. the
TTCN2模块可以设置在计算机中,由计算机执行。这时,为了使基于TCP/IP传输协议的计算机与基于七号信令的被测语音设备能进行通信,还需要在TTCN2模块所在的计算机和被测语音设备之间设置适配器,这种适配器可以是信令适配器,其作用就是将计算机所支持的TCP/IP协议转换成被测语音设备所支持的七号信令,以使二者进行通信。 The TTCN2 module can be set in a computer and executed by the computer. At this time, in order to enable the computer based on the TCP/IP transmission protocol to communicate with the tested voice device based on No. 7 signaling, it is also necessary to set an adapter between the computer where the TTCN2 module is located and the tested voice device. It is a signaling adapter, whose function is to convert the TCP/IP protocol supported by the computer into the No. 7 signaling supported by the voice device under test, so that the two can communicate. the
在本实施例中,测试音模拟模块包括测试适配器和电话机,由于没有搭建真实的测试环境,被测语音设备的语音接口与电话机的接口不相匹配,所以在电话机与被测语音设备之间设置测试适配器,电话机通过测试适配器与被测语音设备的语音接口相连,用于向被测语音设备发送测试音,另外,被 测语音设备还可能与多台电话机相连,例如在图1中,被测语音设备与三台电话机相连,在这种情况的测试过程中,电话机发出音频信号的电路时隙与被测语音设备接收的时隙必须匹配,于是测试适配器的作用还包括在业务消息模拟单元中的测试音模拟模块控制子单元的控制下动态地把发出音频信号的电话机搭接到被测语音设备与之匹配的E1时隙上,一般的电信交换机都能实现此功能,例如华为的CC08交换机就可以采用半永久连接的方式来实现此功能。 In this embodiment, the test tone simulation module includes a test adapter and a telephone set. Since a real test environment is not set up, the voice interface of the voice device under test does not match the interface of the telephone set. A test adapter is set between them, and the phone is connected to the voice interface of the tested voice device through the test adapter, and is used to send a test tone to the tested voice device. In addition, the tested voice device may also be connected to multiple telephones, for example, in Fig. In 1, the voice device under test is connected to three telephones. During the test in this case, the circuit time slot for the audio signal sent by the telephone must match the time slot received by the voice device under test, so the function of the test adapter is still Under the control of the test tone simulation module control subunit included in the business message simulation unit, the telephone set that sends out the audio signal is dynamically connected to the E1 time slot that matches the voice device under test, which can be realized by general telecommunication switches For this function, for example, Huawei's CC08 switch can implement this function by using a semi-permanent connection. the
利用TTCN2模块测试被测语音设备的过程如下:TTCN2模块的信令消息模拟单元向被测语音设备发送测试所需的按照TTCN2编写的信令消息,与被测语音设备进行信令消息的交互,根据测试用例的需要,业务消息模拟单元中的被测语音设备业务消息模拟子单元向被测语音设备发送按照TTCN2编写的业务消息,与被测语音设备进行业务消息的交互,驱动被测语音设备进入接收测试音的状态,并且业务消息模拟单元中的测试音模拟模块控制子单元控制测试适配器动态地把电话机搭接到被测语音设备与之匹配的E1时隙上,测试人员通过在电话机上拨号发送测试音,被测语音设备根据收到的测试音做出响应,并将响应结果上报给TTCN2模块的业务消息模拟单元中的被测语音设备业务消息模拟子单元,被测语音设备业务消息模拟子单元再将结果发送给比较判断单元,比较判断单元对被测语音设备做出的响应与预先保存的实际应该做出的响应进行比较,以判断测试是否正确。 The process of using the TTCN2 module to test the voice device under test is as follows: the signaling message simulation unit of the TTCN2 module sends the signaling message written according to TTCN2 required by the test to the voice device under test, and interacts with the voice device under test for signaling messages. According to the needs of test cases, the business message simulation subunit of the voice device under test in the business message simulation unit sends a business message written according to TTCN2 to the voice device under test, interacts with the voice device under test, and drives the voice device under test Enter the state of receiving the test tone, and the test tone simulation module control subunit in the service message simulation unit controls the test adapter to dynamically connect the telephone set to the E1 time slot that matches the voice device under test. The machine dials to send the test tone, and the voice device under test responds according to the received test tone, and reports the response result to the service message simulation subunit of the voice device under test in the service message simulation unit of the TTCN2 module. The message simulation subunit then sends the result to the comparison and judgment unit, and the comparison and judgment unit compares the response made by the tested voice device with the pre-saved actual response that should be made to judge whether the test is correct. the
下面,参见图3,以测试被测语音设备的收号功能为例描述半自动化测试方案的消息交互流程。图3示出根据本发明实施例一的收号功能半自动化测试的消息交互流程。在图3中,通过信令接口与被测语音设备相连并向被测语音设备发送信令消息的PSTN由TTCN2模块的信令消息模拟单元进行模拟,通过业务接口与被测语音设备相连并向被测语音设备发送业务消息的业务设备采用TTCN2模块的业务消息模拟单元进行模拟。TTCN2模块的信令消息模拟单元和业务消息模拟单元驱动被测语音设备进入通话、收号状态。测试人员仅仅在通话阶段按照测试用例的需要手工拨打若干个号码产生 音频模拟信号,音频模拟信号经过测试适配器进行模拟/数字转换,转换成数字信号,被测语音设备接收数字信号,并将其还原成电话号码上报给TTCN2模块的比较判断单元,TTCN2模块的比较判断单元判断收号是否正确,从而完成语音设备收号功能的测试。收号功能的半自动化测试过程及步骤如下: Next, referring to FIG. 3 , the message interaction process of the semi-automatic test solution is described by taking the number collection function of the voice device under test as an example. FIG. 3 shows a message interaction process of the semi-automatic test of the number collection function according to Embodiment 1 of the present invention. In Figure 3, the PSTN that is connected to the voice device under test through the signaling interface and sends signaling messages to the voice device under test is simulated by the signaling message simulation unit of the TTCN2 module, connected to the voice device under test through the service interface and sent to the voice device under test The business equipment that sends the business message of the voice equipment under test is simulated by the business message simulation unit of the TTCN2 module. The signaling message simulation unit and service message simulation unit of the TTCN2 module drive the voice device under test to enter the state of talking and receiving numbers. The tester only manually dials several numbers according to the needs of the test case during the call phase to generate an audio analog signal. The audio analog signal is converted into a digital signal through the analog/digital conversion of the test adapter, and the voice device under test receives the digital signal and restores it. The completed telephone number is reported to the comparison and judgment unit of the TTCN2 module, and the comparison and judgment unit of the TTCN2 module judges whether the number collection is correct, thereby completing the test of the voice equipment collection function. The semi-automatic testing process and steps of the number collection function are as follows:
步骤301-步骤305:建立呼叫。TTCN2模块的信令消息模拟单元模拟PSTN向被测语音设备发送初始地址消息(IAM),被测语音设备接到此消息后,将消息SP_Setup发送给TTCN2模块的业务消息模拟单元,业务消息模拟单元处理该消息,然后回送给被测语音设备一个确认消息SP_SetupAck和被叫振铃消息SP_Alerting,被测语音设备向TTCN2模块的信令消息模拟单元发送地址全消息(ACM),并向TTCN2模块的业务消息模拟单元发送通知消息SP_Notify。TTCN2模块的业务消息模拟单元继而向被测语音设备下发应答消息SP_Answer,被测语音设备接到应答消息后,返回确认消息SP_AnswerAck,并向TTCN2模块的信令消息模拟单元发送应答消息(ANC),以上整个过程都是通过在TTCN2模块中编写TTCN2脚本来模拟真实测试环境下PSTN和业务平台进行处理的。通过上面这些消息的交互,被测语音设备已经做好准备可以进行收号了。 Step 301-Step 305: Establish a call. The signaling message simulation unit of the TTCN2 module simulates PSTN to send an initial address message (IAM) to the voice device under test. After the voice device under test receives this message, it sends the message SP_Setup to the service message simulation unit of the TTCN2 module. The service message simulation unit Process the message, then send back an acknowledgment message SP_SetupAck and called ringing message SP_Alerting to the voice device under test, the voice device under test sends an address full message (ACM) to the signaling message simulation unit of the TTCN2 module, and sends a message to the service of the TTCN2 module The message simulation unit sends a notification message SP_Notify. The business message simulation unit of the TTCN2 module then sends an answer message SP_Answer to the voice device under test. After receiving the answer message, the voice device under test returns an acknowledgment message SP_AnswerAck, and sends an answer message (ANC) to the signaling message simulation unit of the TTCN2 module. , the above entire process is processed by writing TTCN2 scripts in the TTCN2 module to simulate the PSTN and service platform in the real test environment. Through the interaction of the above messages, the voice device under test is ready to receive numbers. the
步骤306-步骤307:通话。经过步骤301-步骤305后,被测语音设备已经进入正常的通话阶段。在TTCN2模块的比较判断单元中,根据测试用例的需要会预先保存需要测试的测试内容、正确的测试结果。TTCN2模块的业务消息模拟单元向被测语音设备下发开始收号消息SP_DigitCollect,被测语音设备进入收号状态,这时测试人员根据测试用例手工在电话机上拨号,例如,测试用例需要拨1,那么测试人员通过在电话机上拨号码1发送测试音,拨号1产生的音频模拟信号通过测试适配器转换成数字信号,然后通过被测语音设备的语音接口传送到被测语音设备中,被测语音设备将接收到的数字信号还原成电话号码,通过消息SP_DigitResult上报给TTCN2模块的比较判断单元,比较判断单元将消息SP_DigitResult中包含的电话号码 与预先保存的被测语音设备应该收到的电话号码进行比较,以确认测试是否正确。 Step 306-Step 307: call. After step 301-
一般来说,TTCN2模块可以设置在计算机中,这时,测试结果可以通过计算机的屏幕输出,或者通过其它的声音输出设备输出。 Generally speaking, the TTCN2 module can be set in the computer. At this time, the test results can be output through the computer screen or through other sound output devices. the
步骤308:结束呼叫。收号功能测试结束后,TTCN2模块的的业务控制消息模拟单元下发释放通话的消息SP_Release,被测语音设备拆除通话,测试结束。 Step 308: End the call. After the number collection function test is over, the service control message simulation unit of the TTCN2 module sends the call release message SP_Release, the voice device under test disconnects the call, and the test ends. the
从以上步骤可以看到,由于TTCN2模块采用了本身就是国际标准规定的协议测试工具TTCN2,所以可以从信令和业务上模拟PSTN、SSP、CTI等设备,不需要搭建真实的测试环境,从而大大简化了测试环境,节省了设备投资,减少了测试环境的搭建时间,提高了测试效率,测试过程中只需要通过测试人员的简单拨号就可以实现对被测语音设备收号功能的半自动化测试。另外,还可以在TTCN2模块中编写测试其它语音功能的TTCN2脚本,一次性地测试其它语音功能,例如放音、录音等功能。 From the above steps, it can be seen that since the TTCN2 module adopts the protocol test tool TTCN2 which is stipulated by international standards, it can simulate PSTN, SSP, CTI and other equipment in terms of signaling and business without setting up a real test environment, thus greatly It simplifies the test environment, saves equipment investment, reduces the construction time of the test environment, and improves the test efficiency. During the test, only the simple dial-up of the tester can realize the semi-automatic test of the number receiving function of the tested voice device. In addition, TTCN2 scripts for testing other voice functions can also be written in the TTCN2 module to test other voice functions at one time, such as playback and recording. the
实施例二 Example two
参见图4,描述半自动化语音设备功能测试方案中的TTCN2模块的另一组成结构示意图。图4示出根据本实施例的TTCN2模块的组成结构示意图。在本实施例中,语音设备功能半自动化测试的环境组网和测试过程与实施例一类似,不同之处在于不是由TTCN2模块的比较判断模块判断测试结果,而是由测试人员自己判断测试是否正确,这时,参见图4,TTCN2模块可以不包括比较判断单元,输出单元直接与TTCN2模块的业务消息模拟单元相连,具体地,可以连接到业务消息模拟单元中的被测语音设备业务消息模拟子单元,用于从被测语音设备业务消息模拟子单元接收被测语音设备上报的响应结果并将其输出,由测试人员判断输出的响应结果与自己通过电话机输入的测试音是否一致,从而可以完成测试。TTCN2一般可以通过计算机执行,这时,被测语音设备上报的测试结果可以通过计算机屏幕或声音输出设备输出,于是,测试人员通过看屏幕或听声音就可以判断测试是否正确。 Referring to FIG. 4 , it is a schematic diagram illustrating another composition and structure of the TTCN2 module in the semi-automatic voice device function test solution. FIG. 4 shows a schematic diagram of the composition and structure of the TTCN2 module according to this embodiment. In this embodiment, the environmental networking and test process of the voice device function semi-automatic test are similar to the first embodiment, the difference is that the test result is not judged by the comparison and judgment module of the TTCN2 module, but by the tester himself. Correct, at this time, referring to Figure 4, the TTCN2 module may not include a comparison and judgment unit, and the output unit is directly connected to the service message simulation unit of the TTCN2 module, specifically, it can be connected to the service message simulation of the voice device under test in the service message simulation unit The subunit is used to receive the response result reported by the tested voice device from the service message simulation subunit of the tested voice device and output it, and the tester judges whether the output response result is consistent with the test tone input by himself through the telephone set, thereby The test can be done. TTCN2 can generally be executed by computer. At this time, the test result reported by the tested voice device can be output through the computer screen or sound output device, so the tester can judge whether the test is correct by looking at the screen or listening to the sound. the
实施例三 Embodiment three
下面,参见图5和图6,描述语音设备功能测试的全自动化方案。 Next, referring to FIG. 5 and FIG. 6 , a fully automated solution for functional testing of voice equipment will be described. the
参见图5,图5示出了根据本发明实施例三的语音设备功能全自动化测试的环境组网图。从图5中可以看到,与实施例一所述相似,实现语音设备功能全自动化测试的系统也包括TTCN2模块、被测语音设备和测试音模拟模块,不同的是,在本实施例中,测试音模拟模块是语音设备测试工具。 Referring to FIG. 5 , FIG. 5 shows a network diagram of an environment for fully automated testing of voice device functions according to Embodiment 3 of the present invention. As can be seen from Fig. 5, similar to that described in Embodiment 1, the system for realizing the fully automated testing of voice equipment functions also includes a TTCN2 module, a voice equipment under test and a test tone simulation module. The difference is that in this embodiment, The test tone simulation module is a voice device testing tool. the
与实施例一类似,TTCN2模块与被测语音设备和测试音模拟模块语音设备测试工具相连,用于对被测语音设备进行测试。同样地,TTCN2模块也包括信令消息模拟单元、业务消息模拟单元和比较判断单元。业务消息模拟单元可以包括被测语音设备业务消息模拟子单元和测试音模拟模块控制子单元,与实施例一不同的是,测试音模拟模块控制子单元在本实施例中用于向语音设备测试工具发送控制消息,控制语音设备测试工具向被测语音设备发送测试音。TTCN2模块的其它单元以及利用TTCN2模块进行测试的原理和过程与实施例一相同,这里不再赘述。 Similar to Embodiment 1, the TTCN2 module is connected with the voice equipment under test and the voice equipment testing tool of the test tone simulation module, and is used for testing the voice equipment under test. Similarly, the TTCN2 module also includes a signaling message simulation unit, a service message simulation unit and a comparison and judgment unit. The service message simulation unit may include a service message simulation subunit of the voice device under test and a test tone simulation module control subunit. The difference from Embodiment 1 is that the test tone simulation module control subunit is used in this embodiment to test the voice equipment. The tool sends a control message to control the voice device testing tool to send a test tone to the voice device under test. Other units of the TTCN2 module and the principle and process of using the TTCN2 module for testing are the same as those in Embodiment 1, and will not be repeated here. the
语音设备测试工具通过被测语音设备的语音接口与被测语音设备相连,用于在TTCN2模块的控制下向被测语音设备发送测试语音设备功能的测试音。语音设备测试工具的作用与实施例一中的电话机相似,只不过不用人工拨号产生测试音,而是在测试音模拟模块控制子单元的控制下由语音设备测试工具本身所具有的播放语音的功能实现。语音设备测试工具可以采用专用的工具,例如美国Ameritec公司生产的专用语音设备测试工具。另外,也可以直接采用与被测语音设备相同的语音设备,因为被测语音设备本身具有语音功能,可以播放语音,所以只需要利用播放语音的功能,由TTCN2模块控制,播放语音,产生测试音。 The voice device testing tool is connected to the voice device under test through the voice interface of the voice device under test, and is used to send a test tone for testing the function of the voice device to the voice device under test under the control of the TTCN2 module. The effect of voice equipment testing tool is similar to the telephone set in embodiment one, just need not manually dial to produce test tone, but under the control of the control subunit of test tone simulation module, by the playback voice that voice equipment testing tool itself has The function is realized. The voice equipment testing tool may adopt a dedicated tool, for example, a dedicated voice equipment testing tool produced by Ameritec Corporation of the United States. In addition, it is also possible to directly use the same voice equipment as the voice equipment under test, because the voice equipment under test itself has a voice function and can play voice, so it only needs to use the function of playing voice, controlled by the TTCN2 module, to play voice and generate a test sound . the
下面,参见图6,以被测语音设备的收号功能测试为例,说明全自动化测试方案的消息交互流程。图6是根据本发明实施例三的语音设备功能测试中收号功能全自动化测试的消息交互图。在图6中,TTCN2模块的信令消息模拟单元模拟PSTN,业务消息模拟单元模拟相关业务设备,驱动被测语 音设备进入通话、收号状态。语音设备测试工具仅仅在进入通话阶段后在TTCN2模块的业务消息模拟单元的控制下播放双音多频(DTMF,Dual ToneMulti-Frequency)语音,模拟测试人员通过电话机拨号产生的号码,具体地,收号功能的全自动化测试过程及步骤如下: Next, referring to FIG. 6 , the message interaction process of the fully automated test solution will be described by taking the number collection function test of the voice device under test as an example. Fig. 6 is a message interaction diagram of a fully automated test of the number receiving function in the voice device function test according to Embodiment 3 of the present invention. In Figure 6, the signaling message simulation unit of the TTCN2 module simulates PSTN, and the service message simulation unit simulates related business equipment to drive the voice equipment under test to enter the state of talking and receiving numbers. The voice device test tool only plays dual-tone multi-frequency (DTMF, Dual ToneMulti-Frequency) voice under the control of the service message simulation unit of the TTCN2 module after entering the conversation stage, and simulates the number generated by the dialing of the tester by the telephone, specifically, The fully automated testing process and steps of the number collection function are as follows:
步骤601-步骤605:建立呼叫。TTCN2模块的信令消息模拟单元模拟PSTN向被测语音设备发送初始地址消息(IAM),被测语音设备接到此消息后,发送消息SP_Setup给TTCN2模块的业务消息模拟单元,业务消息模拟单元处理该消息,回送给被测语音设备一个确认消息SP_SetupAck和被叫振铃消息SP_Altering。然后被测语音设备向TTCN2模块的信令消息模拟单元发送地址全消息(ACM),并向TTCN2的业务消息模拟单元模块发送通知消息SP_Notify。随后,TTCN2模块的业务消息模拟单元向被测语音设备下发应答消息SP_Answer,被测语音设备接到应答消息后,向TTCN2模块的业务消息模拟单元回送确认消息SP_AnswerAck,并向TTCN2模块的信令消息模拟单元回送应答消息(ANC)。以上是呼叫建立阶段,是为了实现收号测试所必须要做的信令消息和业务消息的准备工作。 Step 601-Step 605: Establish a call. The signaling message simulation unit of the TTCN2 module simulates PSTN to send an initial address message (IAM) to the voice device under test. After receiving the message, the voice device under test sends a message SP_Setup to the service message simulation unit of the TTCN2 module, and the service message simulation unit processes This message sends an acknowledgment message SP_SetupAck and called ringing message SP_Altering back to the voice device under test. Then the voice device under test sends an address complete message (ACM) to the signaling message simulation unit of the TTCN2 module, and sends a notification message SP_Notify to the service message simulation unit module of the TTCN2. Subsequently, the service message simulation unit of the TTCN2 module sends an answer message SP_Answer to the voice device under test. The message simulation unit sends back an answer message (ANC). The above is the call establishment stage, which is the preparation of the signaling message and service message that must be done in order to realize the number receiving test. the
步骤606-步骤610:通话。这时被测语音设备已经进入正常通话阶段,TTCN2模块的业务消息模拟单元向被测语音设备下发开始收号消息SP_DigitCollect,被测语音设备进入收号状态。这时,TTCN2模块的测试音模拟模块控制子单元向语音设备测试工具下发播放DTMF语音的消息PlayDTMF,语音设备测试工具向测试音模拟模块控制子单元发送播放确认消息PlayDTMFAck,被测语音设备通过语音接口接收语音设备测试工具播放的语音,该语音与实施例一中经过测试适配器转换的信号是同一种类的信号,被测语音设备收到该信号后,会将其转化成电话号码,语音设备测试工具向TTCN2模块的测试音模拟模块控制子单元发送消息Play_End,播放和接收完毕,被测语音设备通过消息SP_DigitResult将还原的电话号码上报给TTCN2模块的比较判断单元。 Step 606-Step 610: Call. At this time, the voice device under test has entered the normal conversation stage, and the service message simulation unit of the TTCN2 module sends the message SP_DigitCollect to start receiving digits to the voice device under test, and the voice device under test enters the digit collection state. At this time, the test tone simulation module control subunit of the TTCN2 module sends the message PlayDTMF of playing DTMF voice to the voice device test tool, and the voice device test tool sends the playback confirmation message PlayDTMFAck to the test tone simulation module control subunit, and the tested voice device passes The voice interface receives the voice played by the voice device test tool, which is the same type of signal as the signal converted by the test adapter in Embodiment 1. After the voice device under test receives the signal, it will be converted into a phone number, and the voice device The test tool sends the message Play_End to the control subunit of the test tone simulation module of the TTCN2 module. After playing and receiving, the voice device under test reports the restored telephone number to the comparison and judgment unit of the TTCN2 module through the message SP_DigitResult. the
TTCN2模块的比较判断单元根据测试用例预先保存测试内容和测试结 果,也就是说,TTCN2模块的比较判断单元预先保存语音设备测试工具具体播放的音频信号对应的电话号码,于是TTCN2模块的比较判断单元只要将所保存的电话号码与被测语音设备上报的电话号码进行比较,如果两者一致,说明收号正确,否则说明收号错误。这样就实现了被测语音设备收号功能的测试。例如,TTCN2模块的比较判断单元预先保存电话号码1,待被测语音设备收号结束并将收号结果上报给比较判断单元后,比较判断单元将被测语音设备上报的结果与比较判断单元预先保存的1的进行比较,确定收号是否一致。 The comparison and judgment unit of the TTCN2 module pre-saves the test content and test results according to the test case. The unit only needs to compare the saved phone number with the phone number reported by the voice device under test. If the two are consistent, it means that the received number is correct, otherwise it means that the received number is wrong. In this way, the test of the number receiving function of the voice device under test is realized. For example, the comparison and judgment unit of the TTCN2 module saves the phone number 1 in advance, and after the voice device under test finishes receiving the number and reports the number collection result to the comparison and judgment unit, the comparison and judgment unit compares the result reported by the voice device under test with the comparison and judgment unit in advance. Compare the stored 1's to determine whether the received numbers are consistent. the
另外,在测试过程中,需要注意被测语音设备和语音设备测试工具两边电路时隙的配合,即两边放音、收号的时隙必须一致。由于两边都受TTCN2模块的控制,所以只需要TTCN2模块的信令消息模拟单元在发起呼叫时在IAM消息中的带上电路识别码(CIC,Circuit Identification Code),然后通知测试音模拟模块控制子单元,测试音模拟模块控制子单元通知语音设备测试工具在具有该CIC的电路上播放DTMF语音,即可保证两边的时隙一致。 In addition, during the test, it is necessary to pay attention to the coordination of the circuit time slots on both sides of the voice device under test and the voice device test tool, that is, the time slots for sound playback and number collection on both sides must be consistent. Because both sides are controlled by the TTCN2 module, so only the signaling message simulation unit of the TTCN2 module needs to carry the circuit identification code (CIC, Circuit Identification Code) in the IAM message when initiating a call, and then notify the test tone simulation module control unit unit, the test tone simulation module control subunit notifies the voice device test tool to play DTMF voice on the circuit with the CIC, which can ensure that the time slots on both sides are consistent. the
步骤611:结束呼叫。收号功能测试结束后,比较判断单元触发业务消息模拟单元下发释放通话的消息SP_Release,被测语音设备拆除通话,测试结束。 Step 611: End the call. After the number collection function test is over, the comparison and judgment unit triggers the service message simulation unit to send the call release message SP_Release, the voice device under test disconnects the call, and the test ends. the
从以上步骤可以看到,本发明不需要真实的测试环境,只需要通过TTCN2模块的信令消息模拟单元和业务消息模拟单元分别模拟测试被测语音设备收号功能所需的信令消息和业务消息,通过TTCN2模块的比较判断单元进行比较和判断就可以实现对被测语音设备收号功能的全自动化测试。另外,还可以在TTCN2模块中编写测试其它语音功能的TTCN2脚本,一次性地测试其它语音功能,例如放音、录音等功能。 As can be seen from the above steps, the present invention does not need a real test environment, and only needs to respectively simulate the signaling messages and services required by the signaling message simulation unit and the service message simulation unit of the TTCN2 module to test the number collection function of the voice device under test Message, through comparison and judgment by the comparison and judgment unit of the TTCN2 module, a fully automated test of the number collection function of the voice device under test can be realized. In addition, TTCN2 scripts for testing other voice functions can also be written in the TTCN2 module to test other voice functions at one time, such as playback and recording. the
以上三个实施例仅以被测语音设备的收号功能测试为例,描述了语音功能测试的过程和步骤,然而,本发明所提供的方法对于语音设备的其它语音功能测试都适用,并且使用TTCN2协议可以一次性编写所有的信令消息和业务,在一套被测语音设备上同时测试多种业务和多种语音功能,从而达到 测试脚本重用的目的,也避免了人工测试时根据测试用例的需要不断更换业务脚本的问题。 The above three embodiments only take the number receiving function test of the voice equipment under test as an example, and describe the process and steps of the voice function test. However, the method provided by the present invention is applicable to other voice function tests of the voice equipment, and uses The TTCN2 protocol can write all signaling messages and services at one time, and test multiple services and multiple voice functions on a set of voice equipment under test at the same time, so as to achieve the purpose of test script reuse and avoid manual testing based on test cases. The problem of needing to constantly replace business scripts. the
从上面三个实施例的描述可以看到,本发明就是通过采用TTCN2模块模拟通过电信语音设备的信令接口、业务接口的控制消息,屏蔽真实的测试环境,既实现测试自动化又节省测试资源和成本。 From the description of the above three embodiments, it can be seen that the present invention is to simulate the control message through the signaling interface and the service interface of the telecommunication voice equipment by adopting the TTCN2 module, and shield the real test environment, so as to realize test automation and save test resources and cost. the
以上所述,仅为本发明的较佳实施例而已,并非用以限定本发明的保护范围。 The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. the
Claims (18)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2006100727295A CN1984171B (en) | 2006-04-06 | 2006-04-06 | System and method for realizing speech apparatus function test |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2006100727295A CN1984171B (en) | 2006-04-06 | 2006-04-06 | System and method for realizing speech apparatus function test |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1984171A CN1984171A (en) | 2007-06-20 |
| CN1984171B true CN1984171B (en) | 2011-04-13 |
Family
ID=38166390
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2006100727295A Expired - Fee Related CN1984171B (en) | 2006-04-06 | 2006-04-06 | System and method for realizing speech apparatus function test |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1984171B (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102665012A (en) * | 2012-05-02 | 2012-09-12 | 江苏南大数码科技有限公司 | Device for automatically inspecting remote call voice inquiry platform failure |
| CN107809546A (en) * | 2017-11-08 | 2018-03-16 | 上海移远通信技术股份有限公司 | The audio test system and method for communication module |
| CN111175601A (en) * | 2020-01-03 | 2020-05-19 | 云南电网有限责任公司电力科学研究院 | Modular functional test system |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102790705B (en) * | 2012-07-24 | 2016-12-21 | 大唐移动通信设备有限公司 | Operational trials system and method, signalling analysis system and method |
| CN107680613A (en) * | 2017-08-13 | 2018-02-09 | 惠州市德赛西威汽车电子股份有限公司 | A kind of voice-operated device speech recognition capabilities method of testing and equipment |
| DE102018121123B4 (en) * | 2018-08-29 | 2022-08-11 | Airbus Operations Gmbh | Automated self-test of cabin speakers |
| CN110401577B (en) * | 2019-04-18 | 2021-04-20 | 广州市高科通信技术股份有限公司 | Automatic testing method of voice switch, electronic equipment, storage medium and system |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1417678A (en) * | 2001-11-07 | 2003-05-14 | 华为技术有限公司 | TTCN test case execution method |
| CN1518284A (en) * | 2003-01-16 | 2004-08-04 | 华为技术有限公司 | Service testing device and method |
| CN1549541A (en) * | 2003-05-21 | 2004-11-24 | 华为技术有限公司 | Method and device for automatic testing of media gateway |
| CN1592232A (en) * | 2003-09-07 | 2005-03-09 | 中兴通讯股份有限公司 | A comprehensive test system and test method for telecommunication value-added services |
| WO2005125037A1 (en) * | 2004-06-14 | 2005-12-29 | Tollgrade Communications, Inc. | Voice over internet protocol (voip) quality testing over hybrid fiber/coax (hfc) network |
| WO2006014585A2 (en) * | 2004-07-08 | 2006-02-09 | Internetwork, Inc. | Systems and methods for monitoring and evaluating a connectivity device |
-
2006
- 2006-04-06 CN CN2006100727295A patent/CN1984171B/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1417678A (en) * | 2001-11-07 | 2003-05-14 | 华为技术有限公司 | TTCN test case execution method |
| CN1518284A (en) * | 2003-01-16 | 2004-08-04 | 华为技术有限公司 | Service testing device and method |
| CN1549541A (en) * | 2003-05-21 | 2004-11-24 | 华为技术有限公司 | Method and device for automatic testing of media gateway |
| CN1592232A (en) * | 2003-09-07 | 2005-03-09 | 中兴通讯股份有限公司 | A comprehensive test system and test method for telecommunication value-added services |
| WO2005125037A1 (en) * | 2004-06-14 | 2005-12-29 | Tollgrade Communications, Inc. | Voice over internet protocol (voip) quality testing over hybrid fiber/coax (hfc) network |
| WO2006014585A2 (en) * | 2004-07-08 | 2006-02-09 | Internetwork, Inc. | Systems and methods for monitoring and evaluating a connectivity device |
Cited By (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102665012A (en) * | 2012-05-02 | 2012-09-12 | 江苏南大数码科技有限公司 | Device for automatically inspecting remote call voice inquiry platform failure |
| CN102665012B (en) * | 2012-05-02 | 2015-07-08 | 江苏南大数码科技有限公司 | Device for automatically inspecting remote call voice inquiry platform failure |
| CN107809546A (en) * | 2017-11-08 | 2018-03-16 | 上海移远通信技术股份有限公司 | The audio test system and method for communication module |
| CN107809546B (en) * | 2017-11-08 | 2019-11-22 | 上海移远通信技术股份有限公司 | Audio testing system and method for communication module |
| CN111175601A (en) * | 2020-01-03 | 2020-05-19 | 云南电网有限责任公司电力科学研究院 | Modular functional test system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1984171A (en) | 2007-06-20 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5940472A (en) | Intelligent services network test system | |
| US5822397A (en) | Audio interface for telecommunications test system | |
| CN103024772B (en) | A kind of voice special line auto-dial testing system and method | |
| US6914962B2 (en) | Call-flow verification method and apparatus | |
| CN101052066B (en) | Detecting method for prompting voice, voice server and prompting voice detector | |
| CN102801875B (en) | A kind of Bulk Call test module, system and method | |
| CN100464538C (en) | Method and device for automatic testing of media gateway | |
| CN105471680A (en) | Network voice communication testing system and method | |
| CN100393086C (en) | Simulated user call test system and method built in digital program-controlled exchange | |
| CN1240098A (en) | Communication system and method for testing a communication device | |
| CN114401252A (en) | Calling method of telephone traffic system and telephone traffic system | |
| CN1984171B (en) | System and method for realizing speech apparatus function test | |
| CN101159773A (en) | An automatic dial testing system, device and method | |
| CN1240097A (en) | Communication system and method for testing a communication device | |
| CN106878570A (en) | A kind of speech business method of testing and system | |
| CN109275051B (en) | ONU voice function detection method and system | |
| CN113595826A (en) | Method for single-voice-port PON gateway equipment to carry out single-equipment voice production test | |
| CN100562925C (en) | Method for Automatic Recognition of Speech in Limited Range | |
| CN101163267B (en) | Service tone audition method and system | |
| CN100558123C (en) | A system and method for realizing high-traffic voice testing | |
| CN115580681A (en) | Method for testing hardware function of analog port | |
| CN114374768B (en) | Voice dialogue testing method and device and storage medium | |
| CN100452809C (en) | Method for setting up automatic reply content for telephone system | |
| CN101242441B (en) | Method and device for voice calling number display service | |
| CN100488216C (en) | Testing method and tester for IP telephone sound quality |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20110413 Termination date: 20150406 |
|
| EXPY | Termination of patent right or utility model |