CN104703197A - Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3 - Google Patents

Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3 Download PDF

Info

Publication number
CN104703197A
CN104703197A CN201310648143.9A CN201310648143A CN104703197A CN 104703197 A CN104703197 A CN 104703197A CN 201310648143 A CN201310648143 A CN 201310648143A CN 104703197 A CN104703197 A CN 104703197A
Authority
CN
China
Prior art keywords
test
ttcn
case
item
module
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.)
Pending
Application number
CN201310648143.9A
Other languages
Chinese (zh)
Inventor
吕潇潇
葛晓光
王浩文
王雪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Research Center for Wireless Communications
Original Assignee
Shanghai Research Center for Wireless Communications
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shanghai Research Center for Wireless Communications filed Critical Shanghai Research Center for Wireless Communications
Priority to CN201310648143.9A priority Critical patent/CN104703197A/en
Publication of CN104703197A publication Critical patent/CN104703197A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a terminal protocol consistency testing platform and a terminal protocol consistency testing method based on TTCN-3. The system at least comprises a user operation module, a TTCN-3 test module, and a system simulator. The user operation module includes a use case test unit used for selecting a test use case item for testing, and a new technology use case development unit used for developing new technology test use cases. When the new technology use case development unit develops a test use case, the test use case and a related plug-in can be added to a TTCN-3 system, and then the developed test use case can be tested. The TTCN-3 test module performs processing according to test information acquired from the user operation module, and tests a tested terminal through the system simulator. Through modular design, the network-side protocol function of the system is tested by the system simulator in a simulated way, and the development and test of test use cases are unified, so that the applicability and efficiency of test are greatly improved, and the terminal protocol and product development time is shortened.

Description

A kind of terminal protocol uniformity test platform based on TTCN-3 and method
Technical field
The present invention relates to a kind of mobile communication technology, particularly relate to a kind of terminal protocol uniformity test platform based on TTCN-3 and method.
Background technology
TTCN-3 (Testing and Test Control Notation Version3, test and the testing and control representation third edition) be by ETSI(The European Telecommunications Standards Institute, ETSI) the Black-box Testing specification of standard developed and test execution language.Because TTCN Integrated Development Environment ITEX (InteractiveTTCN Editor and eXecutor) can generate the test code of ANSI C automatically, the groundwork amount of therefore testing concentrates on and utilizes on Formal Language Description testing process, and this avoids the mistake because manual programming may cause simultaneously.Test process produced problem can generate corresponding test report by ITEX, reduces the workload of trace debug.And all codes relevant to platform specific are all concentrated in the kernel of test, therefore the test module reusability that generates of TTCN good, easily safeguard.
The current test to terminal equipment mainly comprises: radio-frequency (RF) index test, protocol test, RRM test and other tests etc.Wherein, protocol test comprises consistency test, performance test, HIST, robustness testing.Uniformity test is an importance of protocol test, is the basis of performance test, HIST and robustness testing.Uniformity test is a kind of Black-box Testing, and it is tested according to description certain realization to agreement of an agreement, judges whether the realization of agreement meets protocol specification from outside observable behavior.Usually utilize one group of custom-designed test case to carry out Black-box Testing to tested realization, whether the expection specified by actual output and the consensus standard of more tested realization exports identical, judges whether tested realization meets protocol specification.Testing protocol consistency is the full test of terminaloriented product design scheme, meanwhile, is also verify before verification terminal product enters into market whether it possesses the most important link of commercial level.For terminal, carry out the connectedness that testing protocol consistency can ensure between terminal and communication network, and then guarantee that the terminal that different manufacturers is produced can normally work in practical communication system.
As the key equipment of terminal test, the designing and developing of Conformance Testing Environment have also been obtained the attention of carriers in the world, terminal production firm and test instrumentation manufacturer.Develop and set up the equipment that can be used for terminal protocol uniformity test of complete set, not only can be applied in the authentication test of business terminal, to ensure the consistency of terminal and interconnecting property, but also can develop at end product the test that is interconnected effectively promoted early stage between the terminal that different vendor produces, thus find ahead of time to understand agreement and process inconsistence problems, avoid the reachability problem between consequent effects terminal, reach and shorten terminal protocol development process and interconnect the testing time.This has very positive effect to the development of Mobile Communication Industry.
The technical specification group RAN(Radio Access Network of wireless access network is responsible for) in 3GPP, in order to ensure system based on 3GPP specification global roaming equipment can fast Development and deployment, can issue up-to-date 3GPP wireless technology and the standard of system every three months, these standards provide the continuity of system evolution to a great extent.In standard progradation, following several principles: improve performance, reduce cost, backward compatibility, seamlessly transit.Therefore in order to improve the speed of the exploitation of measured terminal, testing protocol consistency needs the state-of-the-art technology standard issued according to 3GPP technical specification group to carry out the exploitation of new test case.
Along with the active development of wireless technical field, the key new such as carrier aggregation, relaying, multiple antennas enhancing emerges in an endless stream, and the change of the Terminal Design that New Wireless Technologies brings, cause the challenge of terminal test system and equipment, all needed to develop new test case to the terminal protocol uniformity test of the agreement that these new technologies are correlated with.Therefore for meeting the demand of different times and different user, terminal protocol uniformity test is not allowed to become a bottleneck of protocol development, develop the test platform of the development progress that can improve test case, the research and development of the end product that follows up fast, become a problem in the urgent need to address.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of terminal protocol uniformity test platform based on TTCN-3 and method, the demand for development of terminal test is lagged behind for solving existing Conformance Testing Environment in prior art, can not rapidly for up-to-date protocol development test case, thus complete paired terminal carries out the problem of the testing protocol consistency of up-to-date agreement.
For achieving the above object and other relevant objects, the invention provides a kind of terminal protocol uniformity test platform based on TTCN-3, it is characterized in that, described uniformity test platform at least comprises: user operation module, comprises use-case test cell and new technology use-case development block; Use-case test cell is for selecting test case item, and described test case item is the subitem of test macro item and protocol layer item, and the detecting information that this test case item associates is sent to TTCN-3 test module; New technology use-case development block is used for development and testing use-case, and described test case is added TTCN-3 test module, and generating test use case item, determine the detecting information that described test case item associates; TTCN-3 test module, be connected with described new technology use-case development block with described use-case test cell, determine the number information of the test case added, detecting information is obtained from described use-case test cell or described new technology use-case development block, test system configurations is carried out according to detecting information, coding generates test command and sends to system simulator, the response message of receiving system simulator, will be stored in the daily record of described TTCN-3 test module as log information after described response message decoding; System simulator, is connected with described TTCN-3 test module; Described system simulator is connected with measured terminal, tests measured terminal according to described test command, and the response message of described measured terminal is sent to described TTCN-3 test module.
Preferably, use-case development module in described user operation module also comprises: the relevant plug-in unit developing new test macro, be connected with described TTCN-3 test module, described relevant plug-in unit is joined in described TTCN-3 test module, described TTCN-3 test module determines the test configurations information that described relevant plug-in unit is corresponding, create test macro item and protocol layer item, and determine and the test configurations information that described test macro item and protocol layer item associate respectively.
Preferably, described user operation module also comprises: log analysis unit, is connected with described TTCN-3 test module, for obtaining log information in the daily record from described TTCN-3 test module, and generates test report according to described log information.
Preferably, described test case in described new technology use-case development block comprises to be developed according to the protocol test Demand Design of new technology, or develop according to the test design of existing agreement upgraded version.
Preferably, described system simulator comprises at least one instrument, and the realization of at least one network side protocol layer simulated by each instrument.
Preferably, described TTCN-3 test module runs on special equipment or with described user operation module and runs on same equipment.
Preferably, described system simulator is by eat dishes without rice or wine or radio frequency line is connected with measured terminal.
The present invention also comprises a kind of method of terminal being carried out to testing protocol consistency, the method is tested mobile terminal based on TTCN-3, it is characterized in that, comprise the steps: the test case utilizing a user operation module to select according to user, obtain the detecting information be associated, described detecting information is sent to TTCN-3 test module; Described TTCN-3 test module obtains corresponding test case according to described detecting information, and is configured test environment according to described detecting information; Described TTCN-3 test module is encoded to described test case, generates the test command that can perform at described system simulator, described test command is sent to described system simulator; Described system simulator is tested measured terminal according to described test command, obtains the response message of described measured terminal, and described response message is sent to described TTCN-3 test module; Described TTCN-3 test module receives described response message, is stored in the daily record of described TTCN-3 test module to described response message after decoding as log information.
Preferably, described method of testing also comprises: the log analysis unit in described user operation module obtains described log information from described TTCN-3 test module, generates performance test report.
The present invention includes a kind of method of terminal being carried out to testing protocol consistency, the method is tested mobile terminal based on TTCN-3, it is characterized in that, comprise the steps: to utilize the new technology use-case development block in a user operation module to create test case according to the content measurement of test design; Described new technology use-case development block finds in described user operation module tests test macro in the test environment designed and test macro item corresponding to protocol layer item and protocol layer item with described, create the subitem of described test macro item and protocol layer item as test case item, described test case item is associated with the test configurations information of described test macro item and protocol layer item; Described test case is joined TTCN-3 test module by described new technology use-case development block, obtain the number information of the described test case determined by described TTCN-3 test module, and set up associating of described number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item.
The present invention also comprises a kind of method of terminal being carried out to testing protocol consistency, the method is tested mobile terminal based on TTCN-3, it is characterized in that, comprise the steps: to utilize the new technology use-case development block in a user operation module to create test case according to the content measurement of test design; Described new technology use-case development block is developed according to the demand of the test environment of described test design, comprises the exploitation to any one or combination in the corresponding system adapter plug-in unit of test environment, platform adapter plug-in unit or codec plug-in unit; And any one or combination in the described system adapter plug-in unit of exploitation, platform adapter plug-in unit or codec plug-in unit are joined TTCN-3 test module, corresponding configuration information is determined respectively, system adapter plug-in unit, platform adapter plug-in unit or codec plug-in unit described in option and installment when the configuration information of described correspondence is respectively used to configuration testing environment by described TTCN-3 test module; Described new technology use-case development block creates corresponding test macro item and protocol layer item according to the test macro in described test environment and protocol layer information, determines the test configurations information that described test macro item associates with protocol layer item respectively; And subitem is set up as test case item in described test macro item and protocol layer item, described test case item is associated with the test configurations information of described test macro item and protocol layer item; Described test case is joined TTCN-3 test module by described new technology use-case development block, obtain the number information of the described test case determined by described TTCN-3 test module, and set up associating of described test case number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item.
As mentioned above, the Conformance Testing Environment based on TTCN-3 of the present invention and method, have following beneficial effect:
Native system passes through modularized design, the network equipment in real test macro is replaced with system simulator, enhance the extensibility of the test macro of Conformance Testing Environment, test development unit in simultaneity factor is for carrying out the exploitation of newly-designed test case, unite to the development& testing of test case, enhance applicability and the flexibility of test platform, greatly improve test applicability and efficiency, shorten the time of terminal protocol and research and development of products.This system is not only applicable to existing terminal protocol uniformity test, and be applicable to the renewal upgrading of existing terminal protocol and the development and testing of new technology agreement, greatly shorten the protocol development process of terminal, improve the whole efficiency of terminal protocol uniformity test, thus promote the industrialized development of terminal.
Accompanying drawing explanation
Fig. 1 is shown as the modular structure schematic diagram of the Conformance Testing Environment that the present invention is based on TTCN-3.
Fig. 2 is shown as the method for testing schematic flow sheet of the test case of the protocol conformance test method that the present invention is based on TTCN-3.
Fig. 3 is shown as the development approach A schematic flow sheet of the test case of the protocol conformance test method that the present invention is based on TTCN-3.
Fig. 4 is shown as the development approach B schematic flow sheet of the test case of the protocol conformance test method that the present invention is based on TTCN-3.
Element numbers explanation
10 user operation modules
11 use-case test cells
12 new technology use-case development blocks
13 log analysis unit
20 TTCN-3 test modules
30 system simulators
40 measured terminals
S01 ~ S10 step
S21 ~ S24 step
S31 ~ S37 step
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this specification can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this specification also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
Refer to Fig. 1-4.It should be noted that, the diagram provided in the present embodiment only illustrates basic conception of the present invention in a schematic way, then only the assembly relevant with the present invention is shown in graphic but not component count, shape and size when implementing according to reality is drawn, it is actual when implementing, and the kenel of each assembly, quantity and ratio can be a kind of change arbitrarily, and its assembly layout kenel also may be more complicated.
The invention provides a kind of Conformance Testing Environment based on TTCN-3 and method, for making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.
Refer to Fig. 1, the invention provides a kind of terminal protocol uniformity test platform based on TTCN-3, at least comprise: user operation module 10, TTCN-3 test module 20, system simulator 30; Described system simulator 30 is connected with measured terminal 40, for testing the protocol conformance of measured terminal 40.
Described user operation module 10 comprises use-case test cell 11, new technology use-case development block 12 and log analysis unit 13.Wherein:
Described use-case test cell 11 is connected with described TTCN-3 test module 20.User selects the test case item of described use-case test cell 11 according to test purpose, described test case item is the subitem of test macro item and protocol layer item, described test macro item and protocol layer item determine the test configurations information of described subitem, and described test configurations information is for arranging the test environment of described subitem; Described test case item is not only associated with described test configurations information, and is associated with test case number information; Described test configurations information and described test case number information composition detecting information.Described detecting information is sent to described TTCN-3 module 20 by described use-case test cell 11.
Described new technology use-case development block 12, is connected with described TTCN-3 test module 20.User creates test case according to the content measurement of test design, and described test design is the test design that user carries out according to new technology protocol test demand, and now, test environment needs to develop corresponding probe card.Described new technology use-case development block 12 carries out the exploitation of corresponding probe card according to described test environment, comprise the exploitation to any one or combination in corresponding system adapter plug-in unit, platform adapter plug-in unit or codec plug-in unit; And any one or combination in described system adapter plug-in unit, platform adapter plug-in unit or codec plug-in unit are joined TTCN-3 test module, corresponding test configurations information is determined respectively, any one or combination in system adapter plug-in unit, platform adapter plug-in unit or codec plug-in unit described in option and installment when the test configurations information of described correspondence is respectively used to configuration testing environment by described TTCN-3 test module; Described new technology use-case development block 12 creates corresponding test macro item and protocol layer item according to the test macro in described test environment and protocol layer information, determine the test configurations information that described test macro item associates with protocol layer item respectively, namely in test environment to the configuration information of the configuration information of corresponding probe card and system simulator 30; And subitem is set up as test case item in described test macro item and protocol layer item, described test case item is associated with the test configurations information of described test macro item and protocol layer item; Described test case is joined described TTCN-3 test module 20 by described new technology use-case development block 12, obtain the number information of the described test case determined by described TTCN-3 test module 20, and set up associating of described test case number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item; The test case item that user can select described test development unit 12 to create is tested, and the detecting information that described test case item is relevant sends to described TTCN-3 test module 20 to test by described test development unit 12.
In another embodiment, described new technology use-case development block 12, be connected with described use-case test cell 11 and described TTCN-3 test module 20, content measurement according to test design creates test case, and described test design is the test design that user carries out according to the upgraded version of test protocol already present in this test macro; Relevant test macro item and protocol layer item is there is in the test macro in the test environment of described test design and protocol layer information in described use-case test cell 11; Described new technology use-case development block 12 creates the subitem of described test macro item and protocol layer item as test case item in described use-case test cell 11, and described test case item is associated with the test configurations information of described test macro item and protocol layer item; Described test case is joined described TTCN-3 test module 20 by described new technology use-case development block 12, obtain the number information of the described test case determined by described TTCN-3 test module 20, and set up associating of described number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item; User can select described test case item to test in use-case test cell 11, and the detecting information that described test case item is relevant sends to described TTCN-3 test module 20 to test by described test case unit 11.
In another embodiment, described new technology use-case development block 12, be connected with described TTCN-3 test module 20, the content measurement according to test design creates test case, and described test design is that user designs according to the test of the carrying out of the test protocol developed in this test macro; Relevant test macro item and protocol layer item is there is in the test macro in the test environment of described test design and protocol layer information in described new technology use-case development block 12; Described new technology use-case development block 12 creates the subitem of described test macro item and protocol layer item as test case item, and described test case item is associated with the test configurations information of described test macro item and protocol layer item; Described test case is joined TTCN-3 test module by described new technology use-case development block 12, obtain the number information of the described test case determined by described TTCN-3 test module 20, and set up associating of described number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item; User can select described test case item to test in test development unit 12, and the detecting information that described test case item is relevant sends to described TTCN-3 test module 20 to test by described test development unit 12.
Described log analysis unit 13, is connected with described TTCN-3 test module 20, for obtaining log information in the daily record from described TTCN-3 test module 20, and generates test report according to described log information; Described test report comprises performance test report, and the performance in described performance test report is obtained by log information described in comparison and corresponding test performance analytical standard, and the standard storage of described performance evaluation is in log analysis unit 13.
In another embodiment, described user operation module 10 also comprises user log-in block, and described user log-in block is provided with different Permission Levels for different users, and different Permission Levels determine the operating right different to native system.
TTCN-3 test module 20, is connected with described new technology use-case development block 12 with described use-case test cell 11, obtains detecting information from described use-case test cell 11 or described new technology use-case development block 12.Described TTCN-3 test module 20 carries out test system configurations according to detecting information, mainly comprises the configuration of described system adapter plug-in unit, platform adapter plug-in unit, codec plug-in unit and system simulator; Obtain test case according to detecting information and this test case coding generated test command sending to system simulator 30.When described system simulator 30 pairs of measured terminals 40 are tested, when receiving the response message of described measured terminal 40, this response message can be sent to described TTCN-3 test module 20, described TTCN-3 test module 20 receives the response message of described system simulator 30, and is stored into after described response message decoding in the daily record of described TTCN-3 test module 20 as log information.Described TTCN-3 test module 20 determines corresponding number information to the test case adding this module, corresponding configuration information is determined respectively to other probe cards such as system adapter plug-in unit, platform adapter plug-in unit, the codec plug-in unit that add this module, corresponding configuration information is also determined to the system simulation board that described system simulator 30 increases.Described TTCN-3 test module 20 runs on special equipment.
In another embodiment, described TTCN-3 test module 20 and described user operation module 10 run on same equipment.
Described system simulator 30, is connected 20 with described TTCN-3 test module, is connected with measured terminal 40; Described system simulator 30 is connected by eating dishes without rice or wine with described measured terminal 40.In another embodiment, described system simulator 30 is connected with described measured terminal 40 by radio frequency line.The described test command that described system simulator 30 sends according to described TTCN-3 test module 20 is tested described measured terminal 40, and the response message of described measured terminal 30 is sent to described TTCN-3 test module 20.The function of described system simulator 30 mainly analog network side, described network side refers to the agreement in core net and on base station.Also can be general say that described system simulator 30 is mainly wanted to realize virtual base station, this base station can realize communication exchanges with measured terminal 40.
Described system simulator 30 comprises an instrument, and the instrument of described instrument multiple system simulation board that has been an enclosed inside, described each system simulation board simulates the network side protocol layer functional realiey of a test macro respectively.In another embodiment, described system simulator 30 comprises multiple instrument, the inside of described each instrument encapsulates more than one system simulation board respectively, and described each system simulation board simulates the network side protocol layer functional realiey of a test macro respectively.
The invention provides a kind of method of terminal being carried out to testing protocol consistency, the method can be realized by the terminal protocol uniformity test platform based on TTCN-3 provided by the invention, but is not limited to described platform.
Refer to Fig. 2, provided by the inventionly a kind of the method that terminal carries out testing protocol consistency to be tested mobile terminal based on TTCN-3, comprise the steps:
First perform step S01, the test case item utilizing the use-case test cell in a user operation module to select according to user, obtains the detecting information be associated, and described detecting information comprises test case number information and test configurations information.In another embodiment, be the test case item that the new technology use-case development block in user operation module is selected according to user, obtain the detecting information be associated, described detecting information comprises test case number information and test configurations information.Then step S02 is performed.
In step S02, described detecting information is sent to TTCN-3 test module by the use-case test cell in described user operation module.In another embodiment, be that described detecting information is sent to described TTCN-3 test module by new technology use-case development block in user operation module.Then step S3 is performed.
In step S03, described TTCN-3 test module obtains corresponding test case according to the test case numbering in described detecting information.In another embodiment, in described test case, also there is the test configurations information of some test environments, parse the test configurations information in test case.Then step S4 is performed.
In step S04, described TTCN-3 test module is configured test environment according to the test configurations information in described detecting information; Namely according to described test configurations information to test platform initialization.Particularly, described test platform initialization mainly comprises the configuration of the configuration of codec plug-in unit in the configuration of the platform adapter plug-in unit in the configuration to the system adapter plug-in unit in described TTCN-3 test module, described TTCN-3 test module, described TTCN-3 test module and the system simulator to test macro.In another embodiment, also the test configurations information of some test environments is there is in described test case, parse the test configurations information in test case, the test configurations information that described TTCN-3 test module parses according to the test configurations information in described detecting information and test case is configured test environment; Namely the test configurations information parsed according to the test configurations information in described detecting information and test case, to test platform initialization, sets up correct test environment.Particularly, described test platform initialization mainly comprises the configuration of the configuration of codec plug-in unit in the configuration of the platform adapter plug-in unit in the configuration to the system adapter plug-in unit in described TTCN-3 test module, described TTCN-3 test module, described TTCN-3 test module and the system simulator to test macro.Then step S5 is performed.
In step S05, the content measurement of described TTCN-3 test module to the TTCN-3 language compilation in described test case carries out the test command generating and can perform at described system simulator of encoding.Particularly, the content measurement of described codec plug-in unit to described TTCN-3 language compilation is encoded, and is undertaken processing, encapsulating by described system adapter, generates the test command that can perform at described system simulator, i.e. executable code stream.Then step S6 is performed.
In step S06, described test command is sent to described system simulator by Ethernet by described TTCN-3 test module.Then step S7 is performed.
In step S07, described system simulator is tested measured terminal according to described test command, and described system simulator receives the response message of described measured terminal by radio frequency line.In another embodiment, described system simulator receives the response message of described measured terminal by eating dishes without rice or wine.Then step S08 is performed.
In step S08, described response message is sent to described TTCN-3 test module by described system simulator.Then step S09 is performed.
In step S09, described TTCN-3 test module receives described response message, to calling described codec plug-in unit, described response message is decoded, convert TTCN-3 data type to by response message, and the response message of described TTCN-3 data type is stored in the daily record of described TTCN-3 test module as log information.Then step S10 is performed.
In step slo, log analysis unit in described user operation module obtains described log information from described TTCN-3 test module, by described log information and the corresponding test performance analytical standard comparison being stored in log analysis unit, generate performance test report.
Present invention also offers a kind of method of terminal being carried out to testing protocol consistency, the method can be realized by the terminal protocol uniformity test platform based on TTCN-3 provided by the invention, but is not limited to described platform.
Refer to Fig. 3, provided by the inventionly a kind of the method that terminal carries out testing protocol consistency to be tested mobile terminal based on TTCN-3, comprise the steps:
First perform step S21, utilize the new technology use-case development block in a user operation module to create test case according to the content measurement of test design.Particularly, described test design is the test design carried out according to the upgraded version of test protocol already present in this test macro, and the change of the protocol layer related to by described upgraded version of analyzing and researching definition, designs corresponding test environment, design test flow process, the content of design test.Then step S22 is performed.
In step S22, the use-case test cell of described new technology use-case development block in described user operation module finds the test macro item corresponding with protocol layer information with the test macro in the test environment of described test design and protocol layer item, create the subitem of described test macro item and protocol layer item as test case item, described test case item is associated with the test configurations information of described test macro item and protocol layer item.In another embodiment, the new technology use-case development block of described new technology use-case development block in described user operation module finds the test macro item corresponding with protocol layer information with the test macro in the test environment of described test design and protocol layer item, create the subitem of described test macro item and protocol layer item as test case item, described test case item is associated with the test configurations information of described test macro item and protocol layer item.Then step S23 is performed.
In step S23, described test case is joined TTCN-3 test module by described new technology use-case development block, obtains the number information of the described test case determined by described TTCN-3 test module.Particularly, described TTCN-3 test module sets up the corresponding relation of described test case and described number information, and described TTCN-3 test module can obtain test case corresponding to described number information according to described number information.Then step S24 is performed.
In step s 24 which, described new technology use-case development block sets up associating of described number information and described test case item, and the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item.Particularly, when user selects described test case item to test, obtain detecting information, described detecting information comprises the number information of test configurations information and the described test case item associated with protocol layer item with described test macro item.
Present invention also offers a kind of method of terminal being carried out to testing protocol consistency, the method can be realized by the terminal protocol uniformity test platform based on TTCN-3 provided by the invention, but is not limited to described platform.
Consult Fig. 4, provided by the inventionly a kind of the method that terminal carries out testing protocol consistency to be tested mobile terminal based on TTCN-3, comprise the steps:
First perform step S31, utilize the new technology use-case development block in a user operation module to create test case according to the content measurement of test design.Particularly, described test design comprises the test design carried out according to the definition of the protocol layer of new technology, is defined, design corresponding test environment, design test flow process by the protocol layer of described new technology of analyzing and researching, the content of design test.Described test case is described formation according to the content TTCN-3 language of required test.Then step S32 is performed.
In step s 32, described new technology use-case development block is developed according to the demand of the test environment of described test design, comprises the exploitation to any one or combination in the corresponding system adapter plug-in unit of test environment, platform adapter plug-in unit or codec plug-in unit.Particularly, by java language development system adapter plug-in unit and platform adapter card.Described system adapter plug-in unit is for the treatment of the message communicating between described TTCN-3 test module and system simulator and the invocation of procedure.Described platform adapter plug-in unit is used for carrying out adaptation with specific operation system platform, mainly call operation system clock, for test macro provides timer function accurately.Described codec plug-in unit is for realizing the coding-decoding operation between TTCN-3 types value and bit stream, for different test macros, need to select suitable codec plug-in unit, the bit stream that the data type conversion of the TTCN-3 of test becomes described test macro to process by described codec plug-in unit and the bit stream by the described test macro of described TTCN-3 test module reception convert the data of the TTCN-3 of described TTCN-3 test module process to.Then step S33 is performed.
In step S33, the described system adapter plug-in unit of exploitation, platform adapter plug-in unit or codec plug-in unit are also joined TTCN-3 test module by described new technology use-case development block, corresponding test configurations information is determined respectively, system adapter plug-in unit, platform adapter plug-in unit or codec plug-in unit described in option and installment when the test configurations information of described correspondence is respectively used to configuration testing environment by described TTCN-3 test module.Particularly, the plug-in unit that described TTCN-3 test module can be corresponding according to the test configurations information configuration of described correspondence.Suppose that the system adapter plug-in unit of described exploitation joins in TTCN-3 test module, described TTCN-3 test module determines that the test configurations information of the correspondence of the system adapter plug-in unit of described exploitation is for " class name A ", when then selecting test case item to test, if included " class name A " in the test configurations information of described test case item, then the system adapter plug-in unit developed described in described TTCN-3 test module option and installment.Then step S34 is performed.
In step S34, described new technology use-case development block creates corresponding test macro item and protocol layer item according to the test macro in described test environment and protocol layer information, determine the test configurations information that described test macro item associates with protocol layer item respectively, described test configurations information is used for the initialization of test platform, sets up correct test environment.Particularly, the test configurations information that described test macro item associates with protocol layer item at least comprises configuration-system simulator information, the configuration information of configuration-system adapter card, the configuration information of configuration platform adapter card, the configuration information of configuration codec plug-in unit.Then step S35 is performed.
In step s 35, described use-case test cell sets up subitem as test case item in described test macro item and protocol layer item, and described test case item is associated with the test configurations information of described test macro item and protocol layer item.Particularly, when user selects described test case item to test, namely obtain the test configurations information associated with protocol layer item with described test macro item, described test configurations information is for setting up correct test environment.Then step S36 is performed.
In step S36, described test case is joined TTCN-3 test module by described new technology use-case development block, obtains the number information of the described test case determined by described TTCN-3 test module.Particularly, described TTCN-3 test module sets up the corresponding relation of described test case and described number information, and described TTCN-3 test module can obtain test case corresponding to described number information according to described number information.Then step S37 is performed.
In step S37, described new technology use-case development block sets up associating of described test case number information and described test case item, and the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item.Particularly, when user selects described test case item to test, obtain detecting information, described detecting information comprises the number information of test configurations information and the described test case item associated with protocol layer item with described test macro item.
In the concrete enforcement of method of the present invention, the execution sequence for step is wherein adjustable a bit, especially for wherein can the step of executed in parallel, therefore, for the inventive method of set-up procedure, should be contained by claim of the present invention.
In sum, the present invention is based on terminal protocol uniformity test platform and the method for TTCN-3, described Conformance Testing Environment passes through modularized design, the network side protocol function in simulated testing system is carried out with system simulator, enhance the extensibility of the test macro of Conformance Testing Environment, test development unit simultaneously in platform, for carrying out the exploitation of newly-designed test case, enhances applicability and the flexibility of test platform.This platform is not only applicable to existing terminal protocol uniformity test, and be applicable to the renewal upgrading of existing terminal protocol and the development and testing of new technology agreement, greatly shorten the protocol development process of terminal, improve the whole efficiency of terminal protocol uniformity test, thus promote the industrialized development of terminal.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (10)

1. based on a terminal protocol uniformity test platform of TTCN-3, it is characterized in that, described uniformity test platform at least comprises:
User operation module, comprises use-case test cell and new technology use-case development block; Use-case test cell is for selecting test case item, and described test case item is the subitem of test macro item and protocol layer item, and the detecting information that this test case item associates is sent to TTCN-3 test module; New technology use-case development block is used for development new technologies dependence test use-case, and described test case is added TTCN-3 test module, and generating test use case item, determine the detecting information that described test case item associates;
TTCN-3 test module, be connected with described new technology use-case development block with described use-case test cell, determine the number information that the test case that adds is corresponding, detecting information is obtained from described use-case test cell or described new technology use-case development block, test system configurations is carried out according to detecting information, coding generates test command and sends to system simulator, the response message of receiving system simulator, will be stored in the daily record of described TTCN-3 test module as log information after described response message decoding;
System simulator, is connected with described TTCN-3 test module; Described system simulator is connected with measured terminal, tests described measured terminal according to described test command, and the response message of described measured terminal is sent to described TTCN-3 test module.
2. the terminal protocol uniformity test platform based on TTCN-3 according to claim 1, is characterized in that, the use-case development module in described user operation module also for:
The relevant plug-in unit of development and testing environment, is connected with described TTCN-3 test module, is joined by described relevant plug-in unit in described TTCN-3 test module; Described TTCN-3 test module determines the test configurations information that described relevant plug-in unit is corresponding; Described use-case development module creates test macro item and protocol layer item, and determines and the test configurations information that described test macro item and protocol layer item associate respectively.
3. the terminal protocol uniformity test platform based on TTCN-3 according to claim 1, it is characterized in that, described user operation module also comprises:
Log analysis unit, is connected with described TTCN-3 test module, for obtaining log information in the daily record from described TTCN-3 test module, and generates test report according to described log information.
4. the terminal protocol uniformity test platform based on TTCN-3 according to claim 1, it is characterized in that, described test case in described new technology use-case development block comprises to be developed according to the protocol test Demand Design of new technology, or develop according to the test design of existing agreement upgraded version.
5. the terminal protocol uniformity test platform based on TTCN-3 according to claim 1, it is characterized in that, described system simulator comprises at least one instrument, and the realization of at least one network side protocol layer simulated by each instrument.
6. the terminal protocol uniformity test platform based on TTCN-3 according to claim 1, is characterized in that, described TTCN-3 test module runs on special equipment or with described user operation module and runs on same equipment.
7. the terminal protocol uniformity test platform based on TTCN-3 according to claim 1, is characterized in that, described system simulator is by eat dishes without rice or wine or radio frequency line is connected with measured terminal.
8. terminal is carried out to a method for testing protocol consistency, the method is tested mobile terminal based on TTCN-3, it is characterized in that, comprises the steps:
The test case utilizing a user operation module to select according to user, obtains the detecting information be associated, and described detecting information is sent to TTCN-3 test module;
Described TTCN-3 test module obtains corresponding test case according to described detecting information, and is configured test environment according to described detecting information;
Described TTCN-3 test module is encoded to described test case, generates the test command that can perform at described system simulator, described test command is sent to described system simulator;
Described system simulator is tested measured terminal according to described test command, obtains the response message of described measured terminal, and described response message is sent to described TTCN-3 test module;
Described TTCN-3 test module receives described response message, is stored in the daily record of described TTCN-3 test module to described response message after decoding as log information.
9. terminal is carried out to a method for testing protocol consistency, the method is tested mobile terminal based on TTCN-3, it is characterized in that, comprises the steps:
The new technology use-case development block in a user operation module is utilized to create test case according to the content measurement of test design;
Described new technology use-case development block finds in described user operation module tests test macro in the test environment designed and test macro item corresponding to protocol layer item and protocol layer item with described, create the subitem of described test macro item and protocol layer item as test case item, described test case item is associated with the test configurations information of described test macro item and protocol layer item;
Described test case is joined TTCN-3 test module by described new technology use-case development block, obtain the number information of the described test case determined by described TTCN-3 test module, and set up associating of described number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item.
10. terminal is carried out to a method for testing protocol consistency, the method is tested mobile terminal based on TTCN-3, it is characterized in that, comprises the steps:
The new technology use-case development block in a user operation module is utilized to create test case according to the content measurement of test design;
Described new technology use-case development block is developed according to the demand of the test environment of described test design, comprises the exploitation to any one or combination in the corresponding system adapter plug-in unit of test environment, platform adapter plug-in unit or codec plug-in unit; And any one or combination in the described system adapter plug-in unit of exploitation, platform adapter plug-in unit or codec plug-in unit are joined TTCN-3 test module, corresponding configuration information is determined respectively, system adapter plug-in unit, platform adapter plug-in unit or codec plug-in unit described in option and installment when the configuration information of described correspondence is respectively used to configuration testing environment by described TTCN-3 test module;
Described new technology use-case development block creates corresponding test macro item and protocol layer item according to the test macro in described test environment and protocol layer information, determines the test configurations information that described test macro item associates with protocol layer item respectively; And subitem is set up as test case item in described test macro item and protocol layer item, described test case item is associated with the test configurations information of described test macro item and protocol layer item;
Described test case is joined TTCN-3 test module by described new technology use-case development block, obtain the number information of the described test case determined by described TTCN-3 test module, and set up associating of described test case number information and described test case item, the number information of described test case item association and test configurations information are jointly as the detecting information of described test case item.
CN201310648143.9A 2013-12-04 2013-12-04 Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3 Pending CN104703197A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310648143.9A CN104703197A (en) 2013-12-04 2013-12-04 Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310648143.9A CN104703197A (en) 2013-12-04 2013-12-04 Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3

Publications (1)

Publication Number Publication Date
CN104703197A true CN104703197A (en) 2015-06-10

Family

ID=53349878

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310648143.9A Pending CN104703197A (en) 2013-12-04 2013-12-04 Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3

Country Status (1)

Country Link
CN (1) CN104703197A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592492A (en) * 2015-12-18 2016-05-18 重庆邮电大学 Platform and method for testing high-layer protocol stack consistency
CN107948009A (en) * 2017-10-30 2018-04-20 中国电力科学研究院有限公司 The construction method and model of the data exchange channels of PLC protocol tests
CN109088706A (en) * 2018-08-24 2018-12-25 北京泰德东腾通信技术有限公司 5th third-generation mobile communication is newly eated dishes without rice or wine technology terminal consistency test method and system
CN111628910A (en) * 2020-05-27 2020-09-04 华畅科技(大连)股份有限公司 TTCN software testing system of cellular communication terminal protocol stack
CN115776456A (en) * 2022-11-28 2023-03-10 重庆长安汽车股份有限公司 Communication protocol testing method, device, testing equipment and storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592492A (en) * 2015-12-18 2016-05-18 重庆邮电大学 Platform and method for testing high-layer protocol stack consistency
CN105592492B (en) * 2015-12-18 2019-02-26 重庆邮电大学 Higher-layer protocols uniformity test platform and test method
CN107948009A (en) * 2017-10-30 2018-04-20 中国电力科学研究院有限公司 The construction method and model of the data exchange channels of PLC protocol tests
CN109088706A (en) * 2018-08-24 2018-12-25 北京泰德东腾通信技术有限公司 5th third-generation mobile communication is newly eated dishes without rice or wine technology terminal consistency test method and system
CN111628910A (en) * 2020-05-27 2020-09-04 华畅科技(大连)股份有限公司 TTCN software testing system of cellular communication terminal protocol stack
CN115776456A (en) * 2022-11-28 2023-03-10 重庆长安汽车股份有限公司 Communication protocol testing method, device, testing equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106503308B (en) A kind of CAN controller IP verification platform based on UVM
CN105337674B (en) A kind of space TTC & DT Systems integration test verification platform
CN104703197A (en) Terminal protocol consistency testing platform and terminal protocol consistency testing method based on TTCN-3
CN100512274C (en) Device and method for simulating communication system capable of easily controlling protocol message
CN105787364B (en) Automatic testing method, device and system for tasks
CN106681903B (en) Method and device for generating test case
CN104363324B (en) A kind of method of testing and test system tested automatically cell phone mainboard
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN113342583B (en) Chip verification system, method, device, equipment and storage medium
CN104133765B (en) The test case sending method of network activity and test case server
CN102098702B (en) Performance testing system, method and equipment
CN109683997B (en) Method for accessing application program interface through sandbox, sandbox and sandbox equipment
CN109815099A (en) The FPGA verification method of JESD204B controller
CN107908556A (en) Interface test method, device, equipment and computer-readable recording medium
KR20140106857A (en) Protocol conformity verification method, apparatus performing the same and systme performing the same
CN103987078A (en) Base station physical layer test method and system
CN108121657A (en) Programmable logic device software simulation verification system based on system model
CN106708723B (en) A kind of test, method of calibration and device
CN104092579A (en) Simulating method and device for network types
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
Riliskis et al. Symphony: Simulation, emulation, and virtualization framework for accurate WSN experimentation
CN110209587A (en) The test method and device of safety chip operation flow
CN116956801A (en) Chip verification method, device, computer equipment and storage medium
CN113535578B (en) CTS test method, CTS test device and CTS test equipment
CN115833964A (en) Performance test method and performance test system of dual-mode communication module

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20150610