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

Software testing method and apparatus

A test method and test device technology, applied in the computer field, can solve the problems of low test accuracy and achieve the effect of improving test accuracy

Active Publication Date: 2017-08-11
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a software testing method and device to at least solve the technical problem of low test accuracy caused by the use of existing software testing methods

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 apparatus
  • Software testing method and apparatus
  • Software testing method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] According to an embodiment of the present invention, an embodiment of a software testing method is provided. The above-mentioned software testing method can be applied to, but not limited to, such as figure 1 In the shown network environment, the function information list obtained by the server under test 102 where the software under test is located is sent to the test server 104 through the network, and the test server 104 sets and processes each function under test according to the function address of each function under test. Function, further, during the testing process of the software to be tested, the test server 104 will obtain the number of times each function to be tested is run through the above processing function, that is to say, through the above processing function to accurately monitor the The running times of each function to be tested is used to overcome the problem of missing the function to be tested caused by the timing sampling test in the prior art,...

Embodiment 2

[0097] In the embodiment of the present invention, for a specific application scenario of the software testing device used to implement the above software testing method, reference may be made to the above-mentioned embodiment 1, and details will not be repeated here in the embodiment of the present invention.

[0098] According to an embodiment of the present invention, a software testing device for implementing the above software testing method is also provided, such as Figure 8 As shown, the device includes:

[0099] 1) The first obtaining unit 802 is used to obtain the function information list of the software to be tested, the function information list includes: the function address of the function to be tested in the software to be tested, and the function address of each function to be tested is sent to the setting unit ;

[0100] 2) The setting unit 804 is used to receive the function address of each function to be tested sent by the first acquisition unit, and set a...

Embodiment 3

[0163] According to an embodiment of the present invention, a test server for implementing the test method of the above software is also provided, such as Figure 14 As shown, the server includes:

[0164] 1) The communication interface 1402 is configured to obtain the function information list of the software to be tested from the program database file of the software to be tested, wherein the function information list includes: the function address of the function to be tested in the software to be tested;

[0165] 2) memory 1404, configured to store the acquired program database file of the software to be tested, and a processing function, wherein the processing function is used to count the number of times each function to be tested is run during the test;

[0166] 3) The processor 1406 is configured to obtain the number of times each function to be tested is run through a processing function during the testing process of the software to be tested using the test case.

[...

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

The invention discloses a software testing method and apparatus. The method comprises the steps of obtaining a function information list of to-be-tested software, wherein the function information list comprises function addresses of to-be-tested functions in the to-be-tested software; setting a processing function for each to-be-tested function according to the function address of each to-be-tested function, wherein the processing function is used for performing statistics on a frequency of running each to-be-tested function in a testing process; and obtaining the frequency of running each to-be-tested function through the processing function in the testing process of the to-be-tested software. According to the method and the apparatus, the technical problem of relatively low testing accuracy due to adoption of an existing software testing method is solved.

Description

technical field [0001] The invention relates to the field of computers, in particular to a software testing method and device. Background technique [0002] At present, when testing software with no source codes, the prior art often adopts a periodic testing method to know which functions in the software are run during the testing process. Specifically, the test case is input into the above-mentioned software for testing, and the name of the function currently running in the function stack is checked every predetermined sampling period T during the test, for example, the current running function in the function stack is checked at the time point T0 The names of the running functions are the names of function f1, function f2, and function f3, and the names of the currently running functions in the function stack viewed at time point T0+T are the names of function f2, function f6, and function f7. In this way, it can be counted that the functions run in the software during th...

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 Applications(China)
IPC IPC(8): G06F11/36
Inventor 朱德飞
Owner TENCENT TECH (SHENZHEN) CO LTD