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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com