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

Software testing method and device and storage medium

A software testing method and software technology, applied in the computer field, can solve problems such as deviations in execution and unit testing errors

Pending Publication Date: 2021-01-05
BEIJING ZITIAO NETWORK TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present disclosure provide a software testing method, device, and storage medium to overcome the problem of u

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
  • Software testing method and device and storage medium
  • Software testing method and device and storage medium
  • Software testing method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments It is a part of the embodiments of the present disclosure, but not all of them. Based on the embodiments in the present disclosure, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present disclosure.

[0033] Figure 1a It is an example diagram of a unit test method in a single-threaded scenario in the prior art. refer to Figure 1a In the prior art, in the unit testing process of software testing, stub functions are often used in combination to implement unit testing of target test functions, and using stub functions can implement test is...

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 software test method and device, and a storage medium. The method comprises the steps of generating a copy function which is the same as a target test function according to the target test function in to-be-tested software, editing the target test function, generating the to-be-tested function, and according to a preset test case, executing a first calling instruction in the to-be-tested function to call a general pile function corresponding to the to-be-tested function, executing a second calling instruction in the general pile function, executing afirst function corresponding to the copy function called by the general pile function, or executing a second function corresponding to the general pile function. Due to the fact that the copy functionthe same as the target test function is generated in advance, when multi-thread test is conducted on the target test function, the called general pile function replaces the callback target test function with the callback copy function, and therefore logic errors caused by the fact that multiple threads modify and call the target test function at the same time are avoided.

Description

technical field [0001] The embodiments of the present disclosure relate to the field of computer technology, and in particular, to a software testing method, device, and storage medium. Background technique [0002] Before the software is put into operation, the software needs to be tested. In the testing process, unit testing refers to checking and verifying the smallest testable unit in the software, such as testing a function, a class, or a functional window. Unit testing is the lowest level of testing activity to be carried out during the software development process. An independent unit of software will be tested in isolation from other parts of the program. Unit testing is to ensure that the developed software can run normally, stably, and Form the key link of the deliverable version. [0003] At present, in the unit testing process of software testing, stub functions are often used in combination to implement unit testing of target test functions, and the stub funct...

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/36G06F8/70
CPCG06F11/3684G06F11/3688G06F8/70Y02D10/00
Inventor 曹军
Owner BEIJING ZITIAO NETWORK TECH CO LTD
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