CN102104894A - Mobile service protocol testing device and method - Google Patents

Mobile service protocol testing device and method Download PDF

Info

Publication number
CN102104894A
CN102104894A CN2009102425664A CN200910242566A CN102104894A CN 102104894 A CN102104894 A CN 102104894A CN 2009102425664 A CN2009102425664 A CN 2009102425664A CN 200910242566 A CN200910242566 A CN 200910242566A CN 102104894 A CN102104894 A CN 102104894A
Authority
CN
China
Prior art keywords
test
data
determining
measurand
mobile service
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
CN2009102425664A
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.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
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 China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN2009102425664A priority Critical patent/CN102104894A/en
Publication of CN102104894A publication Critical patent/CN102104894A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a mobile service protocol testing device and method. The device comprises a test case scheduling module, a data generating module, a port adaption interactive module and a result determining module, wherein the test case scheduling module is used for determining test cases contained in the current mobile service protocol testing from a set test case set, the data generating module is used for generating test request data corresponding to the determined test cases, the port adaption interactive module is used for selecting a communication protocol mode, applicable to an object to be tested and corresponding to the current mobile service protocol testing, sending the test request data to the object to be tested and receiving test result data returned by the test object to be tested, and the result determining module is used for determining a test result corresponding to the determined test cases according to the test result data. By applying the device and method provided by the invention, the problem that the reusability of the test device in the prior art is poor can be solved.

Description

A kind of mobile service protocol testing device and method
Technical field
The present invention relates to the mobile service protocol test technical field of the communications field, relate in particular to a kind of mobile service protocol testing device and method.
Background technology
Present mobile service testing protocol consistency of the prior art comprises the mobile service server is tested and portable terminal is tested; Wherein, the mobile service server is carried out testing protocol consistency, usual way is that by the specific transactions client simulation software of specific terminal (testing apparatus) employing customized development, each operation flow is initiated in emulation, as shown in Figure 1; Portable terminal is carried out testing protocol consistency, and usual way is that the portable terminal of client software to be measured has been installed in utilization, tests by the server platform of specific transactions, as shown in Figure 2.For above-mentioned existing method of testing, all need between testing apparatus and the measurand, relate to the code of service logic and the protocol stack code height coupling of core, be that each measurand needs a kind of specific testing apparatus, therefore, make that the reusability and the autgmentability of testing apparatus are relatively poor, add or the modification test case, need to revise a large amount of codes, and when same measurand is tested at same mobile service agreement, as adopt different testing apparatuss, lack comparativity between each test result of obtaining respectively.
Summary of the invention
The embodiment of the invention provides a kind of mobile service protocol testing device and method, in order to solve the problem of the testing apparatus reusability difference that exists in the prior art.
The embodiment of the invention provides a kind of mobile service protocol testing device, comprising:
The test case scheduler module is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises;
Data generation module is used to generate the test request data corresponding with the test case of determining;
The adaptive interactive module of port, the communication protocol mode that is used to select the measurand corresponding with described this mobile service protocol test to be suitable for sends to described measurand with described test request data, and receives the test result data that described measurand is returned;
Determination module is used for determining and the corresponding test result of the described test case of determining according to described test result data as a result.
The embodiment of the invention also provides a kind of mobile service protocol testing device, comprising: test case scheduler module, the adaptive interactive module of port and data generation module; Wherein:
Described test case scheduler module is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises;
The adaptive interactive module of described port, the communication protocol mode that is used to select the measurand corresponding with described this mobile service protocol test to be suitable for receives the corresponding test request data of the test case with determining that described measurand sends; And the communication protocol mode of selecting described measurand to be suitable for, the test result data that described data generation module is generated sends to described measurand;
Described data generation module, the test case process that is used for determining in the described test case scheduler module of execution generates described test result data with reference to the described test request data that the adaptive interactive module of described port receives.
The embodiment of the invention also provides a kind of mobile service protocol testing method, comprising:
Concentrate from the test case of setting and to determine the test case that this mobile service protocol test comprises;
Generate the test request data corresponding with the test case of determining;
The communication protocol mode of selecting the measurand corresponding with described this mobile service protocol test to be suitable for sends to described measurand with described test request data, and receives the test result data that described measurand is returned;
Determine and the corresponding test result of the described test case of determining according to described test result data.
The embodiment of the invention also provides a kind of mobile service protocol testing method, comprising:
Concentrate from the test case of setting and to determine the test case that this mobile service protocol test comprises;
The communication protocol mode of selecting the measurand corresponding with described this mobile service protocol test to be suitable for receives the corresponding test request data of the test case with determining that described measurand sends;
In carrying out the described test case process of determining,, generate test result data with reference to described test request data;
The communication protocol mode of selecting described measurand to be suitable for sends to described measurand with described test result data.
In the device that the embodiment of the invention provides, the test case scheduler module can be concentrated from the test case of setting and determine the test case that this mobile service protocol test comprises, promptly can be by concentrating test case in test case in advance at the testing setup correspondence of different mobile service agreements, and then realization is to the test processes of different mobile service agreements, generate corresponding test data, comprise test request data and test result data, and be used for the adaptive interactive module of port in the test process with measurand interactive testing data, the communication protocol mode that can select measurand to be suitable for is carried out the mutual of test data, promptly the measurand for different port all can realize the mutual of test data, and then realization is to the test of different mobile service agreements, therefore, the reusability of the mobile service protocol testing device that testing apparatus compared to existing technology, the embodiment of the invention provide is better.
Description of drawings
Fig. 1 is for carrying out the schematic diagram of mobile service protocol test to the mobile service server in the prior art;
Fig. 2 is for carrying out the schematic diagram of mobile service protocol test to portable terminal in the prior art;
The structural representation of the mobile service protocol testing device that Fig. 3 provides for the embodiment of the invention one;
The structural representation of the test case scheduler module in the mobile service protocol testing device that Fig. 4 provides for the embodiment of the invention one;
The structural representation of the data generation module in the mobile service protocol testing device that Fig. 5 provides for the embodiment of the invention one;
The structural representation of the coding submodule in the data generation module in the mobile service protocol testing device that Fig. 6 provides for the embodiment of the invention one;
The flow chart that coding submodule in the data generation module in the mobile service protocol testing device that Fig. 7 provides for the embodiment of the invention one is encoded to data;
The structural representation of the determination module as a result in the mobile service protocol testing device that Fig. 8 provides for the embodiment of the invention one;
Result in the mobile service protocol testing device that Fig. 9 provides for the embodiment of the invention one determines the structural representation of the decoding submodule in the submodule;
Result in the mobile service protocol testing device that Figure 10 provides for the embodiment of the invention one determines the flow chart that the decoding submodule in the submodule is decoded to data;
The structural representation of the adaptive interactive module of port in the mobile service protocol testing device that Figure 11 provides for the embodiment of the invention one;
The structural representation of the mobile service protocol testing device that Figure 12 provides for the embodiment of the invention two;
The structural representation of the data generation module in the mobile service protocol testing device that Figure 13 provides for the embodiment of the invention two;
The structural representation of the adaptive interactive module of port in the mobile service protocol testing device that Figure 14 provides for the embodiment of the invention two;
The flow chart that moves each service protocol method of testing that Figure 15 provides for the embodiment of the invention three;
The flow chart that moves each service protocol method of testing that Figure 16 provides for the embodiment of the invention four.
Embodiment
Embodiment one:
The embodiment of the invention one provides a kind of mobile service protocol testing device, as shown in Figure 3, comprising:
Test case scheduler module 301 is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises;
Data generation module 302 is used to generate the test request data corresponding with the test case of determining;
The adaptive interactive module 303 of port, the communication protocol mode that is used to select the measurand corresponding with this mobile service protocol test to be suitable for sends to measurand with the test request data, and receives the test result data that measurand is returned;
Determination module 304 as a result, are used for determining the test result corresponding with the test case of determining according to test result data.
The mobile service protocol testing device that the embodiment of the invention one provides, carry out the mobile service protocol test when can be used for measurand for Mobile Server, below in conjunction with accompanying drawing, each module that the mobile service protocol testing device that the embodiment of the invention one is provided comprises is described in detail.
Wherein, above-mentioned test case scheduler module 301 specifically can be used for the test case that the test case of setting is concentrated is carried out centralized control, scheduling and execution, and compiling test case script.Concentrate the subclass corresponding according to the test case of setting with each mobile service protocol test, its structure can further be divided as shown in Figure 4, wherein, the corresponding a kind of mobile service protocol test of each test case subclass, every kind of mobile service protocol test comprises more corresponding test cases, and each test case that execution control submodule is used for test case subclass under it is comprised is controlled, dispatched and carries out.Adopt Fig. 4 structure, for newly-increased mobile service protocol test, by adding the expansion that corresponding test case subclass can realize testing apparatus.
Above-mentioned data generation module 302 as shown in Figure 5, specifically can comprise:
Obtain submodule 501, be used to obtain the original test data corresponding with the test case of determining;
Coding submodule 502 is used for adopting and this mobile service protocol test corresponding codes strategy, the original test data of obtaining is encoded, and the test data that the back of will encoding generates is as the test request data corresponding with the test case of determining.
Above-mentioned coding submodule 502 essence promptly are used for the upper layer data (being generally the service application data format) of mobile service is converted into the protocol data (being generally agreement carrying data format, i.e. binary data format) that bottom directly sends; As shown in Figure 6, above-mentioned coding submodule 502 specifically can further include: core encoder engine submodule 601, formatted file definition analyzing sub-module 602, simple data type conversion submodule 603, data label add submodule 604, data length processing sub 605 and data assembling submodule 606; Wherein:
Core encoder engine submodule 601 is used for dispatching the operation of other each submodules of coding submodule 502, at first call format document definition analyzing sub-module 602 reads and resolves the specific format file corresponding with this mobile service protocol test, determine the corresponding codes strategy, and obtain the original test data to be encoded of submodule 501 inputs in reception after, according to the coding strategy of determining, call simple data type conversion submodule 603 accordingly, data label adds submodule 604 and data length processing sub 605, finish coding to original test data, call data assembling submodule 606 simultaneously, each segment data assembling behind the coding is become the test data that agreement is carried data format, as final test request data;
More specifically, simple data type conversion submodule 603, specifically be used to realize the encoding function of data, for example, when using TTCN-3 (Testing and Test Control Notation, test and test control expression formula) when this function realized in language, can form by TTCN-3 simple data type transfer function;
Data label adds submodule 604, specifically is used to data to be encoded to add label commonly used in the coding; For example, comprising: with the data of length differentiation, as the packet header length in the Transmission Control Protocol, PDU total length; Tag label in the XML data; Labels such as " HOST " in the http protocol, " Content-Length "; Labels such as " From " in the Session Initiation Protocol, " to ".
Data length processing sub 605, specifically being used for the data setting behind the coding is the length that requires, for example, the not enough field of figure place back fills the space or the front fills 0.
The flow chart that 502 pairs of original test datas of above-mentioned coding submodule are encoded comprises as shown in Figure 7:
Step S701, obtain one section original test data to be encoded.
Step S702, judge whether the original test data of this section is simple fundamental type, if enter step S703; Otherwise, enter step S704.
Step S703, determine that the original test data of this section is specially any simple fundamental type, and adopt corresponding coding manner that the original test data of this section is encoded, generate data behind one section corresponding coding.
Step S704, the original test data of this section are not simple fundamental types, represent that then it is a structure type, one section original test data of structure type is made up of the original test data of the simple fundamental type of multistage, so, in this step, the original test data of this segment structure type is split as the original test data of the simple fundamental type of multistage, enters step S701 then, the original test data to the simple fundamental type of multistage that splits into is one by one encoded.
The above results determination module 304 as shown in Figure 8, specifically can comprise:
Decoding submodule 801 is used to adopt the decoding policy corresponding with this mobile service protocol test, and the test result data that receives is decoded, and generates decoding back result data;
The result determines submodule 802, is used for determining the test result corresponding with the test case of determining according to decoding back result data.
Above-mentioned decoding submodule 801 essence promptly are used for the protocol data that bottom directly receives is converted into the upper layer data of mobile service; As shown in Figure 9, specifically can further include: core codec engine submodule 901, formatted file definition analyzing sub-module 902, simple data type conversion submodule 903, data label analyzing sub-module 904, data split submodule 905 and data length matched sub-block 906; Wherein:
Core codec engine submodule 901 is used for dispatching the operation of other each submodules of decoding submodule 802, at first call format document definition analyzing sub-module 602 reads and resolves the specific format file corresponding with this mobile service protocol test, determine corresponding decoding policy, and call data and split submodule 905 and data length matched sub-block 906, specific format file content according to correspondence splits into corresponding label and protocol data to be decoded with test result data to be decoded, and the data that protocol data to be decoded are converted to definite length, call simple data type conversion submodule 903 and data label analyzing sub-module 904 then, finish being converted to the decoding of the data of determining length, generate decoding back result data;
More specifically, simple data type is changed submodule 903, specifically is used to realize the decoding function of data, for example, when using the TTCN-3 language to realize this function, can be made up of TTCN-3 simple data type transfer function;
Data label analyzing sub-module 904 specifically is used for the specific format file content according to correspondence, the coupling label, and resolve the corresponding protocol data.For example, the XML data are at first mated the Tag content, resolve the corresponding protocol data content afterwards;
Above-mentioned decoding submodule 802 can also comprise the tool storage room module, is used for being called by other each submodules, finishes CRC check, and functions such as MD5 data verification are not described in detail at this.
The flow chart that the test result data of 802 pairs of receptions of above-mentioned decoding submodule is decoded comprises as shown in figure 10:
Step S1001, obtain one section test result data to be decoded.
Step S1002, judge whether this section test result data is simple fundamental type, if enter step S1003; Otherwise, enter step S1004.
Step S1003, determine that this section test result data is specially any simple fundamental type, and adopt corresponding decoding process that this section test result data is decoded, generate data after one section corresponding decoding.
Step S1004, this section test result data are not simple fundamental types, represent that then it is a structure type, one section test result data of structure type is made up of the test result data of the simple fundamental type of multistage, so, in this step, the test result data of this segment structure type is split as the original test data of the simple fundamental type of multistage, enters step S1001 then, the test result data to the simple fundamental type of multistage that splits is one by one decoded.
For the decoding submodule 801 in the The above results determination module 304, in other embodiments, also it can be integrated in the above-mentioned data generation module 302, corresponding with coding submodule 502 wherein.
In the embodiment of the invention one, because different measurands adopts different communication protocol modes, therefore, the adaptive interactive module 303 of above-mentioned port promptly is used to shield the underlying protocol communication details, provide unified interface to the upper strata, as shown in figure 11, specifically may further include:
Port is determined submodule 1101, is used for determining the port type of measurand;
Send submodule 1102, be used to select the send mode corresponding that the test request data are sent to measurand with the port type of determining;
Receive submodule 1103, be used to select the receive mode corresponding to receive the test result data that measurand is returned with the port type of determining.
Above-mentioned transmission submodule 1102 can also specifically further comprise the submodule corresponding with various port, as TCP the IP protocol port send that submodule, short message port send submodule, the USSD port sends submodule etc., each port sends submodule and is used to adopt the send mode corresponding with this port type that the test request data are sent to measurand.
Similar, above-mentioned reception submodule 1103 also can specifically further comprise the submodule of various port correspondence, as TCP the IP protocol port receive that submodule, short message port receive submodule, the USSD port receives submodule etc., each port receives submodule and is used to adopt the receive mode corresponding with this port type to receive the test result data that measurand is returned; During reception, can adopt the mode that in batches receives, a collection of test result data of promptly every reception deposits in the local cache formation, after treating that whole test result data receive, whole test result data are transmitted to the decoding submodule 801 in the The above results determination module 304.
The above-mentioned mobile service protocol testing device that the embodiment of the invention one provides, carry out the mobile service protocol test when can be used for measurand for Mobile Server, at this moment, be to initiate test request data and acceptance test result data by testing apparatus, for measurand is the situation of portable terminal, the following embodiment two of the present invention provides a kind of above-mentioned mobile service protocol testing device again, is used to receive the test request data of measurand transmission and return test result data, specifically describes as follows:
Embodiment two:
The embodiment of the invention two provides a kind of mobile service protocol testing device, as shown in figure 12, comprising: test case scheduler module 1201, the adaptive interactive module 1202 of port and data generation module 1203; Wherein:
Test case scheduler module 1201 is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises;
The adaptive interactive module 1202 of port, the communication protocol mode that is used to select the measurand corresponding with this mobile service protocol test to be suitable for receives the corresponding test request data of the test case with determining that measurand sends; And the communication protocol mode of selecting measurand to be suitable for, the test result data that data generation module 1203 is generated sends to measurand;
Data generation module 1203 is used for the test request data that the adaptive interactive module of process reference port of the test case determined in implementation of test cases scheduler module 1201 receives, and generates test result data.
Below in conjunction with accompanying drawing, each module that the mobile service protocol testing device that the embodiment of the invention two is provided comprises is described in detail.
Wherein, above-mentioned test case scheduler module 1202 specifically can be used for the test case that the test case of setting is concentrated is carried out centralized control, scheduling and execution, and compiling test case script.Concentrate the subclass corresponding with each mobile service protocol test according to the test case of setting, its structure can also further be divided, specifically can adopt with the embodiment of the invention one in the identical structure of Fig. 4, no longer be described in detail at this.
Above-mentioned data generation module 1203 as shown in figure 13, specifically can comprise:
Decoding submodule 1301 is used to adopt the decoding policy corresponding with this mobile service protocol test, and the test request data that receive are decoded, and generates decoding back request msg;
Generate submodule 1302, be used for request msg after the decoding that the test case process that implementation of test cases scheduler module 1201 is determined generates with reference to decoding submodule 1301, generate the baseline results data;
Coding submodule 1303 is used for adopting and this mobile service protocol test corresponding codes strategy, and the baseline results data are encoded, and generates test result data.
Above-mentioned decoding submodule 1301 essence promptly are used for the protocol data that bottom directly receives is converted into the upper layer data of mobile service; Concrete structure can adopt the structure shown in Figure 9 in the above embodiment of the present invention one, comprising function and Fig. 9 of each submodule in the function of each submodule identical, decoding process is same as shown in Figure 10, compare the decoding submodule 802 among the embodiment one, difference only is the data difference handled, but the processing mode to data is identical, therefore, no longer does detailed description at this.
Above-mentioned coding submodule 1303 essence promptly are used for the upper layer data of mobile service is converted into the protocol data that bottom directly sends; Concrete structure can adopt the structure shown in Figure 9 in the above embodiment of the present invention one, comprising function and Fig. 6 of each submodule in the function of each submodule identical, the coding flow process is same as shown in Figure 7, compare the coding submodule 502 among the embodiment one, difference only is the data difference handled, but the processing mode to data is identical, therefore, no longer does detailed description at this.
In the embodiment of the invention two, because different measurands adopts different communication protocol modes, therefore, the adaptive interactive module 1202 of above-mentioned port promptly is used to shield the underlying protocol communication details, provide unified interface to the upper strata, as shown in figure 14, specifically may further include:
Port is determined submodule 1401, is used for determining the port type of measurand;
Receive submodule 1402, be used to select the receive mode corresponding to receive the corresponding test request data of the test case with determining that measurand sends with the port type of determining;
Send submodule 1403, be used to select the send mode corresponding that test result data is sent to measurand with the port type of determining.
Above-mentioned reception submodule 1402 can adopt with embodiment one in the structure and the processing mode of reception submodule 1103, difference is the data difference handled, no longer does detailed description at this.
Above-mentioned transmission submodule 1403 can adopt with embodiment one in the structure and the processing mode of transmission submodule 1102, difference is the data difference handled, no longer does detailed description at this.
Embodiment three:
Based on the mobile service protocol testing device that the above embodiment of the present invention one provides, correspondingly, the embodiment of the invention three also provides a kind of mobile service protocol testing method, and its flow chart comprises as shown in figure 15:
Step S1501, concentrate from the test case of setting and to determine the test case that this mobile service protocol test comprises.
Step S1502, generate the test request data corresponding with the test case of determining.
This step specifically can comprise:
Obtain the original test data corresponding with the test case of determining;
Adopt and this mobile service protocol test corresponding codes strategy, original test data is encoded, and the test data that the back of will encoding generates is as the test request data corresponding with the test case of determining.
Step S1503, the communication protocol mode of selecting the measurand corresponding with this mobile service protocol test to be suitable for send to measurand with the test request data, and receive the test result data that measurand is returned.
This step specifically can comprise:
Determine the port type of described measurand;
Select the send mode corresponding that the test request data are sent to measurand with the port type of determining;
Select the receive mode corresponding to receive the test result data that measurand is returned with the port type of determining.
Step S1504, determine the test result corresponding with the test case of determining according to test result data.
This step specifically can comprise:
Adopt the decoding policy corresponding, the test result data that receives is decoded, generate decoding back result data with this mobile service protocol test;
Determine the test result corresponding according to decoding back result data with the test case of determining.
Each step that the method flow that the above embodiment of the present invention three provides comprises is executive mode more specifically, can no longer do detailed description at this referring to the associated description in the above embodiment of the present invention one.
Embodiment four:
Based on the mobile service protocol testing device that the above embodiment of the present invention two provides, correspondingly, the embodiment of the invention four also provides a kind of mobile service protocol testing method, and its flow chart comprises as shown in figure 16:
Step S1601, concentrate from the test case of setting and to determine the test case that this mobile service protocol test comprises.
Step S1602, the communication protocol mode of selecting the measurand corresponding with this mobile service protocol test to be suitable for receive the corresponding test request data of the test case with determining that measurand sends.
This step specifically can comprise:
Determine the port type of measurand;
Select the receive mode corresponding to receive the corresponding test request data of the test case with determining that measurand sends with the port type of determining;
Step S1603, in the test case process that execution is determined with reference to the test request data, generate test result data.
This step specifically can comprise:
Adopt the decoding policy corresponding, the test request data that receive are decoded, generate decoding back request msg with this mobile service protocol test;
In the process of the test case that execution is determined,, generate the baseline results data with reference to decoding back request msg;
Adopt and this mobile service protocol test corresponding codes strategy, the baseline results data are encoded, generate test result data.
Step S1604, the communication protocol mode of selecting measurand to be suitable for send to measurand with test result data.
This step is specifically as follows:
Select the send mode corresponding that test result data is sent to measurand with the port type of determining.
The above embodiment of the present invention one-four described testing apparatus and method, can adopt variety of way of the prior art to realize the function and the method flow step of rich each functional module that comprises of its device, preferable, can adopt to be exclusively used in the TTCN-3 language realization of carrying out testing protocol consistency.
In sum, the scheme that the embodiment of the invention provides comprises: the test case scheduler module is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises; Data generation module is used to generate the test request data corresponding with the test case of determining; The adaptive interactive module of port, the communication protocol mode that is used to select the measurand corresponding with this mobile service protocol test to be suitable for sends to measurand with the test request data, and receives the test result data that measurand is returned; Determination module is used for determining the test result corresponding with the test case of determining according to test result data as a result.The scheme that adopts the embodiment of the invention to provide can solve the problem of the testing apparatus reusability difference that exists in the prior art.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (14)

1. a mobile service protocol testing device is characterized in that, comprising:
The test case scheduler module is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises;
Data generation module is used to generate the test request data corresponding with the test case of determining;
The adaptive interactive module of port, the communication protocol mode that is used to select the measurand corresponding with described this mobile service protocol test to be suitable for sends to described measurand with described test request data, and receives the test result data that described measurand is returned;
Determination module is used for determining and the corresponding test result of the described test case of determining according to described test result data as a result.
2. device as claimed in claim 1 is characterized in that, described data generation module specifically comprises:
Obtain submodule, be used to obtain the original test data corresponding with the test case of determining;
The coding submodule is used for adopting and described this mobile service protocol test corresponding codes strategy, described original test data is encoded, and the test data that the back of will encoding generates is as the test request data corresponding with the test case of determining.
3. device as claimed in claim 1 is characterized in that, described determination module as a result specifically comprises:
The decoding submodule is used to adopt and the corresponding decoding policy of described this mobile service protocol test, and the described test result data that receives is decoded, and generates decoding back result data;
The result determines submodule, is used for determining and the corresponding test result of the described test case of determining according to described decoding back result data.
4. as the arbitrary described device of claim 1-3, it is characterized in that the adaptive interactive module of described port specifically comprises:
Port is determined submodule, is used for determining the port type of described measurand;
Send submodule, be used to select the send mode corresponding that described test request data are sent to described measurand with the port type of determining;
Receive submodule, be used to select the receive mode corresponding to receive the test result data that described measurand is returned with the port type of determining.
5. a mobile service protocol testing device is characterized in that, comprising: test case scheduler module, the adaptive interactive module of port and data generation module; Wherein:
Described test case scheduler module is used for concentrating from the test case of setting and determines the test case that this mobile service protocol test comprises;
The adaptive interactive module of described port, the communication protocol mode that is used to select the measurand corresponding with described this mobile service protocol test to be suitable for receives the corresponding test request data of the test case with determining that described measurand sends; And the communication protocol mode of selecting described measurand to be suitable for, the test result data that described data generation module is generated sends to described measurand;
Described data generation module, the test case process that is used for determining in the described test case scheduler module of execution generates described test result data with reference to the described test request data that the adaptive interactive module of described port receives.
6. device as claimed in claim 5 is characterized in that, described data generation module specifically comprises:
The decoding submodule is used to adopt and the corresponding decoding policy of described this mobile service protocol test, and the described test request data that receive are decoded, and generates decoding back request msg;
Generate submodule, the test case process that is used for determining in the described test case scheduler module of execution generates the baseline results data with reference to the described decoding back request msg that described decoding submodule generates;
The coding submodule is used for adopting and described this mobile service protocol test corresponding codes strategy, and described baseline results data are encoded, and generates test result data.
7. as claim 5 or 6 described devices, it is characterized in that the adaptive interactive module of described port specifically comprises:
Port is determined submodule, is used for determining the port type of described measurand;
Receive submodule, be used to select the receive mode corresponding to receive the corresponding test request data of the test case with determining that described measurand sends with the port type of determining;
Send submodule, be used to select the send mode corresponding that described test result data is sent to described measurand with the port type of determining.
8. a mobile service protocol testing method is characterized in that, comprising:
Concentrate from the test case of setting and to determine the test case that this mobile service protocol test comprises;
Generate the test request data corresponding with the test case of determining;
The communication protocol mode of selecting the measurand corresponding with described this mobile service protocol test to be suitable for sends to described measurand with described test request data, and receives the test result data that described measurand is returned;
Determine and the corresponding test result of the described test case of determining according to described test result data.
9. method as claimed in claim 8 is characterized in that, the test request data that described generation is corresponding with the test case of determining specifically comprise:
Obtain the original test data corresponding with the test case of determining;
Adopt and described this mobile service protocol test corresponding codes strategy, described original test data is encoded, and the test data that the back of will encoding generates is as the test request data corresponding with the test case of determining.
10. method as claimed in claim 8 is characterized in that, determines and the corresponding test result of the described test case of determining according to described test result data, specifically comprises:
Adopt and the corresponding decoding policy of described this mobile service protocol test, the described test result data that receives is decoded, generate decoding back result data;
Determine and the corresponding test result of the described test case of determining according to described decoding back result data.
11., it is characterized in that as the arbitrary described method of claim 8-10, described test request data are sent to described measurand, specifically comprise:
Determine the port type of described measurand;
Select the send mode corresponding that described test request data are sent to described measurand with the port type of determining;
Receive the test result data that described measurand is returned, be specially:
Select the receive mode corresponding to receive the test result data that described measurand is returned with the port type of determining.
12. a mobile service protocol testing method is characterized in that, comprising:
Concentrate from the test case of setting and to determine the test case that this mobile service protocol test comprises;
The communication protocol mode of selecting the measurand corresponding with described this mobile service protocol test to be suitable for receives the corresponding test request data of the test case with determining that described measurand sends;
In carrying out the described test case process of determining,, generate test result data with reference to described test request data;
The communication protocol mode of selecting described measurand to be suitable for sends to described measurand with described test result data.
13. method as claimed in claim 12 is characterized in that, with reference to described test request data, generates test result data in carrying out the described test case process of determining; Specifically comprise:
Adopt and the corresponding decoding policy of described this mobile service protocol test, the described test request data that receive are decoded, generate decoding back request msg;
In the process of carrying out the described test case of determining,, generate the baseline results data with reference to described decoding back request msg;
Adopt and described this mobile service protocol test corresponding codes strategy, described baseline results data are encoded, generate test result data.
14., it is characterized in that as claim 12 or 13 described methods, receive the corresponding test request data of the test case with determining that described measurand sends, specifically comprise:
Determine the port type of described measurand;
Select the receive mode corresponding to receive the corresponding test request data of the test case with determining that described measurand sends with the port type of determining;
Described test result data is sent to described measurand, is specially:
Select the send mode corresponding that described test result data is sent to described measurand with the port type of determining.
CN2009102425664A 2009-12-16 2009-12-16 Mobile service protocol testing device and method Pending CN102104894A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102425664A CN102104894A (en) 2009-12-16 2009-12-16 Mobile service protocol testing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102425664A CN102104894A (en) 2009-12-16 2009-12-16 Mobile service protocol testing device and method

Publications (1)

Publication Number Publication Date
CN102104894A true CN102104894A (en) 2011-06-22

Family

ID=44157341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102425664A Pending CN102104894A (en) 2009-12-16 2009-12-16 Mobile service protocol testing device and method

Country Status (1)

Country Link
CN (1) CN102104894A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428046A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Interface protocol test method and terminal
CN104618182A (en) * 2015-01-21 2015-05-13 中国移动通信集团广东有限公司 Simulation testing system supporting a plurality of mobile service protocols
CN104618955A (en) * 2015-03-04 2015-05-13 上海华东电信研究院 Mobile communication terminal consistency test item set generating method and system
CN104734900A (en) * 2013-12-21 2015-06-24 昊宏广泰(北京)科技有限公司 Sending control method for communication protocol testing
CN109213681A (en) * 2018-08-30 2019-01-15 北京三快在线科技有限公司 Test macro, method, equipment and readable storage medium storing program for executing
CN112039722A (en) * 2020-08-12 2020-12-04 中国银联股份有限公司 MQTT protocol simulation method and simulation equipment
CN115412473A (en) * 2022-08-30 2022-11-29 云控智行(上海)汽车科技有限公司 Method and terminal for detecting data consistency of intelligent networking broadcast signals in real time for vehicles

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103428046A (en) * 2012-05-25 2013-12-04 腾讯科技(深圳)有限公司 Interface protocol test method and terminal
CN104734900A (en) * 2013-12-21 2015-06-24 昊宏广泰(北京)科技有限公司 Sending control method for communication protocol testing
CN104734900B (en) * 2013-12-21 2019-05-17 北京市腾河智慧能源科技有限公司 A kind of sending control method of communication protocol test
CN104618182A (en) * 2015-01-21 2015-05-13 中国移动通信集团广东有限公司 Simulation testing system supporting a plurality of mobile service protocols
CN104618182B (en) * 2015-01-21 2018-02-27 中国移动通信集团广东有限公司 A kind of simulated testing system for supporting a variety of mobile service agreements
CN104618955A (en) * 2015-03-04 2015-05-13 上海华东电信研究院 Mobile communication terminal consistency test item set generating method and system
CN104618955B (en) * 2015-03-04 2017-12-05 上海华东电信研究院 A kind of mobile communication terminal uniformity test project set creation method and its generation system
CN109213681A (en) * 2018-08-30 2019-01-15 北京三快在线科技有限公司 Test macro, method, equipment and readable storage medium storing program for executing
CN112039722A (en) * 2020-08-12 2020-12-04 中国银联股份有限公司 MQTT protocol simulation method and simulation equipment
CN115412473A (en) * 2022-08-30 2022-11-29 云控智行(上海)汽车科技有限公司 Method and terminal for detecting data consistency of intelligent networking broadcast signals in real time for vehicles
CN115412473B (en) * 2022-08-30 2024-03-29 云控智行(上海)汽车科技有限公司 Method and terminal for detecting data consistency of intelligent internet-connected broadcast signals of vehicles in real time

Similar Documents

Publication Publication Date Title
CN102104894A (en) Mobile service protocol testing device and method
CN101930400B (en) SDK (Software Development Kit) automatic test system and method
CN102902537B (en) Based on the embedded type WEB MVC Development Framework of FastCGI and html template
CN103500139B (en) A kind of communication software integrated test system and method for testing
CN103106205A (en) Method and device for browsing files on mobile terminal
CN102045325B (en) Input method and system based on network communication
CN110457143A (en) The call method and device of micro services
CN113938858B (en) Communication method of V2X protocol stack
CN110515827A (en) Automated testing method, device, computer equipment and storage medium
KR20140106857A (en) Protocol conformity verification method, apparatus performing the same and systme performing the same
CN106656998A (en) Server communication method and device
CN102984261B (en) Network service login method, equipment and system based on mobile telephone terminal
CN107769934B (en) Rate processing method and processing device
CN101296462A (en) Method and system for batch execution of mobile terminal software automatic test
CN109858905B (en) Cross-system electronic certificate processing method and device
CN108173957B (en) Rapid configuration joint debugging platform for Http interface
CN102802197A (en) Method and device for transmitting application data
CN101925021B (en) Method/system for processing messages and convergence service system
CN104077216A (en) Software test method and test device
CN102457880A (en) Conformance testing method and system
CN102316504B (en) A kind of protocol stack simulator of mobile communication system
CN102546736B (en) Method and system for communication between pieces of widget application
CN107231347B (en) A kind of method and system of data streaming services
CN100589358C (en) Metod and system for processing messages, and message sending end and message receiving end
CN114285658B (en) System mutual jump login-free method based on WeChat authorization login

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110622