CN100568829C - Mobile terminal protocol method of testing and system thereof - Google Patents

Mobile terminal protocol method of testing and system thereof Download PDF

Info

Publication number
CN100568829C
CN100568829C CNB2005101352634A CN200510135263A CN100568829C CN 100568829 C CN100568829 C CN 100568829C CN B2005101352634 A CNB2005101352634 A CN B2005101352634A CN 200510135263 A CN200510135263 A CN 200510135263A CN 100568829 C CN100568829 C CN 100568829C
Authority
CN
China
Prior art keywords
test
test case
hardware platform
tested entity
tested
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
Application number
CNB2005101352634A
Other languages
Chinese (zh)
Other versions
CN1996899A (en
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CNB2005101352634A priority Critical patent/CN100568829C/en
Publication of CN1996899A publication Critical patent/CN1996899A/en
Application granted granted Critical
Publication of CN100568829C publication Critical patent/CN100568829C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The present invention proposes a kind of mobile terminal protocol method of testing and system thereof, and wherein this method adopts following steps to realize: the computer that will have test case adopts data wire to be connected with the terminal hardware platform that has tested entity; Two adaptation layers on debugging computer and the terminal hardware platform make test case be connected with tested entity logic; Tested entity is transplanted to the process that is packaged on the terminal hardware platform to be moved; The corresponding test case of operation in the script executing platform on computers, test case and tested entity are undertaken alternately by adaptation layer separately, simultaneously terminal hardware platform and network service; Set up test environment, tested entity is judged according to test case and tested entity interaction result.The present invention can having under real network environment or network test environment and the protocol software and the incomplete situation, can test terminal protocol software in the terminal protocol research and development of software stage.

Description

Mobile terminal protocol method of testing and system thereof
Technical field
The present invention relates to the method for testing in the communications field, particularly relate to a kind of method of testing the mobile terminal protocol that on terminal, moves.
Background technology
In the modern communications field, along with becoming stronger day by day of communication function, a lot of procotols have become very huge and complicated software systems, and the protocol software is the core place of whole communication system, and it is very big to the function and the Effect on Performance of whole system.Therefore it is not only very important, also very necessary in research and development and test process the protocol software to be carried out the strictness test.The consistency of necessary guarantee agreement software and agreement only in this way just can reach interconnection and interflow; And reliability and stability that must guarantee agreement software, availability that only in this way could guarantee agreement software.
At present in the development﹠ testing process of terminal protocol software for the protocol software, method of testing commonly used is under PC or work station environment, the script control testing process of operation test case in the script executing platform, allow by adaptation layer and to communicate between script executing platform and the tested entity, thereby finish test to tested entity, should test model commonly used can be as shown in Figure 1, wherein:
The script of test case is according to agreement structure, and mutual by test case and tested entity compares measured value and desired value, thereby estimate tested entity.As long as test case can be followed and coverage criteria fully, just can guarantee the consistency of tested entity and agreement in theory; Adaptation layer is the part of the actual conditions standalone configuration of communicating by letter with tested inter-entity according to test case, and it generally is the communication mode of standard socket (Socket); Tested entity is a part of module in the protocol software, after its encapsulation, makes it become the process of energy independent operating.
By foregoing description as can be known, though this method is simple, do not need network environment to cooperate, but the method not to test in real network environment after all, can not test completely and verify the protocol software, so can be in development, in true environment, with and the checking made as early as possible of the incomplete protocol software be very necessary, so just can overcome problems of the prior art, pinpoint the problems as early as possible, and reduce the cost of dealing with problems.
Summary of the invention
It is not the problem of in real network environment the imperfect protocol software that moves on the terminal being tested that the present invention will solve in the prior art, the objective of the invention is to propose a kind of mobile terminal protocol method of testing and system thereof, can be in the terminal protocol research and development of software stage, having under real network environment or network test environment and the protocol software and the incomplete situation, all can test terminal protocol software.
Another object of the present invention is to, use method of the present invention, common testing methods is carried out the additional and extension of necessary test.
The object of the present invention is achieved like this:
A kind of mobile terminal protocol method of testing, described method comprises:
The computer that will have test case adopts data wire to be connected with the terminal hardware platform that has tested entity;
Two adaptation layers on debugging computer and the terminal hardware platform make test case be connected with tested entity logic;
Tested entity is transplanted to the process that is packaged on the terminal hardware platform to be moved;
The corresponding test case of operation in the script executing platform on computers, test case and tested entity are undertaken alternately by adaptation layer separately, simultaneously terminal hardware platform and network service;
Set up test environment, tested entity is judged according to test case and tested entity interaction result.
The communication mode of described computer and terminal hardware platform is serial ports or USB or socket formula.
Described terminal hardware platform is connected with network by eating dishes without rice or wine.
Described network is real network environment or network test environment, and real network environment is a mobile radio networks.
Also comprise the step of tested entity being tested by network operation network side test case, this test realizes by eating dishes without rice or wine.
The present invention also points out a kind of mobile terminal protocol test macro, comprises test case and tested entity,
The computer that will have test case adopts data wire to be connected with the terminal hardware platform that has tested entity, and two adaptation layers on debugging computer and the terminal hardware platform make test case be connected with tested entity logic; Tested entity is transplanted to the process that is packaged on the terminal hardware platform to be moved; The corresponding test case of operation in the script executing platform on computers, test case and tested entity are undertaken alternately by adaptation layer separately; Terminal hardware platform and network service simultaneously; Set up test environment, tested entity is judged according to test case and tested entity interaction result.
Described terminal hardware platform is connected by eating dishes without rice or wine with network environment; Network environment is real network environment or network test environment, and real network environment is a mobile radio networks.
Described tested entity is undertaken alternately by network environment and network side test case, and this network side test case is tested tested entity by eating dishes without rice or wine.
Technique effect of the present invention is significant: method of testing of the present invention can have under real network environment or the network test environment, particularly just realize a protocol software part or many parts or all test, as effectively replenishing common testing methods in the development of the protocol software.The method is not only under fully real network environment and is tested, and also can use network by eating dishes without rice or wine terminal protocol software to be tested when needed, has very big flexibility and convenience; Method of the present invention in addition can be carried out with method of testing intersection commonly used, this method of testing not only can be carried out uniformity test, the test of can also interconnecting, can be development pinpointing the problems as early as possible, just find when avoiding a lot of problems to leave over later stage terminal test, reduced the cycle and the cost of resolution protocol aspect problem.
Description of drawings
Fig. 1 is a protocol software common testing methods test model.
Fig. 2 is the structured flowchart of test macro of the present invention.
Fig. 3 is a method of testing test model of the present invention.
Fig. 4 is the concrete implementing procedure figure of method of testing of the present invention.
Embodiment
The present invention proposes a kind of mobile terminal protocol test macro, by the content of Fig. 2 of the present invention as seen, the present invention is to carry out having under the situation of real network environment to the test of tested entity, in system of the present invention, this system mainly is made up of computer and terminal hardware platform, and both connect by data wire, and wherein the terminal hardware platform is connected with network environment, test case is arranged on the script executing platform of described computer, and tested entity is set on the terminal hardware platform.And first adaptation layer and second adaptation layer are set respectively on described computer and the terminal hardware platform, and logic is connected between this first adaptation layer and second adaptation layer, communicating by letter between realization and test case and the tested entity.In the present embodiment, described terminal hardware platform is connected by eating dishes without rice or wine with network environment, and this terminal hardware platform can be defined as mobile terminal test platform or engineering hardware platform etc. according to test environment; Network environment is real network environment or network test environment, and described real network environment is a mobile radio networks.
In addition, test macro of the present invention also can be undertaken tested entity alternately by network environment and network side test case, and the network test use-case is tested tested entity by eating dishes without rice or wine.
Test case in the test macro of the present invention can be the test case in the common testing methods, also can be included in other test cases that increase in the network environment.In the present invention, the test case on the described script executing platform has been simulated other parts of the protocol software, after the operation, just by first adaptation layer tested entity is tested on computers.
The test model of test macro of the present invention can be referring to the content of Fig. 3, and the following concrete step of the employing of this test macro realizes the mobile terminal protocol test, carries out specific description in conjunction with flow chart shown in Figure 4 simultaneously:
The computer that at first will have test case adopts data wire to be connected with the terminal hardware platform that has tested entity, realizes the physical connection of computer and terminal hardware platform; Communication mode between the two can have multiple mode according to actual conditions, and this mode mainly cooperates the communication mode of terminal hardware platform, such as may being that serial ports (UART) or USB mode also may be the Socket modes;
Then, first adaptation layer on debugging computer and the terminal hardware platform and second adaptation layer make the adaptation layer proper communication on both sides, thereby the logic of setting up the tested entity on test case and the terminal hardware platform on the computer is connected;
Secondly, tested entity is transplanted to is packaged into the process operation on the terminal hardware platform, this transplanting is according to test purpose and the project realization that specifically will test; In this step, for the ease of transplanting, the protocol software all can be based upon on the virtual opetrating system, and except virtual opetrating system was changed, the protocol software itself was need not do any change in order to adapt to different hardware platforms when therefore transplanting;
Then, according to test purpose and the project that specifically will test, the corresponding test case of operation in the script executing platform on computers, test case and tested entity are undertaken alternately by adaptation layer separately, terminal hardware platform and network service are tested tested entity simultaneously;
At last, set up test environment, the actual value that obtains when mutual according to test case and tested entity and the comparative result of desired value are judged tested entity, and are write down whole testing process and data simultaneously.
In addition, when using this method of testing to tested entity test, can at network side test case be set as required, this network side test case is tested terminal protocol software (tested entity) by eating dishes without rice or wine, realize two-way test in conjunction with above-mentioned test mode, and the adaptation layer described in the embodiment of the invention can be changed its interface according to the actual conditions of terminal hardware platform, so that method of testing of the present invention in use has very big flexibility and autgmentability.
Method of testing of the present invention is to realize under real network environment or network test environment, can realize a protocol software part or many parts or all tests, as effectively replenishing common testing methods.And also can use network terminal protocol software to be tested when needed, have very big flexibility and convenience by eating dishes without rice or wine; Method of the present invention in addition can be carried out with method of testing intersection commonly used, this method of testing not only can be carried out uniformity test, the test of can also interconnecting, can be development pinpointing the problems as early as possible, just find when avoiding a lot of problems to leave over later stage terminal test, reduced the cycle and the cost of resolution protocol aspect problem.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement etc., all should be included within protection scope of the present invention.

Claims (9)

1, a kind of mobile terminal protocol method of testing is characterized in that: may further comprise the steps:
The computer that will have test case adopts data wire to be connected with the terminal hardware platform that has tested entity;
Two adaptation layers on debugging computer and the terminal hardware platform make test case be connected with tested entity logic;
Tested entity is transplanted to the process that is packaged on the terminal hardware platform to be moved;
The corresponding test case of operation in the script executing platform on computers, test case and tested entity are undertaken alternately by adaptation layer separately, simultaneously terminal hardware platform and network service;
Set up test environment, tested entity is judged according to test case and tested entity interaction result.
2, a kind of mobile terminal protocol method of testing according to claim 1 is characterized in that, the communication mode of described computer and terminal hardware platform is serial ports or USB or socket formula.
3, a kind of mobile terminal protocol method of testing according to claim 1 is characterized in that, described terminal hardware platform is connected with network by eating dishes without rice or wine.
4, a kind of mobile terminal protocol method of testing according to claim 3 is characterized in that, described network is real network environment or network test environment, and real network environment is a mobile radio networks.
5, a kind of mobile terminal protocol method of testing according to claim 1 is characterized in that, also comprises the step of tested entity being tested by network operation network side test case, and this test realizes by eating dishes without rice or wine.
6, a kind of mobile terminal protocol test macro comprises test case and tested entity, it is characterized in that,
The computer that will have test case adopts data wire to be connected with the terminal hardware platform that has tested entity, and two adaptation layers on debugging computer and the terminal hardware platform make test case be connected with tested entity logic; Tested entity is transplanted to the process that is packaged on the terminal hardware platform to be moved;
The corresponding test case of operation in the script executing platform on computers, test case and tested entity are undertaken alternately by adaptation layer separately; Terminal hardware platform and network service simultaneously;
Set up test environment, tested entity is judged according to test case and tested entity interaction result.
7, a kind of mobile terminal protocol test macro according to claim 6 is characterized in that, network environment is real network environment or network test environment, and described real network environment is a mobile radio networks.
8, a kind of mobile terminal protocol test macro according to claim 6 is characterized in that, described terminal hardware platform is connected by eating dishes without rice or wine with network environment.
9, a kind of mobile terminal protocol test macro according to claim 6 is characterized in that, described tested entity is undertaken alternately by network environment and network side test case, and this network side test case is tested tested entity by eating dishes without rice or wine.
CNB2005101352634A 2005-12-29 2005-12-29 Mobile terminal protocol method of testing and system thereof Expired - Fee Related CN100568829C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005101352634A CN100568829C (en) 2005-12-29 2005-12-29 Mobile terminal protocol method of testing and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005101352634A CN100568829C (en) 2005-12-29 2005-12-29 Mobile terminal protocol method of testing and system thereof

Publications (2)

Publication Number Publication Date
CN1996899A CN1996899A (en) 2007-07-11
CN100568829C true CN100568829C (en) 2009-12-09

Family

ID=38251847

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005101352634A Expired - Fee Related CN100568829C (en) 2005-12-29 2005-12-29 Mobile terminal protocol method of testing and system thereof

Country Status (1)

Country Link
CN (1) CN100568829C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101150454B (en) * 2007-07-31 2010-12-29 中兴通讯股份有限公司 Testing method for automatic switching optical network
CN101800910B (en) * 2010-01-25 2014-04-09 中兴通讯股份有限公司 Simulation system, PC side simulator and mobile phone side agent client
CN103490958B (en) * 2013-09-27 2017-05-10 国家电网公司 Method for testing local communication unit interchangeability of acquisition terminal
CN109495870B (en) * 2018-07-24 2022-02-01 华为机器有限公司 Bluetooth test method and device

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
. .
局域网上支持组播的网络仿真环境的构建方法与实现. 隋华懿,马殿富,赵路.计算机工程与应用,第2003卷第24期. 2003
局域网上支持组播的网络仿真环境的构建方法与实现. 隋华懿,马殿富,赵路.计算机工程与应用,第2003卷第24期. 2003 *
被动测试和主动测试的研究. 张波,赵保华,屈玉贵,张英堂,刘桂英.小型微型计算机系统,第25卷第12期. 2004
被动测试和主动测试的研究. 张波,赵保华,屈玉贵,张英堂,刘桂英.小型微型计算机系统,第25卷第12期. 2004 *

Also Published As

Publication number Publication date
CN1996899A (en) 2007-07-11

Similar Documents

Publication Publication Date Title
CN104348673B (en) A kind of method of commissioning, master control borad and business board
CN106909752B (en) Simulation system for testing external interface of high-speed railway computer interlocking system
CN100568829C (en) Mobile terminal protocol method of testing and system thereof
CN101808356B (en) Protocol simulation system for TD-SCDMA terminal protocol conformance tests
CN104038605A (en) Phone point of sale (POS) payment terminal transaction testing method
US20090036115A1 (en) System and method for testing gsm modules
CN101656974A (en) SIM card compatibility automated test method and device
US20140100837A1 (en) Integration verification system
CN104394029A (en) An AFDX bus detecting method based on a hybrid channel
CN204116942U (en) Vehicle-mounted electronic control unit LIN bus communication automatic test device
CN106789402B (en) Multi-network-port mapping multi-machine test system and method based on automation platform
CN110018392A (en) A kind of test macro of electrical power distribution automatization system main website
CN100384287C (en) Radio communication detecting system
CN101102566A (en) A design method and debugging method for mobile phone JTAG debugging interface signals
CN109842534B (en) Equipment test verification method based on switched FC simulation card
CN100396031C (en) System and method for testing function of communication apparatus
CN101452413B (en) Automatic detection system for note type computer keyboard interface and method thereof
US10404700B1 (en) Concurrent design process
CN113872682A (en) Optical module introduction test method and system
CN113067745A (en) Aircraft 1394B bus communication simulation test platform
CN105656718A (en) Stable automatic testing method for switch
CN102868461B (en) Base band test method, device and system
CN114595102A (en) Authentication method, electronic device, and storage medium
CN1997062A (en) Automatic line switching device for DSL device test
CN113010361A (en) MIO function rapid verification method of fully programmable SOC chip

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: 20091209

Termination date: 20141229

EXPY Termination of patent right or utility model