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

Scene case testing method and device based on rule engine

A testing method and testing device technology, applied in the field of rule engine-based scenario use case testing methods and devices, can solve problems such as heavy workload, high coupling, omission of test scenarios, etc., to reduce workload, reduce coupling, The effect of improving work efficiency

Active Publication Date: 2020-11-17
INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

But in the face of more scenarios, there are many business rules, business rules are interdependent, and the coupling degree is high, which will cause testers to have a lot of workload when constructing business scenarios, and test scenarios may be missed, or when business rules occur When changing, it is necessary to re-enumerate, arrange, and combine

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
  • Scene case testing method and device based on rule engine
  • Scene case testing method and device based on rule engine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] like figure 1 As shown, this embodiment provides a method for testing scenario use cases based on a rule engine, including the following steps:

[0034] S1, define all the business rules of the scene to be tested as the rule body form of the rule engine;

[0035] Defining business rules as the rule body form of the rule engine is to process the business rules as the rule body, and add a condition part (LHS, Left Hand Side) and a result part (RHS, Right Hand Side) to the business rule. The condition part is the precondition on which the execution of the corresponding business rule depends, and the result part is the execution priority of the corresponding business rule. The execution priority refers to the order in which to execute subsequent business rules after the business rule is executed, and the execution priority is set according to different test scenarios.

[0036] S2, store the defined business rules in the rule base, and the rule engine obtains all business ...

Embodiment 2

[0056] like figure 2 As shown, on the basis of Embodiment 1, this embodiment provides a rule engine-based scenario use case testing device, including the following functional modules.

[0057] Business rule definition module 101: define all business rules of the scene to be tested as the rule body form of the rule engine;

[0058] Execution tree conversion module 102: store the defined business rules in the rule base, and the rule engine learns all business rule patterns corresponding to all business rules according to the rule body form of the business rules;

[0059] Test case execution module 103: Execute the test cases to be tested in the fact base; it should be noted that the test cases to be tested in the fact base include all test cases in the newly added test cases and the rule base and changes based on the test cases in the rule base Add new test cases to verify existing test cases and add new test cases to cover more test scenarios;

[0060] Pattern matching modul...

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 scene case testing method and device based on a rule engine. The method comprises the following steps: defining all service rules of a to-be-tested scene as a rule body formof the rule engine; storing the defined service rules in a rule base, and obtaining all service rule modes corresponding to all the service rules by a rule engine according to the rule body form of the service rules; executing the to-be-tested test case in the fact library, and matching the business rule mode of the executed to-be-tested test case with the business rule mode contained in the rulelibrary through the rule engine; and if the to-be-tested test case is successfully executed and the corresponding service rule mode is not matched in the rule base, adding the service rule mode of theto-be-tested test case to the rule base. According to the invention, the coupling of business rules and scene testing is reduced, the workload is reduced, and the working efficiency is improved.

Description

technical field [0001] The invention relates to the field of scenario use case testing, in particular to a rule engine-based scenario use case testing method and device. Background technique [0002] When testing a complete IT system, more business rule configurations are involved, and each business rule requires one or more preconditions and expected results to form a complete transaction or scenario. Business rules also need to be prioritized so that subsequent business rules can be executed. In order to better test IT systems, testers need to enumerate, arrange, and combine business rules at different levels as much as possible to cover better business scenarios and achieve perfect test results. But in the face of more scenarios, there are many business rules, business rules are interdependent, and the coupling degree is high, which will cause testers to have a lot of workload when constructing business scenarios, and test scenarios may be missed, or when business rules ...

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 Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3688G06F11/3692
Inventor 董建华
Owner INSPUR SUZHOU INTELLIGENT TECH CO LTD