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

Program code segment testing method, device and system

A test method and code segment technology, applied in the field of computer programs, can solve problems such as difficult positioning and program interference, and achieve the effect of avoiding interference and improving complexity.

Active Publication Date: 2017-01-04
CHONGQING HANYUAN MACHINERY
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The inventor found through research that the program testing method in the above prior art needs to add a new test module, which will further increase the logic complexity of the program, and then may introduce new defects; thus, when a defect occurs , it is difficult to locate whether the defect is the test object, that is, the problem of the tested code segment itself is caused by the addition of the test module, that is, the program testing method in the prior art will increase the complexity of the program, because the test module itself It is possible to introduce additional defects that interfere with the original program

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 code segment testing method, device and system
  • Program code segment testing method, device and system
  • Program code segment testing method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0071] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0072] In order to achieve the purpose of reducing the interference to the original program, in one aspect of the present invention, a code segment testing method of the program is provided, such as figure 1 shown, including steps:

[0073] S11. When testing the program under test, set a breakpoint / jump processing unit at the position where the code segment under test is called in the program under test.

[0074] In the present invention, testing the code segment ...

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 method, a device and a system for testing a code segment of a program. The method for testing the code segment of the program comprises the steps of invoking a position of a tested code segment in a tested program during testing the tested program, and setting a breakpoint / skip processing unit; operating the tested program, interrupting an execution process of the tested code segment by the breakpoint / skip processing unit during executing the tested program to the position of the tested code segment, and skipping the execution of the tested program to a test process; and operating a test code segment in a process of executing test and obtaining a test result. According to the method, the device and the system, the process execution of the tested code segment is controlled by a test process, so that the process execution is interrupted and then joined into the test process to finish testing of the code segment; and a test module is not required to be embedded in the tested program, so that the interference on the original tested program also can be avoided.

Description

technical field [0001] The invention belongs to the field of computer programs, and in particular relates to a program code segment testing method, device and system. Background technique [0002] With the increasing complexity of the current software system, the importance of software testing has been further reflected. [0003] In the prior art, the method of testing the binary program image includes embedding a test module inside the program, that is, program testing is performed by running a specific code segment. [0004] The inventor has found through research that the above-mentioned program testing method in the prior art needs to add a new test module, which will further increase the complexity of the program logic, and then may introduce new defects; thus, when a defect occurs , it is difficult to locate whether the defect is the test object, that is, the problem of the tested code segment itself is caused by the addition of the test module, that is, the program 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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F11/36
Inventor 冯蛟麻先盛
Owner CHONGQING HANYUAN MACHINERY
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