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

Automatic testing method and device based on workflow

An automated testing and workflow technology, applied in software testing/debugging, error detection/correction, instruments, etc., can solve the problems of difficult code maintenance, waste of human resources, interference, etc., and achieve strategically easy control and strong maintainability. Effect

Pending Publication Date: 2022-02-08
济南浪潮数据技术有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Because of the dependence of use cases, it will lead to a lot of repetitive work, such as the processing of preconditions, which may mostly rely on basic operations such as adding licenses, and this precondition may also belong to a separate use case
The current simple implementation is only to extract the common code and make it into a public method for calling. The efficiency of developing test cases, debugging efficiency, and concurrent development capabilities will be restricted or interfered, resulting in waste of human resources and difficulty in coding. maintain

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
  • Automatic testing method and device based on workflow
  • Automatic testing method and device based on workflow
  • Automatic testing method and device based on workflow

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0049] Such as figure 1 Shown is a schematic flowchart of a workflow-based automated testing method provided in Embodiment 1, including the following steps.

[0050]S101 , taking preconditions, use case execution, and postconditions as individual use cases, and writing each use case as a workflow according to a use case writing specification; the use case writing specification includes a workflow dependency configuration specification.

[0051] When writing a workflow, configure the dependencies between the workflow and other workflows according to the workflow dependency configuration specification. For example, the execution of a use case needs to rely on preconditions and postconditions. When executing a workflow for a use case, you need to configure its preconditions Dependencies for conditional workflows and postconditional workflows.

[0052] During subsequent executions, workflows are invoked according to dependencies and executed sequentially. In this embodiment, the...

Embodiment 2

[0079] The second embodiment provides a workflow-based automated testing device, which is used to implement the workflow-based automated testing method in the aforementioned first embodiment.

[0080] Such as image 3 Shown is a schematic structural diagram of a workflow-based automated testing device provided in the second embodiment, including the following functional modules.

[0081] Workflow writing module: preconditions, use case execution, and postconditions are used as individual use cases, and each use case is written as a workflow according to the use case writing specification; the use case writing specification includes the workflow dependency configuration specification.

[0082] Binary tree building module: Scan each workflow to build a binary tree; each node on the binary tree corresponds to a workflow.

[0083] Execution module: scan the binary tree, select the corresponding workflow based on the workflow dependency and execute it sequentially to realize the e...

Embodiment 3

[0087] Figure 4 A schematic structural diagram of a terminal device 400 provided by an embodiment of the present invention includes: a processor 410 , a memory 420 and a communication unit 430 . When the processor 410 is used to implement the workflow-based automated test program stored in the memory 420, the following steps are implemented:

[0088]Preconditions, use case execution, and postconditions are used as individual use cases, and each use case is written as a workflow according to the use case writing specification; the use case writing specification includes the workflow dependency configuration specification;

[0089] Scan each workflow to build a binary tree; each node on the binary tree corresponds to a workflow;

[0090] Scan the binary tree, and select the corresponding workflows based on workflow dependencies to execute sequentially to implement test cases.

[0091] The present invention redefines the scene of automated testing, re-deconstructs the design a...

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 an automatic testing method and device based on workflow, and the method comprises the steps: taking a precondition, case execution and a postcondition as each independent case, and compiling each case into the workflow according to a case compiling specification, wherein the use case writing specification comprises a workflow dependency relationship configuration specification; scanning each workflow to construct a binary tree, wherein each node on the binary tree corresponds to one workflow; and scanning the binary tree, and selecting corresponding workflows based on the workflow dependency relationship to execute the test cases in sequence. According to the method and device, the scene of automatic testing is redefined, the design and execution method of the original test case is deconstructed and designed again based on the graph theory, the code repetition degree can be reduced through a good design mode, all the cases can be reused, rewriting due to dependency of preconditions and the like is not needed, maintainability is higher, and the strategy on the basis is easier to control.

Description

technical field [0001] The invention relates to the field of automated testing, in particular to a workflow-based automated testing method and device. Background technique [0002] In the development process of private cloud-oriented management software, the execution of functional tests is highly dependent. The current implementation plan is still a relatively basic implementation form. One test method completes the execution of the entire use case, including the processing of various preconditions. , use case execution, processing of postconditions, etc. Because of the dependence of use cases, it will lead to a lot of repetitive work, such as the processing of preconditions, which may mostly rely on basic operations such as adding a license, and this precondition may also belong to a separate use case. The current simple implementation is only to extract the common code and make it into a public method for calling. The efficiency of developing test cases, debugging effici...

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/3684G06F11/3688
Inventor 闫冬冬刘一郑维栋
Owner 济南浪潮数据技术有限公司
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