Unlock instant, AI-driven research and patent intelligence for your innovation.

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

Active Publication Date: 2018-04-27
TENCENT TECH (SHENZHEN) CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Among the above three software testing methods, the first two test methods require testers to have a deep understanding of the codec code, so the technical difficulty of the test is relatively high, and manual coding affects the test efficiency; the third test method requires the help of the network As well as the assistance of the interacting party, if there is no network or the interacting party itself does not have the corresponding functions, the test cannot be carried out. At the same time, due to the impact of network transmission quality, the test efficiency is difficult to guarantee

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software testing method and testing device
  • Software testing method and testing device
  • Software testing method and testing device

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

A software testing method, comprising: acquiring protocol definition information and auxiliary configuration information, wherein the protocol definition information includes a codec protocol structure, the auxiliary configuration information includes decoding information, and according to the codec protocol structure in the protocol definition information, test user The input protocol content data is organized into an initial test message; the initial test message is encoded, and the encoding result of the initial test message is output to the terminal to be tested as the first test message; the terminal to be tested is received according to the first test message returned A second test message; decode the second test message according to the codec protocol structure in the protocol definition information and the decoding information in the auxiliary configuration information, and generate a decoding result of the second test message; and A decoding result of the second test message generates test result information. In addition, the invention also provides a testing device. The above software testing method and testing device have higher testing efficiency.

Description

technical field [0001] The invention relates to software testing technology, in particular to a software testing method and testing device. Background technique [0002] With the development of science and technology and the popularization of the Internet, various network software plays an increasingly important role in people's life and work, such as: chat tool software QQ and so on. [0003] In order to make a network software have better functions, engineers often need to conduct a large number of tests on it. In the existing technology, in order to test the logic of the software at one end of the network, it is usually used: 1. The method of manually writing code to call the interface; 2. The method of embedding some test tools in the codec code; 3. By interacting with the terminal to be tested The other end uses the method of network joint debugging to test. [0004] Among the above three software testing methods, the first two test methods require testers to have a d...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 边畅孔念
Owner TENCENT TECH (SHENZHEN) CO LTD