Program testing method and related device

A program testing and program technology, applied in the computer field, can solve the problems of low program testing efficiency, consuming more testing resources and time cost, etc.

Pending Publication Date: 2021-02-23
TENCENT TECH (SHENZHEN) CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the above program testing methods need to be modified and debugged based on the source code of the program to be tested. If additional test scenarios need to be added during t

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The embodiment of the present application provides a program testing method and a related device, which can save testing resources and time costs, and improve testing efficiency.

[0044] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above drawings are used to distinguish similar objects, and not necessarily Used to describe a specific sequence or sequence. It is to be understood that the data so used are interchangeable under appropriate circumstances such that the embodiments of the application described herein, for example, can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "corresponding to" and any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence of steps or elements need not be limited to the expressly listed Instea...

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 embodiment of the invention provides a program test method and a related device, dynamic debugging can be performed on a running program to be tested through a GDB, the execution logic of the program to be tested can be modified at any time, and the source code of the program to be tested cannot be modified again due to the change of test requirements, so that the test resource and time cost can be saved, and the test efficiency is improved. The test efficiency is improved. The method comprises the following steps: receiving a test request; starting a to-be-tested program corresponding tothe test request; when the to-be-tested program runs, a test code corresponding to the test request is added to the to-be-tested program through the GDB, and the test code is used for modifying execution logic of the to-be-tested program; and when the running of the to-be-tested program is finished, obtaining a test result of the to-be-tested program according to the test code. The bus system is used for connecting the memory and the processor so as to enable the memory and the processor to communicate.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a program testing method and related devices. Background technique [0002] With the rapid development of the Internet, users' requirements for programs on the client side also increase. In order to ensure that the program can stably realize the corresponding functions when it is running, it is usually necessary to test the program. [0003] Commonly used program testing methods are generally based on the idea of ​​aspect-oriented programming, pre-considering all the target functions, test data, business scenarios and other factors of the program under test, and modifying the source code of the program under test through code injection tools, that is, the The target function additionally develops code, so that the original code framework of the program to be tested is modified, and can be applied to specific test scenarios to realize program testing. [0004] Howeve...

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
CPCG06F11/3644
Inventor 王阳张银红陈锐李丽
Owner TENCENT TECH (SHENZHEN) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products