A kind of digital handset air interface method of testing and device based on TTCN-3
Technical field
The present invention relates to a kind of digital handset air interface field tests, especially relate to a kind of digital handset air interface method of testing and device based on TTCN-3.
Background technology
Digital handset has many advantages, at first is efficiently to utilize frequency spectrum resource better, and digital handset can load more users a channel appointed, improves the availability of frequency spectrum, is a kind of scheme that solves frequency congestion, has long-range meaning.Next is to improve speech quality, because digital communication technology has system and lifts wrong function, compares with the simulation intercom, can realize better voice quality in a wider general signal environment, and the audio-frequency noise that receives can be still less, and sound is also more clear.Be that raising and improvement voice-and-data are integrated then, change control signal and increase the weakness that reduces with distance, compare with voice and the data system of similar integrated simulation, digital handset can provide better data to handle and interface function, can be integrated in the same two-way wireless communication architecture of base station thereby more data is used.Based on above-mentioned three big characteristics, No. 666 gists of a document of Ministry of Industry and Information emphasize that China's simulation intercom will be progressively to digital handset development evolution, and the cry that is standardized in each expert and the enterprise of formulating the industry digital handset is also more and more higher.
At present, generally only limit to the test of radio-frequency (RF) index at the method for testing of digital handset, if accomplish the full functionality test that communication system is required, then need to customize the intercom comprehensive tester, the comprehensive tester device fabrication cycle is long, and the expense costliness, does not also have versatility.
Summary of the invention
Purpose of the present invention be exactly provide a kind of in order to overcome the defective that above-mentioned prior art exists and test comprehensively, versatility is good, cost is low, dispose simply digital handset air interface method of testing and device based on TTCN-3.
Purpose of the present invention can be achieved through the following technical solutions:
A kind of digital handset air interface method of testing based on TTCN-3 is characterized in that, comprises following step:
1) carry out initialization, comprise the startup of master control module and create two concurrent testing assemblies, one is the terminal emulation module, the 2nd, and dut terminal arranges module;
2) two concurrent testing assemblies move respectively, at first carry out handshake communication with the master control module, allow the master control module in time grasp the running status of two concurrent testing assemblies, and judge whether two concurrent testing assemblies have unusually, and if the both is normal, execution in step 3), if, do not finish test;
3) dut terminal arranges the module controls dut terminal and carries out the parameter setting, or directly in the enterprising line parameter setting of dut terminal;
4) terminal emulation module sends call request information;
5) call request information is sent to radio-frequency module through system interface, launches;
6) dut terminal is made correct response message according to the radiofrequency signal that receives this moment;
7) two concurrent testing assemblies carry out synchronism detection with the master control module respectively;
8) terminal emulation module is received after the message that system interface is returned judge whether return results meets expection, and if yes, test is passed through, if not, is tested and do not pass through;
9) terminal emulation module sends to the master control module with test result information, and the master control module stops all concurrent testing assemblies, stops the execution of this test case, the information that outputs test result and test process journal file.
Described radio-frequency module requires to launch call request information with the frequency of appointment according to frame structure.
Described synchronism detection is that terminal emulation module and dut terminal arrange module respectively to master control module transmission synchronization request, and master control module responds synchronization request then is that this is subsynchronous effectively.
A kind of digital handset air interface testing apparatus based on TTCN-3 is characterized in that, comprises the general purpose PC, radio-frequency module, the dut terminal that contain TTCN-3 test script, system interface; PC carries out transfer of data by system interface and radio-frequency module, passes through the transmission of wireless signals data between dut terminal and the radio-frequency module.
The judge criterion that described TTCN-3 test script comprises the test condition explanation, test parameter configuration, test case data of test case, whether definition and the test of test interface are passed through.
Described system interface is adapter.
Compared with prior art, the present invention has the following advantages:
1) the whole test system build process is simple and easy to dispose, and saves testing cost, shortens the product development life cycle.
2) be complete digital handset functional test scheme.
3) test script is realized easily, can customize according to demand.
4) versatility is good, supports the digital handset functional test of all protocol types.
5) can guarantee the consistency of product function, improve the digital handset product quality.
6) can realize automatic test, save human resources, improve tester's operating efficiency.
7) for the digital handset standardization of products lays a good foundation, also be a kind of means that the product conformity certification is identified.
Description of drawings
Fig. 1 is flow chart of the present invention;
Fig. 2 is hardware configuration schematic diagram of the present invention;
Fig. 3 is the structural representation of PC.
Embodiment
Embodiment
The present invention is made up of three parts: the one, comprise TTCN-3 test script, system interface at interior software runtime environment, and this running environment can be in the general purpose PC deploy; The 2nd, system emulation equipment is used for the instruction that the acceptance test script sends, and analyzes the reception data and finishes the radio-frequency transmissions function, and common radio frequency testing equipment all can dispose realization; The 3rd, tested digital handset terminal equipment.
The integrated testability system configuration comprises the general purpose PC 1, radio-frequency module 3, the dut terminal 2 that contain TTCN-3 test script 13, system interface 14, master control module 11, coding/decoding module 12 as shown in Figure 2; PC carries out transfer of data by system interface and radio-frequency module, passes through the transmission of wireless signals data between dut terminal and the radio-frequency module.TTCN (Testing and Test Control Notation) is a standard testing language that the whole world of being safeguarded by ETSI (European Telecommunications Standards Institute) is suitable for.In its nearest approved third generation standard, TTCN-3 be modern times and language flexibly, be used for describing the system testing of many types by interface widely.
Each several part realizes that function roughly is described below:
One: TTCN-3 operation translation and compiling environment is installed on the ordinary PC 1, the judge criterion that importing digital intercom test script, test script have comprised the test condition explanation, test parameter configuration, test case data of all test cases, whether definition and the test of test interface are passed through.
Two: radio-frequency apparatus gets access to the data that need from the test adaptable interface, requires to launch with the frequency of appointment from radio-frequency module according to frame structure.
Three: measured number intercom terminal receives the wireless signal from this frequency, carries out correct response according to the call instruction in the wireless signal in frequency points corresponding.The result of response finally can be forwarded to the master control module by the interface of radio-frequency module, judges according to passing judgment on criterion whether this test function point passes through.Test case if test case is carried out failure, then needs the reason according to the failure of test process log tracks by thinking that then this function point realizes.
Fig. 1 is example with the test case that is numbered TC_1403_02, and the digital handset call number is described " 1234567 " functional test.
Step1: initialization
The master control module is created two concurrent testing assemblies after starting, and one is terminal emulation module 131, two, and dut terminal arranges module 132; After establishment is finished, need to carry out between the port bindings.In case after port binding was finished, all test datas and configuration data all must be according to the port transmitting-receivings of appointment.
Step2: two concurrent testing assemblies move respectively, at first need to carry out handshake communication with the master control module, allow the master control module in time grasp the running status of two parallel components, in case one of them state is undesired, then stop the follow-up test flow process.
Step3: dut terminal arranges the parameter setting of module 132 control dut terminals 2, allows early stage that dut terminal 2 is in the implementation of test cases appointment under the condition, and this step also can directly arrange at dut terminal 2.
Step4: terminal emulation module 131 sends call request, and call number is 1234567.
Step5: call request information is sent to radio-frequency module 3 through system interface, launches.
Step6: dut terminal can be made correct response according to the radiofrequency signal that receives 3 this moments.
Step7: the every operation of aforesaid operations once, two concurrent testing assemblies all need to carry out synchronously with the master control module, master control module responds synchronization request thinks that this is subsynchronous effectively.
Step8: terminal emulation module 131 is received after the message that system interface is returned, and judges that return results meets expection, thinks to test and passes through.
Step9: terminal emulation module 131 sends to the master control module with test result information, and the master control module stops all concurrent testing modules, stops the execution of this test case, the report that outputs test result and test process journal file.