Unlock instant, AI-driven research and patent intelligence for your innovation.

Pile pitching test method and device based on AOP and electronic equipment

A test method and instrumentation technology, applied in software testing/debugging, electrical digital data processing, error detection/correction, etc., can solve the problems of code instrumentation and software testing difficulties, etc.

Pending Publication Date: 2021-02-09
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] In view of this, the embodiment of the present invention discloses an AOP-based stubbing test method and device, which solves the problem of code stubbing and software testing difficulties caused by source code stubbing, and realizes the reuse of test rules , greatly reducing the workload of technicians, and improving test efficiency

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
  • Pile pitching test method and device based on AOP and electronic equipment
  • Pile pitching test method and device based on AOP and electronic equipment
  • Pile pitching test method and device based on AOP and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0056]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 making creative efforts belong to the protection scope of the present invention.

[0057] The applicant found that AOP (English name: Aspect-Oriented programming, Chinese name: Aspect-Oriented Programming) is a method that can dynamically and uniformly add functions to programs without modifying the source code through compilation methods and runtime dynamic agents. technology. Therefore, the applicant found that this technology can be used to dynamically add testing functions to the program without modifying the source code, thus realizing t...

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 discloses a pile pitching test method based on AOP which comprises the steps of instrumenting an instrumentation rule set into a tested object through an AOP technology, wherein the instrumentation rule set comprises at least one test rule for a preset program behavior; when the probe detects a first program behavior corresponding to the test rule, detecting whethera condition for executing the test rule is met or not, and if the condition for executing the test rule is met, executing the test rule so as to capture a second program behavior and / or data generated by the second program behavior according to the test rule; wherein the captured second program behavior and / or data generated by the second program behavior are / is used for test analysis. Therefore,the test rule set is instrumented into the tested object through the AOP technology, source codes do not need to be modified, the problem that code instrumentation and software testing are difficultdue to source code instrumentation is solved, reuse of the test rules is achieved, the workload of technicians is reduced, and the testing efficiency is improved.

Description

technical field [0001] The invention relates to the field of software testing, in particular to an AOP-based stubbing test method, device and electronic equipment. Background technique [0002] Code instrumentation technology is to insert some probes (also called "detectors") into the program on the basis of ensuring the original logic integrity of the program under test, and obtain the control flow and data flow information of the program through the execution of the probes. Then dynamic information such as logic coverage is obtained, so as to realize the purpose of testing. [0003] At present, the source code instrumentation technology is widely used, which is based on the lexical analysis and syntax analysis of the source file to realize the code instrumentation technology. However, source code instrumentation technology relies on source code, that is, code instrumentation cannot be implemented without source code. Moreover, the source code instrumentation needs to mod...

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/3688
Inventor 鲁四喜陈俊发刘晓军周勇钧郑越罗慧
Owner TENCENT TECH (SHENZHEN) CO LTD