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

Software Testing Method and System

A software testing method and software technology, applied in the direction of software testing/debugging, etc., can solve the problems of high test time cost, difficult implementation, high time cost, etc., and achieve the effect of reducing test time cost

Active Publication Date: 2018-11-23
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, the black-box testing method based on function is difficult to implement, and requires a certain test time cost
Moreover, for some abnormal branches inside the program, such as the abnormal return of a function, the function-based black-box testing method is more difficult to simulate
[0004] Although the code-based white-box testing method can set breakpoints when the program is running, and simulate such abnormal scenarios by manually modifying the program runtime data or temporarily modifying the code, the test time cost of this method is also very high, especially For the simulation of some specific scenarios involving many code module modifications, for example, the specific scenario where all new function calls return NULL, the time cost of this testing method will be even higher
[0005] Therefore, traditional software testing methods have the technical problems that abnormal scenarios are difficult to simulate and the cost of testing time is high.

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 System
  • Software Testing Method and System
  • Software Testing Method and System

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0021] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0022] Unless the context clearly states otherwise, the number of elements and components in the present invention can exist in a single form or in multiple forms, and the present invention is not limited thereto. Although the steps in the present invention are arranged with labels, they are not used to limit the order of the steps. Unless the order of the steps is clearly stated or the execution of a certain step requires other steps as a basis, the relative order of the steps can be adjusted. It can be understood that the term "and / or" used herein refers to and covers any and all possible combina...

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 present invention provides a software test method, including: obtaining a first configuration file, wherein the first configuration file is set with instrumentations and the corresponding instrumentation codes for generating test scenarios; according to the first configuration file, inserting the corresponding instrumentation codes at the instrumentations in the testing software and generating the instrumented testing software; running the instrumented testing software, and when the instrumentations in the instrumented testing software are triggered, executing the instrumentation codes corresponding to the triggered instrumentations. The software test method can simulate a variety of abnormal test scenarios and save the time cost of testing. The present invention also provides a software test system.

Description

technical field [0001] The invention relates to the technical field of software testing, in particular to a software testing method and system. Background technique [0002] In order to ensure the stability of the software before the software is released, it is necessary to test the software. In software testing, in order to ensure software quality, it is necessary to perform coverage tests on various scenarios that the software may face, including normal and abnormal scenarios, especially some abnormal scenarios, such as: insufficient machine memory, insufficient disk space, local file Read and write errors and abnormal data, etc. In traditional technology, two schemes are usually adopted to implement software testing, namely, function-based black-box testing method and code-based white-box testing method. [0003] The function-based black-box testing method, if you want to cover various abnormal scenarios, for example, for the abnormal scenario where the machine memory i...

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 TENCENT TECH (SHENZHEN) 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