Software testing method and testing device
A software testing method and software testing technology, applied in the direction of software testing/debugging, etc., can solve the problems of manual coding affecting test efficiency, high technical difficulty, and inability to test, so as to improve test efficiency and reduce technical difficulty
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0019] figure 1 It is a flow chart of the software testing method provided by the first embodiment. Such as figure 1 As shown, the software testing method of the present embodiment includes the following steps:
[0020] Step S11, acquire protocol definition information and auxiliary configuration information, the protocol definition information includes the codec protocol structure, the auxiliary configuration information includes decoding information, according to the codec protocol structure in the protocol definition information, input the test user The protocol content data is organized into initial test messages.
[0021] Protocol refers to the message format agreed between different entities to transmit messages. Each protocol category has fixed basic format rules, such as which byte the message content starts to read, how many bytes each type of data occupies, and so on. In the embodiment of the present invention, the protocol used to implement software testing may ...
no. 2 example
[0035] figure 2 It is a flow chart of the software testing method provided by the second embodiment of the present invention. Such as figure 2 Shown, above-mentioned software testing method comprises the following steps:
[0036] Step S21, receiving the protocol definition file and the auxiliary configuration file imported through the tool interface.
[0037] Protocol definition files and auxiliary configuration files can be imported through the tool interface. Protocol definition information is recorded in the protocol definition file, and auxiliary configuration information is recorded in the auxiliary configuration file.
[0038] Step S22, extracting the protocol definition information from the protocol definition file, and extracting the auxiliary configuration information from the auxiliary configuration file.
[0039] In this embodiment, the protocol definition information includes rule information for defining the form and content of the protocol required for softwa...
example 1
[0041] / *QQ login* /
[0042] protocol login
[0043] 0String QQUin; / / login number
[0044] 1String Password; / / login password
[0045] 2int type; / / online, invisible, offline, busy, etc. Example 1
[0046] According to the above example 1, according to the rule information contained in the protocol definition information, the protocol type used in this test can be defined as the login protocol (Login), and the codec protocol structure can be defined as consisting of three fields, of which the first The first field 0 is defined as the login number, the second field 1 is defined as the login password, and the third field 2 is defined as the login status type.
[0047] Step S23, organize the protocol content data input by the test user into an initial test message according to the codec protocol structure in the protocol definition information.
[0048] The structure of the protocol content data input by the test user should be consistent with the codec protocol structure in th...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


