[go: up one dir, main page]

CN104077216A - Software test method and test device - Google Patents

Software test method and test device Download PDF

Info

Publication number
CN104077216A
CN104077216A CN201310104843.1A CN201310104843A CN104077216A CN 104077216 A CN104077216 A CN 104077216A CN 201310104843 A CN201310104843 A CN 201310104843A CN 104077216 A CN104077216 A CN 104077216A
Authority
CN
China
Prior art keywords
test
protocol
information
result
decoded
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.)
Granted
Application number
CN201310104843.1A
Other languages
Chinese (zh)
Other versions
CN104077216B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310104843.1A priority Critical patent/CN104077216B/en
Publication of CN104077216A publication Critical patent/CN104077216A/en
Application granted granted Critical
Publication of CN104077216B publication Critical patent/CN104077216B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention provides a software test method, which comprises the following steps that: protocol definition information and auxiliary configuration information are obtained, wherein the protocol definition information comprises a coding and decoding protocol structure, and the auxiliary configuration information comprises decoding information; protocol content data input by a test user is organized into initial test messages according to the coding and decoding protocol structure in the protocol definition information; the initial test messages are coded, and in addition, coding results of the initial test messages are used as a first test message to be output to an end to be tested; a second test message returned by the end to be tested according to the first test message is received; the second test message is decoded according to the coding and decoding protocol structure in the protocol definition information and the decoding information in the auxiliary configuration information, and a decoding result of the second test message is generated; and test result information is generated according to the decoding result of the second test message. In addition, the invention also provides a test device. The software test method and the test device have higher test efficiency.

Description

Method for testing software and proving installation
Technical field
The present invention relates to software testing technology, relate in particular to a kind of method for testing software and proving installation.
Background technology
Along with scientific and technological development, network universal, diverse network software plays a part more and more important in people's life and work, for example: chat tool software QQ etc.
And in order to make a network software have better function, engineers often needs it to carry out a large amount of tests.In the prior art, be the logic of test network one end software, conventionally can adopt: 1. the method for manual compiling code call interface; 2. in codec code, embed the method for some testing tools; 3. by utilizing the method for network uniting and adjustment to test with the mutual other end of end to be measured.
In above-mentioned three kinds of method for testing software, first two method of testing need tester to codec code own profound understand, thereby the technical difficulty of test is higher, and manual compiling code affects testing efficiency; The third method of testing need to be by the assistance of network and mutual side, were it not for network or mutual side itself does not possess corresponding function, cannot test, and simultaneously owing to being subject to the impact of Internet Transmission quality, testing efficiency is difficult to ensure.Therefore, how to reduce the technical difficulty of test, improve testing efficiency and become the problem that needs solution.
Summary of the invention
In view of this, the invention provides a kind of method for testing software and proving installation, it has lower difficulty of test and higher testing efficiency.
A kind of method for testing software, comprise: obtain protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message; Described initial testing message is encoded, and export the coding result of described initial testing message to end to be measured as the first test post; Receive the second test post that described end to be measured returns according to described the first test post; According to the decoded information in the protocol of encode and decode structure in described protocol definition information and described auxiliary configuration information, described the second test post is decoded, generate the decoded result of described the second test post; And according to the decoded result of described the second test post, generate test result information.
A kind of software testing device, comprise: initial testing message molded tissue block, be used for obtaining protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message; Coding and output module, for described initial testing message is encoded, and export the coding result of described initial testing message to end to be measured as the first test post; The second test post receiver module, the second test post returning according to described the first test post for receiving described end to be measured; Decoder module, for according to the decoded information in the protocol of encode and decode structure of described protocol definition information and described auxiliary configuration information, described the second test post being decoded, generates the decoded result of described the second test post; And test result information generation module, for according to the decoded result of described the second test post, generate test result information.
The method for testing software that the embodiment of the present invention provides and device, by the protocol contents Organization of Data of test subscriber's input being become to initial testing message according to the protocol of encode and decode structure in protocol definition information, then will after initial testing message coding, be sent to end to be measured as the first test post, even make test subscriber in the situation that not understanding codec code, as long as know that the protocol contents data of required each the application layer protocol of software test can realize software test, thereby reduce the technical difficulty of test, and then improved testing efficiency.
For above and other object of the present invention, feature and advantage can be become apparent, preferred embodiment cited below particularly, and coordinate appended graphicly, be described in detail below.
Brief description of the drawings
The process flow diagram of the method for testing software that Fig. 1 provides for first embodiment of the invention.
The process flow diagram of the method for testing software that Fig. 2 provides for second embodiment of the invention.
The structural representation of the software testing device that Fig. 3 provides for third embodiment of the invention.
The structural representation of the software testing device that Fig. 4 provides for fourth embodiment of the invention.
The structural representation of the software testing device that Fig. 5 provides for fifth embodiment of the invention.
Embodiment
Technological means and effect of taking for realizing predetermined goal of the invention for further setting forth the present invention, below in conjunction with accompanying drawing and preferred embodiment, to according to the specific embodiment of the present invention, structure, feature and effect thereof, be described in detail as follows.
The method for testing software that the embodiment of the present invention provides can be applicable to realize the test to software in electric terminal, and electric terminal can be smart mobile phone, palm PC etc. that various softwares are installed.
It should be noted that, in embodiments of the present invention, test lead and end to be measured can be two different modules that are arranged in same electric terminal, and test lead is by Background scheduling routine interface test transmission message, thereby the software of end to be measured is tested.Test lead and end to be measured also can be arranged at respectively in two different electric terminals, and test lead is by calling network interface test transmission message, thereby the software under testing of end to be measured is tested.
The first embodiment
The process flow diagram of the method for testing software that Fig. 1 provides for the first embodiment.As shown in Figure 1, the method for testing software of the present embodiment comprises the following steps:
Step S11, obtain protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message.
Agreement refers to the message format of arranging for pass-along message between different entities.Each protocol class has fixing basic format convention, and for example message content from which byte starts to read, and every type of data account for how many bytes etc.In the embodiment of the present invention, can be application layer protocol for realizing the agreement that software test uses.Application layer is the layer 7 of inventionthe open systems interconnection reference model (Open Systems Interconnection Reference Model, osi model), directly and application programming interfaces, provide network application for user.
Form for defining the required agreement of software test and the Rule Information of content in protocol definition information, are comprised, for encoding and decoding test post, as protocol of encode and decode structure, protocol type etc.Wherein protocol of encode and decode structure comprises the protocol architecture for encoding and the protocol architecture for decoding.
In auxiliary configuration information, comprise decoded information, the decoding rules such as the one-to-one relationship of multiple values of decoding target, root agreement and protocol identifier that this decoded information comprises decoding order, the numbering of each agreement, each field respectively and between multiple agreement, auxiliary configuration information can also comprise the information such as decoded result criterion.
Protocol definition information and auxiliary configuration information can be inputted or be imported by file by test subscriber.
Protocol contents data can be inputted by the mode of calling interface by test subscriber, can input by the mode of importing configuration files, also can input by the mode at user's operation tool interface.
Step S12, encodes to described initial testing message, and exports the coding result of described initial testing message to end to be measured as the first test post.
In an embodiment of the present invention, preferably, can use the universal coding logic of application layer protocol to encode to initial testing message.Universal coding logical general, in the processing of certain agreement, realizes all functions that this kind of protocol definition supported, includes but not limited to the compatibility of various data type processing, protocol of encode and decode structure compatible, field washability etc.According to actual needs, can also access the function such as encryption, acquisition time stamp.It should be noted that, in other embodiments of the present invention, also can use specific coding logic to encode to initial testing message.
In the time that end to be measured and test lead are arranged in same electric terminal, test lead can export this first test post to end to be measured by the mode of interface interchange.For example, test lead can pass through the mode of calling program interface, directly the first test post is sent to end to be measured, connects and the time of transmitting, and then improve the efficiency of software test thereby saved network.In the time that end to be measured and test lead are arranged at respectively in two different electric terminals, test lead can export the first test post to end to be measured by the mode of Internet Transmission.For example, test lead can call network interface and connect end to be measured, then according to preassigned address, the first test post is sent to end to be measured.Above-mentioned network can be any in wireless network or cable network.
Step S13, receives the second test post that end to be measured returns according to described the first test post.
The first test post that the second test post is sent according to test lead by end to be measured returns to test lead.Termination to be measured receives after the first test post that test lead sends, and can utilize inherent logic first test post of decoding, the information then comprising according to decoded the first test post will return to test lead as the second test post after response message coding.
Step S14, decodes to described the second test post according to the decoded information in the protocol of encode and decode structure in described protocol definition information and described auxiliary configuration information, generates the decoded result of described the second test post.
Step S15, according to the decoded result of described the second test post, generates test result information.
The method for testing software that the embodiment of the present invention provides, by protocol contents Organization of Data being become to initial testing message according to the protocol of encode and decode structure in protocol definition information, then will after initial testing message coding, be sent to end to be measured as the first test post, even make test subscriber in the situation that not understanding codec code, as long as know that the protocol contents data of required each the application layer protocol of software test can realize software test, thereby reduce the technical difficulty of test, and then improved testing efficiency.
The second embodiment
The process flow diagram of the method for testing software that Fig. 2 provides for second embodiment of the invention.As shown in Figure 2, above-mentioned method for testing software comprises the following steps:
Step S21, receives the protocol definition file and the auxiliary configuration file that import by tools interfaces.
Protocol definition file and auxiliary configuration file can import by tools interfaces.In protocol definition file, record protocol definition information, in auxiliary configuration file, record auxiliary configuration information.
Step S22 extracts described protocol definition information from described protocol definition file, extracts described auxiliary configuration information from described auxiliary configuration file.
In the present embodiment, form for defining the required agreement of software test and the Rule Information of content in protocol definition information, have been comprised, as information such as protocol of encode and decode structure, protocol types.Protocol of encode and decode structure comprises embedding between multiple agreements or incidence relation, protocol fields side information.Protocol fields side information comprises identifier (Identity, ID), necessary field etc. whether.In auxiliary configuration information, include the information such as decoded information, decoded result criterion.Decoded result criterion is used for judging that whether decoded result is correct.
With the login protocol of simulation chat tool software QQ for example, as a reference and non-limiting, refer to down the example 1 of showing below.
/ * QQ log in */
protocol Login
0String QQUin; // log in number
1String Password; // log in password
2int type; // reach the standard grade, stealthy, off-line, the state example 1 such as busy
Known according to above-mentioned example 1, the Rule Information comprising according to protocol definition information, the protocol type that this test can be used is defined as and logs in agreement (Login), by protocol of encode and decode organization definition for to be formed by three fields, wherein first field 0 is defined as logging in number, second field 1 is defined as logging in password, and the 3rd field 2 is defined as logging in Status Type.
Step S23, becomes initial testing message according to the protocol of encode and decode structure in described protocol definition information by the protocol contents Organization of Data of test subscriber's input.
The structure of the protocol contents data of test subscriber's input should be consistent with the protocol of encode and decode structure in described protocol definition information, also be the content that at least should comprise defined necessary field in described protocol of encode and decode structure in the protocol contents data inputted of test subscriber, so that test lead can be applied mechanically protocol of encode and decode structure automatically, the protocol contents Organization of Data of input become to initial testing message.Still, taking above-mentioned example 1 as example, according to protocol of encode and decode structure in protocol definition information, the protocol contents data of test subscriber's input at least should comprise respectively and log in number, log in password and log in the content of three parts of Status Type.The form of initial testing message after input, as a reference and non-limiting, as follows shown in example 2:
QQ::Login top-NoValue-simulation QQ logs in agreement
String QQUin 1234567 logs in number
String Password 9876543 logs in password
Int type 1 reaches the standard grade, stealthy, off-line, the state such as busy
Example 2
Step S24, encodes to described initial testing message, and exports the coding result of described initial testing message to end to be measured as the first test post.
This step can, with reference to the corresponding steps in the first embodiment, repeat no more here.
Step S25, receives the second test post that end to be measured returns according to described the first test post.
This step can, with reference to the corresponding steps in the first embodiment, repeat no more here.
Step S26, decodes to described the second test post according to the decoded information in the protocol of encode and decode structure in described protocol definition information and described auxiliary configuration information, generates the decoded result of described the second test post.
Step S27, according to the decoded result criterion in described auxiliary configuration information, whether the decoded result that judges described the second test post is correct and generate judged result.
In the present embodiment, test lead judges that according to the decoded result criterion in auxiliary configuration information whether decoded result is correct.In the embodiment of the invention, the judgement of decoded result criterion can be set as, whether the value of certain field in decoded result is preset value, if preset value, judged result is that decoded result is correct, if the value of this field is not preset value, judged result is decoding error.For instance, suppose that in the time that the value of field result is 0, decoded result is correct according to the decoded result criterion in auxiliary configuration information.If shown in the following example 3 of decoded result:
QQ::Top top -NoValue-
Int ID 2 agreement ID
QQ:ReLogin protocol
int result -1
Vector<Friend> friends example 3
Test lead is compared the value of field result after decoding with preset value, because the value of decoded result field result is not 0, can think decoded result mistake.
Step S28, generates described test result information according to the decoded result of described the second test post and described judged result.
In the present embodiment, test lead can be exported decoded result and judged result by the mode at control desk, file or interface as test result, so that user's reference.The test result information of output can only include decoded result, also can only include judged result, can certainly comprise the combination of decoded result and judged result.
The method for testing software that the embodiment of the present invention provides, by protocol contents Organization of Data being become to initial testing message according to the protocol of encode and decode structure in protocol definition information, then will after initial testing message coding, be sent to end to be measured as the first test post, even make test subscriber in the situation that not understanding codec code, as long as know that the protocol contents data of required each the application layer protocol of software test can realize software test, thereby reduce the technical difficulty of test, and then improved testing efficiency.
The 3rd embodiment
The structural representation of the software testing device that Fig. 3 provides for the 3rd embodiment.The software testing device that the present embodiment provides can be for realizing the method for testing software in the first embodiment.As shown in Figure 3, software testing device 10, as test lead, is connected with end 40 to be measured.Software testing device 10 comprises initial testing message molded tissue block 11, coding and output module 12, the second test post receiver module 13, decoder module 14 and test result information generation module 15.
Wherein, initial testing message molded tissue block 11 is for obtaining protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message.Coding and output module 12, for described initial testing message is encoded, and export the coding result of described initial testing message to end to be measured as the first test post.The second test post that the second test post receiver module 13 returns according to described the first test post for receiving described end to be measured.Decoder module 14, for according to the decoded information in the protocol of encode and decode structure of described protocol definition information and described auxiliary configuration information, described the second test post being decoded, generates the decoded result of described the second test post.Test result information generation module 15, for according to the decoded result of described the second test post, generates test result information.Preferably, the decoded information in described auxiliary configuration information can comprise corresponding relation between decoding order, protocol number, decoding target, root agreement and protocol identifier and agreement etc.
Preferably, described coding and output module 12 can use universal coding logic to encode to described initial testing message, wherein, described universal coding logic at least comprises the one in following rule: the rule of compatibility rule, access encryption rule and the acquisition time stamp of data type processing rule, protocol of encode and decode structure compatible rule, field washability.
Each Implement of Function Module of the present embodiment software testing device 10 detailed process of function separately, refers to the particular content of above-mentioned Fig. 1 and middle description embodiment illustrated in fig. 2, repeats no more herein.
The software testing device that the embodiment of the present invention provides, by protocol contents Organization of Data being become to initial testing message according to the protocol of encode and decode structure in protocol definition information, then will after initial testing message coding, be sent to end to be measured as the first test post, even make test subscriber in the situation that not understanding codec code, as long as know that the protocol contents data of required each the application layer protocol of software test can realize software test, thereby reduce the technical difficulty of test, and then improved testing efficiency.
The 4th embodiment
The structural representation of the software testing device that Fig. 4 provides for the 4th embodiment.The software testing device that the present embodiment provides can be for realizing the method for testing software in the second embodiment.As shown in Figure 4, software testing device 20, as test lead, is connected with end 40 to be measured.Software testing device 20 comprises initial testing message molded tissue block 21, coding and output module 22, the second test post receiver module 23, decoder module 24 and test result information generation module 25.
Wherein, initial testing message molded tissue block 21 is for obtaining protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message.Coding and output module 22, for described initial testing message is encoded, and export the coding result of described initial testing message to end to be measured as the first test post.The second test post that the second test post receiver module 23 returns according to described the first test post for receiving described end to be measured.Decoder module 24, for according to the decoded information in the protocol of encode and decode structure of described protocol definition information and described auxiliary configuration information, described the second test post being decoded, generates the decoded result of described the second test post.Test result information generation module 25, for according to the decoded result of described the second test post, generates test result information.
In the present embodiment, described initial testing message molded tissue block 21 comprises acquiring unit 211 and initial testing message organization unit 212.
Described acquiring unit 211 comprises: receive subelement 2111, for receiving the protocol definition file and the auxiliary configuration file that import by tools interfaces; And extract subelement 2112, for extracting described protocol definition information from described protocol definition file, from described auxiliary configuration file, extract described auxiliary configuration information.
Described initial testing message organization unit 212 is for becoming initial testing message according to the protocol of encode and decode structure of described protocol definition information by the protocol contents Organization of Data of test subscriber's input.
In the present embodiment, described auxiliary configuration information also comprises decoded result criterion, described test result information generation module 25 comprises: judged result generation unit 251, for according to the decoded result criterion of described auxiliary configuration information, judge that whether the decoded result of described the second test post is correct and generate judged result; And test result information generation unit 252, for generating described test result information according to the decoded result of described the second test post and described judged result.
In the present embodiment, described device 20 also comprises test result information output module 26, be used for exporting described test result information, described test result information comprises described decoded result or described judged result, or the combination of described decoded result and described judged result.
Each Implement of Function Module of the present embodiment software testing device 20 detailed process of function separately, refers to the particular content of above-mentioned Fig. 1 and middle description embodiment illustrated in fig. 2, repeats no more herein.
The software testing device that the embodiment of the present invention provides, by protocol contents Organization of Data being become to initial testing message according to the protocol of encode and decode structure in protocol definition information, then will after initial testing message coding, be sent to end to be measured as the first test post, even make test subscriber in the situation that not understanding codec code, as long as know that the protocol contents data of required each the application layer protocol of software test can realize software test, thereby reduce the technical difficulty of test, and then improved testing efficiency.
The 5th embodiment
Refer to Fig. 5, the structural representation of the software testing device that Fig. 5 provides for the 5th embodiment.As shown in Figure 5, different with the 4th embodiment from the 3rd embodiment, in the present embodiment, software testing device 30 is all arranged in electric terminal 50 as test lead and end to be measured 40.Software testing device 30 comprises initial testing message molded tissue block 31, coding and output module 32, the second test post receiver module 33, decoder module 34 and test result information generation module 35.The coding of software testing device 30 and output module 32 directly transfer to the first test post end 40 to be measured by the mode of calling program interface.Therefore, can save the time that network connects and transmits, thereby improve testing efficiency.
The software testing device that the embodiment of the present invention provides, by protocol contents Organization of Data being become to initial testing message according to the protocol of encode and decode structure in protocol definition information, then will after initial testing message coding, be sent to end to be measured as the first test post, even make test subscriber in the situation that not understanding codec code, as long as know that the protocol contents data of required each the application layer protocol of software test can realize software test, thereby reduce the technical difficulty of test, and then improved testing efficiency.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that above-described embodiment method can add essential general hardware platform by software and realize, can certainly pass through hardware, but in a lot of situation, the former is better embodiment.Based on such understanding, technical scheme of the present invention in essence or say that the part that prior art is contributed can embody with the form of software product, this computer software product is stored in a storage medium (as ROM/RAM, magnetic disc, CD), comprise that some instructions (can be mobile phones in order to make a station terminal equipment, computing machine, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
The above, be only preferred embodiment of the present invention, not the present invention done to any pro forma restriction.Any those skilled in the art, not departing from the present invention spirit scope, make a little change or modification when utilizing the technology contents of above-mentioned announcement, for example each embodiment combined and obtain new embodiment, or adopting the common other technologies means in this area to substitute the technological means adopting in above-described embodiment.

Claims (12)

1. a method for testing software, is characterized in that, comprising:
Obtain protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message;
Described initial testing message is encoded, and export the coding result of described initial testing message to end to be measured as the first test post;
Receive the second test post that described end to be measured returns according to described the first test post;
According to the decoded information in the protocol of encode and decode structure in described protocol definition information and described auxiliary configuration information, described the second test post is decoded, generate the decoded result of described the second test post; And
According to the decoded result of described the second test post, generate test result information.
2. method for testing software as claimed in claim 1, is characterized in that, described in obtain the step of protocol definition information and auxiliary configuration information, comprising:
Receive the protocol definition file and the auxiliary configuration file that import by tools interfaces; And
From described protocol definition file, extract described protocol definition information, from described auxiliary configuration file, extract described auxiliary configuration information.
3. method for testing software as claimed in claim 1, is characterized in that, described auxiliary configuration information also comprises decoded result criterion, described according to the decoded result of described the second test post, generates the step of test result information, comprising:
According to the decoded result criterion in described auxiliary configuration information, whether the decoded result that judges described the second test post is correct and generate judged result; And
Generate described test result information according to the decoded result of described the second test post and described judged result.
4. method for testing software as claimed in claim 3, is characterized in that, described method also comprises:
Export described test result information, described test result information comprises described decoded result or described judged result, or the combination of described decoded result and described judged result.
5. the method for testing software as described in claim 1 to 4 any one, is characterized in that, the decoded information in described auxiliary configuration information comprises the corresponding relation between decoding order, protocol number, decoding target, root agreement and protocol identifier and agreement.
6. the method for testing software as described in claim 1 to 4 any one, it is characterized in that, the described step that described initial testing message is encoded, comprise: use universal coding logic to encode to described initial testing message, wherein, described universal coding logic at least comprises the one in following rule: the rule of compatibility rule, access encryption rule and the acquisition time stamp of data type processing rule, protocol of encode and decode structure compatible rule, field washability.
7. a software testing device, is characterized in that, comprising:
Initial testing message molded tissue block, be used for obtaining protocol definition information and auxiliary configuration information, described protocol definition information comprises protocol of encode and decode structure, described auxiliary configuration information comprises decoded information, according to the protocol of encode and decode structure in described protocol definition information, the protocol contents Organization of Data of test subscriber's input is become to initial testing message;
Coding and output module, for described initial testing message is encoded, and export the coding result of described initial testing message to end to be measured as the first test post;
The second test post receiver module, the second test post returning according to described the first test post for receiving described end to be measured;
Decoder module, for according to the decoded information in the protocol of encode and decode structure of described protocol definition information and described auxiliary configuration information, described the second test post being decoded, generates the decoded result of described the second test post; And
Test result information generation module, for according to the decoded result of described the second test post, generates test result information.
8. software testing device as claimed in claim 7, is characterized in that, described initial testing message molded tissue block comprises acquiring unit, and described acquiring unit comprises:
Receive subelement, for receiving the protocol definition file and the auxiliary configuration file that import by tools interfaces; And
Extract subelement, for extracting described protocol definition information from described protocol definition file, from described auxiliary configuration file, extract described auxiliary configuration information.
9. software testing device as claimed in claim 7, is characterized in that, described auxiliary configuration information also comprises decoded result criterion, and described test result information generation module comprises:
Judged result generation unit, for according to the decoded result criterion of described auxiliary configuration information, judges that whether the decoded result of described the second test post is correct and generates judged result; And
Test result information generation unit, for generating described test result information according to the decoded result of described the second test post and described judged result.
10. software testing device as claimed in claim 7, it is characterized in that, described device also comprises test result information output module, be used for exporting described test result information, described test result information comprises described decoded result or described judged result, or the combination of described decoded result and described judged result.
11. software testing devices as described in claim 7 to 10 any one, is characterized in that, the decoded information in described auxiliary configuration information comprises the corresponding relation between decoding order, protocol number, decoding target, root agreement and protocol identifier and agreement.
12. software testing devices as described in claim 7 to 10 any one, it is characterized in that, described coding and output module use universal coding logic to encode to described initial testing message, wherein, described universal coding logic at least comprises the one in following rule: the rule of compatibility rule, access encryption rule and the acquisition time stamp of data type processing rule, protocol of encode and decode structure compatible rule, field washability.
CN201310104843.1A 2013-03-28 2013-03-28 Method for testing software and test device Active CN104077216B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310104843.1A CN104077216B (en) 2013-03-28 2013-03-28 Method for testing software and test device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310104843.1A CN104077216B (en) 2013-03-28 2013-03-28 Method for testing software and test device

Publications (2)

Publication Number Publication Date
CN104077216A true CN104077216A (en) 2014-10-01
CN104077216B CN104077216B (en) 2018-04-27

Family

ID=51598484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310104843.1A Active CN104077216B (en) 2013-03-28 2013-03-28 Method for testing software and test device

Country Status (1)

Country Link
CN (1) CN104077216B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071990A (en) * 2015-08-11 2015-11-18 中国电子科技集团公司电子科学研究院 Universal information system interface testing method and device
CN112597000A (en) * 2020-12-09 2021-04-02 山东浪潮通软信息科技有限公司 WebScoket protocol-based automatic testing method for instant messaging software
CN114050634A (en) * 2022-01-12 2022-02-15 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866221A (en) * 2006-02-27 2006-11-22 华为技术有限公司 Software interface testing method and apparatus
KR20090066059A (en) * 2007-12-18 2009-06-23 한국전자통신연구원 Apparatus and method for verifying software integrity of mobile terminals
US20090204591A1 (en) * 2008-02-11 2009-08-13 Rauli Kaksonen Method and arrangement for test case creation
CN102214140A (en) * 2011-06-21 2011-10-12 中兴通讯股份有限公司 Method and system for automatic software testing
CN102316505A (en) * 2010-07-01 2012-01-11 中兴通讯股份有限公司 Air interface protocol test method, device and system for base station
CN102694701A (en) * 2012-06-13 2012-09-26 青岛海信传媒网络技术有限公司 Testing method and system based on message

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866221A (en) * 2006-02-27 2006-11-22 华为技术有限公司 Software interface testing method and apparatus
KR20090066059A (en) * 2007-12-18 2009-06-23 한국전자통신연구원 Apparatus and method for verifying software integrity of mobile terminals
US20090204591A1 (en) * 2008-02-11 2009-08-13 Rauli Kaksonen Method and arrangement for test case creation
CN102316505A (en) * 2010-07-01 2012-01-11 中兴通讯股份有限公司 Air interface protocol test method, device and system for base station
CN102214140A (en) * 2011-06-21 2011-10-12 中兴通讯股份有限公司 Method and system for automatic software testing
CN102694701A (en) * 2012-06-13 2012-09-26 青岛海信传媒网络技术有限公司 Testing method and system based on message

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071990A (en) * 2015-08-11 2015-11-18 中国电子科技集团公司电子科学研究院 Universal information system interface testing method and device
CN105071990B (en) * 2015-08-11 2018-11-06 中国电子科技集团公司电子科学研究院 A kind of general information system interface test method and device
CN112597000A (en) * 2020-12-09 2021-04-02 山东浪潮通软信息科技有限公司 WebScoket protocol-based automatic testing method for instant messaging software
CN112597000B (en) * 2020-12-09 2023-10-03 浪潮通用软件有限公司 Instant messaging software automatic test method based on WebScokey protocol
CN114050634A (en) * 2022-01-12 2022-02-15 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system
CN114050634B (en) * 2022-01-12 2022-06-17 深圳荣耀智能机器有限公司 Charging test method, electronic device, adapter and charging test system

Also Published As

Publication number Publication date
CN104077216B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN103795762B (en) A kind of test method and system of reverse proxy
CN103152402A (en) Method and system for logging in through mobile terminal and cloud server
CN105791262A (en) APP real name authentication secure login system and method based on mobile phone IMSI
CN110941563A (en) Automatic script testing method and device
CN103547342A (en) Information sending method, information reading and notifying method, information receiving method and device
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN111225414A (en) Multimode communication device, communication method thereof and multimode communication system
CN106656998B (en) server communication method and device
CN103795711A (en) Automated test method and system based on mobile phone client sides
CN103106378A (en) Novel 15693 tag chip verification platform
CN113596832B (en) Network connection establishment method, device, storage medium and electronic device
CN117319525B (en) A method and system for substation heterogeneous data fusion based on CMS and MMS
CN104077216A (en) Software test method and test device
CN101221606B (en) Mobile memory device and its authentication method
CN108170537A (en) Game API approach, device, interface server and readable storage medium storing program for executing
CN113329404B (en) Network access method and device
CN103391291A (en) Codec based on terminal consistency testing system and coding and decoding method
CN113065077A (en) Horizontal extension middle station service processing system
CN105808549B (en) Client method for automatically framing and analyzing frames based on mapping file
CN103685249B (en) A kind of register the method for application, terminal and server
CN109976960A (en) A kind of bus test data method for implanting and device
CN105637956A (en) Access network node and paging method
CN203554485U (en) CAN bus test equipment
CN111355634B (en) Network interface testing method
CN102487526B (en) Protocol conformance test method and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant