CN104077216B - Method for testing software and test device - Google Patents

Method for testing software and test device Download PDF

Info

Publication number
CN104077216B
CN104077216B CN201310104843.1A CN201310104843A CN104077216B CN 104077216 B CN104077216 B CN 104077216B CN 201310104843 A CN201310104843 A CN 201310104843A CN 104077216 B CN104077216 B CN 104077216B
Authority
CN
China
Prior art keywords
test
information
result
protocol
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.)
Active
Application number
CN201310104843.1A
Other languages
Chinese (zh)
Other versions
CN104077216A (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

A kind of method for testing software, including:Obtain protocol definition information and auxiliary configuration information, the protocol definition information includes encoding and decoding protocol architecture, auxiliary configuration information includes decoded information, and the encoding and decoding protocol architecture in protocol definition information will test protocol contents data organization input by user into initial testing message;Initial testing message is encoded, and is exported the coding result of initial testing message as the first test post to end to be measured;Receive the second test post that end to be measured is returned according to first test post;The decoded information in encoding and decoding protocol architecture and the auxiliary configuration information in the protocol definition information decodes second test post, generates the decoded result of second test post;And the decoded result according to second test post, generate test result information.In addition, the present invention also provides a kind of test device.Above-mentioned method for testing software and test device have the testing efficiency of higher.

Description

Method for testing software and test device
Technical field
The present invention relates to software testing technology, more particularly to a kind of method for testing software and test device.
Background technology
With the development of science and technology, the popularization of network, various network softwares play increasingly in the life and work of people Important effect, such as:Chat tool software QQ etc..
And it is more preferable in order to have the function of a network software, engineers generally require largely to survey it Examination.In the prior art, it is the logic of test network one end software, it will usually use:1. manual compiling code call interface Method;2. the method for some embedded testing tools in codec code;3. net is utilized by the other end interacted with end to be measured The method of network joint debugging is tested.
In above-mentioned three kinds of method for testing software, first two test method needs tester to have depth to codec code Ground is carved to understand, thus the technical difficulty tested is higher, and manual compiling code influences testing efficiency;The third test method needs By the assistance of network and interaction side, it were it not for network or interaction side itself and do not possess corresponding function, then can not carry out Test, simultaneously because being influenced by network transmission quality, testing efficiency is difficult to ensure that.Therefore, the technology for how reducing test is difficult Degree, improving testing efficiency becomes problem to be solved.
The content of the invention
In view of this, the present invention provides a kind of method for testing software and test device, its with relatively low difficulty of test with And the testing efficiency of higher.
A kind of method for testing software, including:Obtain protocol definition information and auxiliary configuration information, the protocol definition letter Breath includes encoding and decoding protocol architecture, and the auxiliary configuration information includes decoded information, according in the protocol definition information Encoding and decoding protocol architecture will test protocol contents data organization input by user into initial testing message;To the initial testing Message is encoded, and is exported the coding result of the initial testing message as the first test post to end to be measured;Receive The second test post that the end to be measured is returned according to first test post;According to the volume solution in the protocol definition information Decoded information in code protocol architecture and the auxiliary configuration information decodes second test post, described in generation The decoded result of second test post;And the decoded result according to second test post, generate test result information.
A kind of software testing device, including:Initial testing message molded tissue block, for obtaining protocol definition information and auxiliary Configuration information is helped, the protocol definition information includes encoding and decoding protocol architecture, and the auxiliary configuration information includes decoding letter Breath, the encoding and decoding protocol architecture in the protocol definition information will test protocol contents data organization input by user into first Beginning test post;Coding and output module, for being encoded to the initial testing message, and by the initial testing message Coding result exported as the first test post to end to be measured;Second test post receiving module, it is described to be measured for receiving The second test post that end is returned according to first test post;Decoder module, for according in the protocol definition information Encoding and decoding protocol architecture and the auxiliary configuration information in decoded information second test post is decoded, it is raw Into the decoded result of second test post;And test result information generation module, for being disappeared according to the described second test The decoded result of breath, generates test result information.
Method for testing software and device provided in an embodiment of the present invention, are assisted by the encoding and decoding in protocol definition information View structure will test protocol contents data organization input by user into initial testing message, then by after initial testing message coding Sent as the first test post to end to be measured so that even testing user in the case where not knowing about codec code, only It is to be understood that software test can be achieved in the protocol contents data of each bar application layer protocol needed for software test, so as to reduce test Technical difficulty, and then improve testing efficiency.
Above and other objects, features and advantages to allow the present invention can become apparent, preferred embodiment cited below particularly, And coordinate institute's accompanying drawings, it is described in detail below.
Brief description of the drawings
Fig. 1 is the flow chart for the method for testing software that first embodiment of the invention provides.
Fig. 2 is the flow chart for the method for testing software that second embodiment of the invention provides.
Fig. 3 is the structure diagram for the software testing device that third embodiment of the invention provides.
Fig. 4 is the structure diagram for the software testing device that fourth embodiment of the invention provides.
Fig. 5 is the structure diagram for the software testing device that fifth embodiment of the invention provides.
Embodiment
Further to illustrate that the present invention is to realize technological means and effect that predetermined goal of the invention taken, below in conjunction with Attached drawing and preferred embodiment, to embodiment, structure, feature and its effect according to the present invention, describe in detail as after.
The method for testing software that the embodiment of the present invention is provided can be applied in electric terminal realize the test to software, electricity Sub- terminal can be to be provided with smart mobile phone, palm PC of various softwares etc..
It should be noted that in embodiments of the present invention, test lead and end to be measured can be to be arranged at same electric terminal In two different modules, test lead by Background scheduling routine interface transmit test post so as to the soft of end to be measured Part is tested.Test lead can be also respectively arranged in two different electric terminals from end to be measured, and test lead is by calling net Network interface transmits test post, so as to test the software under testing at end to be measured.
First embodiment
Fig. 1 is the flow chart for the method for testing software that first embodiment provides.As shown in Figure 1, the software of the present embodiment is surveyed Method for testing comprises the following steps:
Step S11, obtaining protocol definition information and auxiliary configuration information, the protocol definition information includes encoding and decoding Protocol architecture, the auxiliary configuration information include decoded information, the encoding and decoding agreement knot in the protocol definition information Structure will test protocol contents data organization input by user into initial testing message.
Agreement refers to the message format arranged between different entities for transmission message.Each protocol class has fixed Basic format rule, such as message content are read since which byte, and each type data respectively account for how many byte etc..Yu Benfa In bright embodiment, to realize that the agreement that software test uses can be application layer protocol.Application layer is inventionthe open systems The layer 7 of interconnection reference model (Open Systems Interconnection Reference Model, osi model), directly Connect with application programming interfaces, provide network application to the user.
Contained in protocol definition information for defining the form of agreement needed for software test and the Rule Information of content, For encoding and decoding test post, such as encoding and decoding protocol architecture, protocol type.Wherein encoding and decoding protocol architecture includes being used to encode Protocol architecture and for decoded protocol architecture.
Include decoded information in auxiliary configuration information, which includes decoding order, the numbering of each bar agreement, each word The decoding target of section, multiple values of root agreement and the protocol identifier solution such as one-to-one relationship between multiple agreements respectively Code rule, auxiliary configuration information can also include the information such as decoded result criterion.
Protocol definition information and auxiliary configuration information can input or imported by file by testing user.
Protocol contents data can be inputted by testing user by way of calling interface, can pass through importing configuration files Mode input, can also be inputted by way of user's operation instrument interface.
Step S12, encodes the initial testing message, and using the coding result of the initial testing message as First test post is exported to end to be measured.
In the embodiment of the present invention, it is preferable that the universal coding logic pair of application layer protocol can be used Initial testing message is encoded.Universal coding logical general realizes that this kind of protocol definition is supported in the processing of certain agreement All functions, include but not limited to that the processing of various data types, encoding and decoding protocol architecture be compatible, the compatibility of field washability Deng.According to actual needs, encryption can also be accessed, obtain the functions such as timestamp.It should be noted that in other realities of the present invention Apply in mode, initial testing message can also be encoded using specific coding logic.
When end to be measured and test lead are arranged in same electric terminal, test lead can pass through first test post The mode that interface calls is exported to end to be measured.For example, test lead can be by way of caller interface, directly by the first test Message is sent to end to be measured, so as to save the time of network connection and transmission, and then improves the efficiency of software test.When to be measured When end is respectively arranged in two different electric terminals from test lead, the first test post can be passed through network transmission by test lead Mode export to end to be measured.For example, test lead can call network interface to connect end to be measured, then according to preassigned address First test post is sent to end to be measured.Above-mentioned network can be any of wireless network or cable network.
Step S13, receives the second test post that end to be measured is returned according to first test post.
Second test post returns to test lead by the first test post that end to be measured is sent according to test lead.Termination to be measured After the first test post for receiving test lead transmission, inherent logic can be utilized to decode the first test post, then according to decoding The information that the first test post afterwards is included as the second test post returns to test lead after response message is encoded.
Step S14, the encoding and decoding protocol architecture in the protocol definition information are aided in configuration information with described Decoded information decodes second test post, generates the decoded result of second test post.
Step S15, according to the decoded result of second test post, generates test result information.
Method for testing software provided in an embodiment of the present invention, passes through the encoding and decoding protocol architecture in protocol definition information By protocol contents data organization into initial testing message, then sent after initial testing message coding as the first test post To end to be measured so that only it is to be understood that each needed for software test even test user is not in the case where knowing about codec code Software test can be achieved in the protocol contents data of bar application layer protocol, so as to reduce the technical difficulty of test, and then improves Testing efficiency.
Second embodiment
Fig. 2 is the flow chart for the method for testing software that second embodiment of the invention provides.As shown in Fig. 2, above-mentioned software Test method comprises the following steps:
Step S21, receives the protocol definition file imported by tools interfaces and auxiliary configuration file.
Protocol definition file and auxiliary configuration file can be imported by tools interfaces.Association has been recorded in protocol definition file Agreed justice information, aids in having recorded auxiliary configuration information in configuration file.
Step S22, extracts the protocol definition information from the protocol definition file, from the auxiliary configuration file Extract the auxiliary configuration information.
In the present embodiment, form for defining agreement needed for software test and interior is contained in protocol definition information The Rule Information of appearance, such as encoding and decoding protocol architecture, protocol type information.Encoding and decoding protocol architecture is included between multiple agreements Embedded or incidence relation, protocol fields side information.Protocol fields side information includes identifier(Identity, ID), whether Necessary field etc..Include the information such as decoded information, decoded result criterion in auxiliary configuration information.Decoded result judges mark It is mutatis mutandis in judging whether decoded result correct.
It is non-limiting as reference below to simulate the citing of the login protocol of chat tool software QQ, refer to shown below Example 1.
/ * QQ log in */
protocol Login
0String QQUin;// log in number
1String Password;// modification logging
2int type;// state the example 1 such as reach the standard grade, is stealthy, is offline, is busy
According to above-mentioned example 1, the Rule Information that is included according to protocol definition information, this can be tested used in Protocol type is defined as logging in agreement(Login), encoding and decoding protocol architecture is defined as being formed by three fields, wherein first Field 0 is defined as logging in number, and second field 1 is defined as modification logging, and the 3rd field 2 is defined as Entered state Type.
Step S23, the encoding and decoding protocol architecture in the protocol definition information will be tested in agreement input by user Hold data organization into initial testing message.
The structure for testing protocol contents data input by user should be with the encoding and decoding agreement knot in the protocol definition information Structure is consistent, namely should at least be included in test protocol contents data input by user defined in the encoding and decoding protocol architecture The content of necessary field, so as to test lead can apply mechanically automatically encoding and decoding protocol architecture by the protocol contents data organization of input into Initial testing message.It is input by user according to encoding and decoding protocol architecture in protocol definition information, test still by taking above-mentioned example 1 as an example Protocol contents data should at least include logging in number, the content of three parts of modification logging and Entered state type respectively.It is defeated Enter the form of rear initial testing message, it is non-limiting as reference, can be as follows shown in example 2:
QQ::Login top-NoValue- simulations QQ logs in agreement
String QQUin 1234567 log in number
9876543 modification loggings of string Password
Int type 1 such as reach the standard grade, are stealthy, is offline, is busy at the state
Example 2
Step S24, encodes the initial testing message, and using the coding result of the initial testing message as First test post is exported to end to be measured.
This step may be referred to the corresponding steps in first embodiment, and which is not described herein again.
Step S25, receives the second test post that end to be measured is returned according to first test post.
This step may be referred to the corresponding steps in first embodiment, and which is not described herein again.
Step S26, the encoding and decoding protocol architecture in the protocol definition information are aided in configuration information with described Decoded information decodes second test post, generates the decoded result of second test post.
Step S27, according to the decoded result criterion in the auxiliary configuration information, judges second test post Decoded result it is whether correct and generate judging result.
In the present embodiment, decoded result criterion of the test lead in auxiliary configuration information judges decoded result It is whether correct.In the embodiment of the invention, decoded result criterion can be judged to be set as, in decoded result The value of certain field whether be preset value, if preset value, then judging result is correct for decoded result, if the value of the field is not For preset value, then judging result is decoding error.As an example it is assumed that the decoded result in auxiliary configuration information judges mark Standard, when the value of field result is 0, decoded result is correct.If shown in the following example 3 of decoded result:
QQ::Top top -NoValue-
2 agreement ID of int ID
QQ:ReLogin protocol
int result -1
vector<Friend>Friends examples 3
Test lead compares the value of field result after decoding with preset value, because the value of decoded result field result It is not 0, then it is believed that decoded result mistake.
Step S28, the test result is generated according to the decoded result of second test post and the judging result Information.
In the present embodiment, decoded result and judging result can be passed through console, text by test lead as test result The mode at part or interface exports, so that user refers to.The test result information of output can only include decoded result, can also be only Including judging result, naturally it is also possible to the combination including decoded result and judging result.
Method for testing software provided in an embodiment of the present invention, passes through the encoding and decoding protocol architecture in protocol definition information By protocol contents data organization into initial testing message, then sent after initial testing message coding as the first test post To end to be measured so that only it is to be understood that each needed for software test even test user is not in the case where knowing about codec code Software test can be achieved in the protocol contents data of bar application layer protocol, so as to reduce the technical difficulty of test, and then improves Testing efficiency.
3rd embodiment
Fig. 3 is the structure diagram for the software testing device that 3rd embodiment provides.Software test provided in this embodiment Device can be used for realizing the method for testing software in first embodiment.As shown in figure 3, software testing device 10 is as test End, is connected with end 40 to be measured.Software testing device 10 include initial testing message molded tissue block 11, coding and output module 12, Second test post receiving module 13, decoder module 14 and test result information generation module 15.
Wherein, initial testing message molded tissue block 11 is used to obtain protocol definition information and auxiliary configuration information, described Protocol definition information includes encoding and decoding protocol architecture, and the auxiliary configuration information includes decoded information, according to the agreement The encoding and decoding protocol architecture defined in information will test protocol contents data organization input by user into initial testing message.Coding And output module 12 be used for the initial testing message is encoded, and using the coding result of the initial testing message as First test post is exported to end to be measured.Second test post receiving module 13 is used to receive the end to be measured according to described first The second test post that test post returns.Decoder module 14 is used for the encoding and decoding agreement knot in the protocol definition information Decoded information in structure and the auxiliary configuration information decodes second test post, generation second test The decoded result of message.Test result information generation module 15 is used for the decoded result according to second test post, generation Test result information.Preferably, the decoded information in the auxiliary configuration information can include decoding order, protocol number, solution Correspondence between code target, root agreement and protocol identifier and agreement etc..
Preferably, the coding and output module 12 can carry out the initial testing message using universal coding logic Coding, wherein, the universal coding logic includes at least one kind in following rule:Data type processing rule, encoding and decoding association Discuss structure compatible rule, compatibility rule, access encryption rule and the rule for obtaining timestamp of field washability.
The detailed process of the respective function of each Implement of Function Module of the present embodiment software testing device 10, refers to above-mentioned figure 1 and embodiment illustrated in fig. 2 described in particular content, details are not described herein again.
Software testing device provided in an embodiment of the present invention, passes through the encoding and decoding protocol architecture in protocol definition information By protocol contents data organization into initial testing message, then sent after initial testing message coding as the first test post To end to be measured so that only it is to be understood that each needed for software test even test user is not in the case where knowing about codec code Software test can be achieved in the protocol contents data of bar application layer protocol, so as to reduce the technical difficulty of test, and then improves Testing efficiency.
Fourth embodiment
Fig. 4 is the structure diagram for the software testing device that fourth embodiment provides.Software test provided in this embodiment Device can be used for realizing the method for testing software in second embodiment.As shown in figure 4, software testing device 20 is as test End, is connected with end 40 to be measured.Software testing device 20 include initial testing message molded tissue block 21, coding and output module 22, Second test post receiving module 23, decoder module 24 and test result information generation module 25.
Wherein, initial testing message molded tissue block 21 is used to obtain protocol definition information and auxiliary configuration information, described Protocol definition information includes encoding and decoding protocol architecture, and the auxiliary configuration information includes decoded information, according to the agreement The encoding and decoding protocol architecture defined in information will test protocol contents data organization input by user into initial testing message.Coding And output module 22 be used for the initial testing message is encoded, and using the coding result of the initial testing message as First test post is exported to end to be measured.Second test post receiving module 23 is used to receive the end to be measured according to described first The second test post that test post returns.Decoder module 24 is used for the encoding and decoding agreement knot in the protocol definition information Decoded information in structure and the auxiliary configuration information decodes second test post, generation second test The decoded result of message.Test result information generation module 25 is used for the decoded result according to second test post, generation Test result information.
In this present embodiment, the initial testing message molded tissue block 21 includes acquiring unit 211 and initial testing disappears Cease organizational unit 212.
The acquiring unit 211 includes:Receiving subelement 2111, for receiving the protocol definition imported by tools interfaces File and auxiliary configuration file;And extraction subelement 2112, for extracting the agreement from the protocol definition file Information is defined, the auxiliary configuration information is extracted from the auxiliary configuration file.
The initial testing message organizational unit 212 is used for the encoding and decoding protocol architecture in the protocol definition information Protocol contents data organization input by user will be tested into initial testing message.
In this present embodiment, the auxiliary configuration information further includes decoded result criterion, the test result information Generation module 25 includes:Judging result generation unit 251, judges mark for the decoded result in the auxiliary configuration information Standard, judges whether the decoded result of second test post is correct and generate judging result;And test result information generation Unit 252, the test result information is generated for the decoded result according to second test post and the judging result.
In this present embodiment, described device 20 further includes test result information output module 26, for exporting the test Result information, the test result information include the decoded result or the judging result, or the decoded result with it is described The combination of judging result.
The detailed process of the respective function of each Implement of Function Module of the present embodiment software testing device 20, refers to above-mentioned figure 1 and embodiment illustrated in fig. 2 described in particular content, details are not described herein again.
Software testing device provided in an embodiment of the present invention, passes through the encoding and decoding protocol architecture in protocol definition information By protocol contents data organization into initial testing message, then sent after initial testing message coding as the first test post To end to be measured so that only it is to be understood that each needed for software test even test user is not in the case where knowing about codec code Software test can be achieved in the protocol contents data of bar application layer protocol, so as to reduce the technical difficulty of test, and then improves Testing efficiency.
5th embodiment
Referring to Fig. 5, Fig. 5 is the structure diagram for the software testing device that the 5th embodiment provides.As shown in figure 5, with Unlike 3rd embodiment and fourth embodiment, in this present embodiment, software testing device 30 is as test lead and end to be measured 40 are arranged in electric terminal 50.Software testing device 30 includes initial testing message molded tissue block 31, coding and output Module 32, the second test post receiving module 33, decoder module 34 and test result information generation module 35.Software test First test post is directly transmitted to end to be measured by the coding and output module 32 of device 30 by way of caller interface 40.Therefore, the time of network connection and transmission can be saved, so as to improve testing efficiency.
Software testing device provided in an embodiment of the present invention, passes through the encoding and decoding protocol architecture in protocol definition information By protocol contents data organization into initial testing message, then sent after initial testing message coding as the first test post To end to be measured so that only it is to be understood that each needed for software test even test user is not in the case where knowing about codec code Software test can be achieved in the protocol contents data of bar application layer protocol, so as to reduce the technical difficulty of test, and then improves Testing efficiency.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially or is said the prior art is made The part of contribution can be embodied in the form of software product, which is stored in a storage medium(Such as ROM/RAM, magnetic disc, CD)In, including some instructions use is so that a station terminal equipment(Can be mobile phone, computer, services Device, or network equipment etc.)Perform the method described in each embodiment of the present invention.
The above described is only a preferred embodiment of the present invention, not make limitation in any form to the present invention.Appoint What those skilled in the art, is not departing from scope of the present invention, when the technology contents using the disclosure above make it is a little Change or modification, such as each embodiment is combined and obtains new embodiment, or using common other in this area Technological means substitutes the technological means used in above-described embodiment.

Claims (12)

  1. A kind of 1. method for testing software, it is characterised in that including:
    Obtaining protocol definition information and auxiliary configuration information, the protocol definition information includes encoding and decoding protocol architecture, institute Stating auxiliary configuration information includes decoded information, and the encoding and decoding protocol architecture in the protocol definition information will test user The protocol contents data organization of input is into initial testing message;
    The initial testing message is encoded, and using the coding result of the initial testing message as the first test post Export to end to be measured;
    Receive the second test post that the end to be measured is returned according to first test post;
    The decoded information pair in encoding and decoding protocol architecture and the auxiliary configuration information in the protocol definition information Second test post is decoded, and generates the decoded result of second test post;And
    According to the decoded result of second test post, test result information is generated.
  2. 2. method for testing software as claimed in claim 1, it is characterised in that the acquisition protocol definition information and auxiliary are matched somebody with somebody The step of confidence ceases, including:
    Receive the protocol definition file imported by tools interfaces and auxiliary configuration file;And
    The protocol definition information is extracted from the protocol definition file, the auxiliary is extracted from the auxiliary configuration file Configuration information.
  3. 3. method for testing software as claimed in claim 1, it is characterised in that the auxiliary configuration information further includes decoded result The step of criterion, the decoded result according to second test post, generation test result information, including:
    According to the decoded result criterion in the auxiliary configuration information, judging the decoded result of second test post is It is no correct and generate judging result;And
    The test result information is generated according to the decoded result of second test post and the judging result.
  4. 4. method for testing software as claimed in claim 3, it is characterised in that the method further includes:
    The test result information is exported, the test result information includes the decoded result or the judging result, or institute State the combination of decoded result and the judging result.
  5. 5. such as Claims 1-4 any one of them method for testing software, it is characterised in that in the auxiliary configuration information Decoded information includes the corresponding pass between decoding order, protocol number, decoding target, root agreement and protocol identifier and agreement System.
  6. 6. such as Claims 1-4 any one of them method for testing software, it is characterised in that described to disappear to the initial testing The step of breath is encoded, including:The initial testing message is encoded using universal coding logic, wherein, it is described logical One kind in following rule is included at least with codimg logic:Data type processing rule, the compatible rule of encoding and decoding protocol architecture, word Compatibility rule, access encryption rule and the rule for obtaining timestamp of section washability.
  7. A kind of 7. software testing device, it is characterised in that including:
    Initial testing message molded tissue block, for obtaining protocol definition information and auxiliary configuration information, the protocol definition letter Breath includes encoding and decoding protocol architecture, and the auxiliary configuration information includes decoded information, according in the protocol definition information Encoding and decoding protocol architecture will test protocol contents data organization input by user into initial testing message;
    Coding and output module, for being encoded to the initial testing message, and by the coding of the initial testing message As a result exported as the first test post to end to be measured;
    Second test post receiving module, the second test returned for receiving the end to be measured according to first test post Message;
    Decoder module, in the encoding and decoding protocol architecture in the protocol definition information and the auxiliary configuration information Decoded information second test post is decoded, generate the decoded result of second test post;And
    Test result information generation module, for the decoded result according to second test post, generates test result information.
  8. 8. software testing device as claimed in claim 7, it is characterised in that the initial testing message molded tissue block includes obtaining Unit is taken, the acquiring unit includes:
    Receiving subelement, for receiving the protocol definition file imported by tools interfaces and auxiliary configuration file;And
    Subelement is extracted, for extracting the protocol definition information from the protocol definition file, from the auxiliary configuration text The auxiliary configuration information is extracted in part.
  9. 9. software testing device as claimed in claim 7, it is characterised in that the auxiliary configuration information further includes decoded result Criterion, the test result information generation module include:
    Judging result generation unit, for the decoded result criterion in the auxiliary configuration information, judges described the Whether the decoded result of two test posts is correct and generates judging result;And
    Test result information generation unit, generates for the decoded result according to second test post and the judging result The test result information.
  10. 10. software testing device as claimed in claim 9, it is characterised in that it is defeated that described device further includes test result information Go out module, for exporting the test result information, the test result information includes the decoded result or the judgement knot Fruit, or the combination of the decoded result and the judging result.
  11. 11. such as claim 7 to 10 any one of them software testing device, it is characterised in that in the auxiliary configuration information Decoded information include decoding order, protocol number, decoding target, corresponding between root agreement and protocol identifier and agreement Relation.
  12. 12. such as claim 7 to 10 any one of them software testing device, it is characterised in that the coding and output module The initial testing message is encoded using universal coding logic, wherein, the universal coding logic includes at least following One kind in rule:Compatible regular, field washability the compatibility rule of data type processing rule, encoding and decoding protocol architecture, connect Enter encryption rule and obtain the rule of timestamp.
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 CN104077216A (en) 2014-10-01
CN104077216B true 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)

Families Citing this family (3)

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

Citations (5)

* 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 한국전자통신연구원 Software integrity verification apparatus of mobile terminal and method thereof
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FI20080095A0 (en) * 2008-02-11 2008-02-11 Codenomicon Oy Method and system for generating test cases

Patent Citations (5)

* 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 한국전자통신연구원 Software integrity verification apparatus of mobile terminal and method thereof
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

Also Published As

Publication number Publication date
CN104077216A (en) 2014-10-01

Similar Documents

Publication Publication Date Title
CN103152402A (en) Method and system for logging in through mobile terminal and cloud server
CN107436844B (en) Method and device for generating interface use case aggregate
CN100512274C (en) Device and method for simulating communication system capable of easily controlling protocol message
CN110941563B (en) Automatic script testing method and device
CN103107974A (en) Method for registration and login of users and mobile terminal
CN104077216B (en) Method for testing software and test device
CN110167192B (en) Bluetooth connection management method and device, electronic equipment and non-transient storage medium
CN108683704A (en) A kind of Socket network communications test method and its system, storage medium
CN104427471A (en) Method for automatically establishing connection of mobile network and terminal
CN109379742A (en) Access method, device and storage medium of wireless local area network
CN109783357A (en) The method and device of test application program, computer equipment, storage medium
CN111953668B (en) Network security information processing method and device
US20080222463A1 (en) Apparatus, method and product for testing communications components
CN101930362B (en) Method for integrating TTCN language and data description language
CN104378807A (en) Method for rapidly establishing connection and electronic devices
CN105425951A (en) Application interaction control method and device
CN103841143A (en) File sending method, receiving method, system and device
CN103164324A (en) Microblog test method and device
CN106022090A (en) User login information processing method, user login information processing device and electronic equipment
CN110381056B (en) Netty-based private protocol coding and decoding method and apparatus
CN117201601A (en) Internet of things equipment access method, device, equipment and storage medium
CN111935767A (en) Network simulation system
CN109976960A (en) A kind of bus test data method for implanting and device
CN109344052A (en) Automatic interface testing method and device and electronic equipment
CN105025183B (en) The method that switching at runtime wireless network card realizes dial-up connection and its information processing storage

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