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

Software testing method, electronic equipment and storage medium

A software testing method and technology of electronic equipment, applied in the computer field, can solve problems such as error-prone and low efficiency in constructing mock objects

Pending Publication Date: 2022-02-25
WEBANK (CHINA)
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 provides a software testing method, electronic equipment and storage medium to solve the technical problems of low efficiency and error-prone construction of Mock objects in the related art

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, electronic equipment and storage medium
  • Software testing method, electronic equipment and storage medium
  • Software testing method, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0054] In related technologies, when constructing a Mock object, it is necessary to specify the target object of the Mock, specify the test object containing the target object, and define the relevant Mock, etc. The syntax involved is very complicated, and it is very different from the grammatical habits of Java. The learning threshold is very high. As a result, the efficiency of constructing Mock objects is low and error-prone, and the efficiency of software testing is low.

[0055] Based on this, the application provides a kind of software testing method, when utilizing Mock technology to carry out software testing, before executing the first test case, activate all Mock methods related to the first test case; In the process of the test case, the first test instruction is sent to the second device; when the first test case is executed, all activated Mock methods are deactivated. Wherein, each Mock method includes a first statement, and the format of the first statement is th...

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 software testing method, electronic equipment and a storage medium. The software testing method applied to first equipment comprises the steps of before executing a first test case, activating all Mock methods related to the first test case, wherein each Mock method comprises a first declaration, and the format of the first declaration is the same as that of a second declaration of a first Java method corresponding to the Mock method; in the process of executing the first test case, sending a first test instruction to the second equipment; and under the condition that the first test case is executed, deactivating all the activated Mock methods, wherein the first test instruction is used for instructing the second equipment to call a first Java method in a tested first source code file for testing, a first byte code is set in the first Java method, and the first byte code is used for indicating the second equipment to reflect and call the corresponding Mock method for testing before calling the corresponding first Java method for testing.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a software testing method, electronic equipment and a storage medium. Background technique [0002] With the development of computer technology, more and more technologies, such as blockchain (Blockchain), big data, distributed and other technologies are applied in the financial field, and the traditional financial industry is gradually transforming into financial technology. However, due to financial The security and real-time requirements of the industry, and financial technology also put forward higher requirements for technology. In the field of financial technology, in the process of software testing, when it is necessary to eliminate the interference of some external factors, Mock technology is usually used to create virtual Mock objects to replace objects that are not easy to construct or obtain for testing. [0003] In related technologies, by modifying the bytecode of...

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/3688G06F11/3684
Inventor 苏耿槟夏勇刘建波
Owner WEBANK (CHINA)
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