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

Testing method of program unit with capability of checking test result automatically

A technology of program unit and test method, which is applied in the direction of program control, test/monitoring control system, instrument, etc., can solve the problems of inconvenient regression test, a lot of energy, and error-prone, so as to facilitate regression test and improve test efficiency , the effect of avoiding mistakes

Inactive Publication Date: 2007-04-25
KONKA GROUP
View PDF0 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the inspection of unit test execution results is not automated
The current inspection of unit test execution results is carried out by manual inspection through single-step tracking of the program or output of test results. The single-step tracking operation is cumbersome and the workload is heavy, while manual inspection has the following three deficiencies. :
[0004] 1. It takes a lot of energy to manually detect the completeness of test path coverage, test results and return values, and the inspection speed is very slow
[0005]Second, the inspection is manual, due to the influence of subjective factors, it is easy to cause misjudgment due to human carelessness
[0006] 3. Regression testing is very inconvenient
[0007] In addition, there is another disadvantage in the existing test method. When the test is completed and the version is released, a large number of test codes need to be deleted from the program code. This Processes are often complex and highly error-prone

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
  • Testing method of program unit with capability of checking test result automatically
  • Testing method of program unit with capability of checking test result automatically

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] In order to make the object, technical solution and advantages of the present invention clearer, the specific implementation manners of the present invention will be described below in conjunction with the accompanying drawings.

[0023] Technical scheme of the present invention can roughly be divided into four parts:

[0024] The first part is the test control module, which controls the progress of the entire unit test.

[0025] The second part is the test script. The test script is composed of many test cases. These test cases are various test environments built for the unit under test through different instrumentation functions. The richer the test cases, the unit under test will be tested. more fully. The test control module executes each test script in sequence to control the whole test process. The test cases and the running results of the code under test are checked for their correctness through the test result automatic detection module.

[0026] The third pa...

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

This invention provides one automatic test result program unit test method, wherein, test control module orderly controls each test edit with each test control unit pass relative branch and to record passed branch through tested unit plug function; the test sample is to record test codes to get feedback values in running and then through automatic test module to compare whether the test path is totally covered and the feedback values is accurate.

Description

technical field [0001] The invention relates to the field of program unit testing, in particular to a program unit testing method capable of automatically detecting test results. Background technique [0002] Unit testing is to test each program unit implemented by the source code, check whether each program module correctly implements the specified function, and check whether the return value of each program module is correct. Unit tests check each control structure branch to ensure complete coverage and maximum possible error checking. [0003] Some unit test methods, although a control module is designed to control the operation of the code under test of the program, limitedly improve the efficiency of writing test code and the efficiency of regression testing. However, the inspection of unit test execution results is not automated. The current inspection of unit test execution results is carried out through manual inspection by program single-step tracking or outputtin...

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): G05B19/048G05B23/00
Inventor 李巧珍
Owner KONKA GROUP
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