Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program testing method and device

A test method and program technology, applied in the field of program test methods and devices, can solve problems such as low test accuracy and test efficiency

Active Publication Date: 2020-09-01
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The embodiment of the present invention provides a program testing method and device to at least solve the technical problem of low test accuracy and test efficiency due to manual marking of function points to be tested

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
  • Program testing method and device
  • Program testing method and device
  • Program testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0026] According to an embodiment of the present invention, a method for testing a program is provided. It should be noted that the steps shown in the flow charts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and, although in the flow chart The figures show a logical order, but in some cases the steps shown or described may be performed in an order different from that shown or described herein.

[0027] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, figure 1 It is a block diagram of the hardware structure of a mobile terminal according to a program testing method in the embodiment of the present application. like figure 1 As shown, the mobile terminal 10 may include one or more (only one is shown in the figure) processor 102 (the processor ...

Embodiment 2

[0080] According to an embodiment of the present invention, there is also provided a test device for implementing the program of the test method of the above program, such as Figure 5 As shown, the device includes: a first acquisition module 21 , a second acquisition module 23 , a third acquisition module 25 , a query module 27 and a first generation module 29 .

[0081] Among them, the first acquisition module 21 is used to acquire the original version data and the current version data of the testing task; the second acquisition module 23 is used to acquire the structure information corresponding to the original version data and the change information corresponding to the current version data, wherein, The change information is the data information that the current version data changes compared with the original version data; the third acquisition module 25 is used to obtain the record position of the change information in the original version data according to the change inf...

Embodiment 3

[0105] The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the above-mentioned storage medium may be used to store the program code executed by the program testing method provided in the first embodiment above.

[0106] Optionally, in this embodiment, the foregoing storage medium may be located in at least one network device among multiple network devices in the computer network.

[0107] Optionally, in this embodiment, the storage medium is configured to store program codes for performing the following steps:

[0108] S1, obtain the original version data and the current version data of the testing task;

[0109] S2. Obtain structural information corresponding to the original version data and change information corresponding to the current version data, wherein the change information is data information that the current version data is changed from the original version data;

[0110] S3, according to the change information and stru...

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 program testing method and apparatus. The method comprises the following steps: obtaining original version data and current version data of a check-in test task; obtaining structure information corresponding to the original version data and change information corresponding to the current version data, wherein the change information is data information about change of the current version data relative to the original version data; according to the change information and the structure information, obtaining a recording position of the change information in the original version data; according to the recording position, performing querying in a preset function description table to obtain function description information corresponding to the recording position; and according to the function description information corresponding to the recording position, generating a to-be-test function table corresponding to the change information, wherein the to-be-test function table is used for recording to-be-tested function information corresponding to the change information. According to the invention, the technical problems of low test precision and low test efficiency caused by manual marking of to-be-tested function points are solved.

Description

technical field [0001] The invention relates to the field of software testing, in particular to a program testing method and device. Background technique [0002] At present, in the field of software testing, testers first need to analyze and compare the current test version of the software to be tested with the released version before starting to test the software to be tested. By comparing the software code of the software to be tested with the software code of the released version, it is possible to determine which changes have occurred in the software code. By analyzing and determining the impact of changed software codes on existing function points, the testing focus of the software to be tested can be determined. After determining the key points of the test, the software codes that affect the existing function points can be tested in a limited time, so as to improve the testing efficiency of the software. [0003] In the prior art, testers generally adopt the followi...

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
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products