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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

