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

Software testing method and device

A software testing method and software testing technology, applied in the computer field, can solve problems such as low efficiency of failure recovery testing, and achieve the effect of improving efficiency

Active Publication Date: 2020-10-16
ALIBABA GRP HLDG LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The invention provides a software testing method and device, which are used to solve the technical problem of low efficiency of failure recovery testing in the prior 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 and device
  • Software testing method and device
  • Software testing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0023] figure 1 A schematic flow chart of a software testing method provided in Embodiment 1 of the present invention, as figure 1 shown, including:

[0024] Step 101, execute the target program.

[0025] When writing the target program code, test points have been preset in the target program. The content of the test point includes the test point identification, such as the test point name, and the test point may also include macros and custom codes, wherein the macro is used to indicate the execution sequence of the custom codes and calling the test program. Since the test program is usually described in a fixed format such as execution mode, event content and event type, in order to improve the flexibility of the test, the user can pre-write a section of self-test in the test point when writing the target program code. Define the code.

[0026] Further, before executing the target program, each test point in the target program can be set to be closed, and then the target...

Embodiment 2

[0034] figure 2 It is a schematic flow diagram of a software testing method provided by Embodiment 2 of the present invention. In order to clearly illustrate the execution flow when the client modifies the test program on the server side, this embodiment provides the following figure 2 The specific schematic diagram of the process is shown.

[0035] The method provided in this embodiment is executed by a server end and a client end, wherein the server end is used to run the target program, and a container (Map) storing the test program is set on the server end. The client can request to update the test program in the Map through RCP.

[0036] For the server side, on the one hand, test points are inserted at required test positions in the target program, for example, to eliminate bugs (debug) points.

[0037] Specifically, the debug point can be designed using the singleton mode. In the code of the target program, the position of the debug point needs to be added, and a nam...

Embodiment 3

[0056] image 3 A schematic structural diagram of a software testing device provided in Embodiment 3 of the present invention, such as image 3 As shown, it includes: an execution module 31 and a calling module 32 .

[0057] The execution module 31 is used for executing the target program.

[0058] The calling module 32 is configured to call the test program corresponding to the test point to test the target program when the test point preset in the target program is executed.

[0059] Wherein, the test point may include: test point identification, macro and custom code.

[0060] Specifically, the calling module 32 is specifically configured to call the test program to perform a failure recovery test on the target program.

[0061] In this embodiment, by setting test points in the target program in advance, in the process of executing the target program, the test program corresponding to the test point is called to test the target program after the target program is execute...

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

A software test method and device. The method comprises: by pre-setting a test point in a target program, in the process of executing the target program (101), when the execution progresses to the test point pre-set in the target program, invoking a test program corresponding to the test point to test the target program (102). When different exceptional paths need to be simulated, the code of a target program does not need to be modified, only a test program needs to be updated, thus saving the process of recompiling the target program caused by the modification of the code of the target program, and improving the efficiency of test.

Description

technical field [0001] The invention relates to computer technology, in particular to a software testing method and device. Background technique [0002] Software testing is a necessary link before the software goes online. Different software testing methods can be used to test the software for different application environments, so as to ensure the stability of the software during the online operation. [0003] Among various software testing methods, failure recovery (Failover) testing is a testing method for testing software for a process of handling failures and recovering. At present, when performing failure recovery tests on software, it is often used to pre-write test codes in the program codes of the software under test, so as to test after compiling. [0004] Since the failure recovery test often needs to test a variety of execution failure scenarios, the software under test needs to simulate the abnormal exit scenarios under various paths, which is commonly referre...

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
CPCG06F11/3688G06F11/36
Inventor 刘俊峰姚文辉张海勇朱家稷
Owner ALIBABA GRP HLDG LTD