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

A code debugging and testing method and device, and storage medium

A test method and a technology of a test device, which are applied in the field of code debugging test methods and devices, and storage media, can solve problems such as blind spots and difficult test ranges, and achieve the effects of improving the sense of hierarchy, reducing development time, and ensuring correctness

Active Publication Date: 2022-07-08
EASTCOMPEACE TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The purpose of the present invention is to provide a code debugging and testing method, device, and storage medium, which overcomes the difficulty in testing while developing and the blind spots in the testing range, etc. defect

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
  • A code debugging and testing method and device, and storage medium
  • A code debugging and testing method and device, and storage medium
  • A code debugging and testing method and device, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] see figure 1 , figure 1 The code debugging and testing method provided in this embodiment includes:

[0041] Step 101 , encapsulate the functional interface module whose coupling meets the preset condition into a test interface.

[0042] In this step, for some function codes with high coupling, it is necessary to encapsulate a code function interface module into a test interface in units of functions, and the module and convenience provide testing use to ensure that the tested function code does not need to be changed.

[0043] Step 102: Design a general driver layer for different test interfaces.

[0044] For different test function interfaces, a general driver layer is designed to achieve the purpose of flexible scheduling and use of test interfaces of various functions and interface modules.

[0045] Step 103: Build a test case and at least one function usage scenario.

[0046] By building various functional usage scenarios, it can adapt to various test execution...

Embodiment 2

[0079] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructions, or completed by instructions that control relevant hardware, and the instructions can be stored in a computer-readable storage medium, and loaded and executed by the processor.

[0080] To this end, embodiments of the present invention provide a storage medium in which multiple instructions are stored, and the instructions can be loaded by a processor to execute steps in the code debugging and testing method provided by the embodiments of the present invention. For example, the instruction can perform the following steps:

[0081] Encapsulate the functional interface module whose coupling meets the preset conditions into a test interface;

[0082] Design a general driver layer for different test interfaces;

[0083] Build test cases and at least one functional usage scenario;

[0084] The test case is used 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 invention relates to the technical field of software testing, and discloses a code debugging and testing method and device, and a storage medium. The code debugging and testing method includes: encapsulating a functional interface module whose coupling meets a preset condition into a test interface; designing a general driver layer for different test interfaces; constructing a test case and at least one functional usage scenario; In the test case, the test interface is called through the general driver layer, and the test is performed in each of the function usage scenarios. The embodiments of the present invention use simulations to construct and test applications, packages, and data, and construct technical methods for various usage scenarios of products, realize modular testing of functional interfaces, and achieve the purpose of ensuring correct module functions; function codes can be optimized and configured during the module testing process. Fully enhance the sense of hierarchy of the code structure and ensure the correctness and portability of functional interface modules, thereby reducing project development time and improving efficiency.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a code debugging and testing method and device, and a storage medium. Background technique [0002] The existing functional code module testing methods are mainly aimed at different development languages, by downloading a third-party test suite, constructing or setting test data, and testing a certain functional code to achieve the effect of checking the code function. [0003] This testing method has the following drawbacks: [0004] 1: There are blind spots in the test range: too many functional modules are used for joint debugging, and it is impossible to cover all the functional test points of a module, so the key code parts may not be tested, and key bugs cannot be found; [0005] 2: The test location is inaccurate: Affected by the multi-module integration, the module location cannot be determined for the errors that occur in each test. It may be necessary to debug...

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