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

Program testing method and apparatus

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: 2017-04-05
TENCENT TECH (SHENZHEN) CO LTD
View PDF8 Cites 3 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 apparatus
  • Program testing method and apparatus
  • Program testing method and apparatus

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 flowchart of the drawings can be executed in a computer system such as a set of computer-executable instructions. The figure shows a logical sequence, but in some cases, the steps shown or described may be performed in a different order than here.

[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. Take running on a mobile terminal as an example, figure 1 It is a hardware structure block diagram of a mobile terminal of a program testing method in an embodiment of the present application. Such as figure 1 As shown, the mobile terminal 10 may include one or more (only one is shown in the figure) processor 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or ...

Embodiment 2

[0080] According to an embodiment of the present invention, there is also provided a program testing device for implementing the above-mentioned program testing method, 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 obtaining module 21 is used to obtain the original version data and the current version data of the testing task; the second obtaining module 23 is used to obtain the structure information corresponding to the original version data and the change information corresponding to the current version data, where, The change information is the data information in which the current version data is changed from 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 information and st...

Embodiment 3

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

[0106] Optionally, in this embodiment, the aforementioned 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 code for executing the following steps:

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

[0109] S2: Acquire structural information corresponding to the original version data and change information corresponding to the current version data, where the change information is data information in which the current version data has changed from the original version data;

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

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 present invention relates to the field of software testing, in particular to a method and device for testing programs. Background technique [0002] At present, in the field of software testing, before testers begin to test the software to be tested, they first need to analyze and compare the current test version of the software to be tested with the released version. By comparing the software code of the software to be tested with the software code of the released version, it is possible to determine what changes have occurred in the software code. By analyzing and determining the impact of the changed software code on the existing function points, the testing focus of the software to be tested can be determined. After determining the test focus, the software code that affects the existing function points can be tested in a limited time, thereby improving the efficiency of software testing. [0003] In the prior art, testers usually use the following t...

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