Unit test automation for business rules and applications
First Claim
1. A system, comprising:
- one or more processors; and
a non-transitory memory having stored thereon instructions that are executable by the one or more processors to cause the system to perform operations comprising;
loading an automated unit test for at least one business rule corresponding to a business process generated by a business application creation process;
accessing initial test input data for a test case, the initial test input data comprising one or more parameters to test the at least one business rule, and the test case including a rule type, name, class, release number, and parameter information for the business rule;
executing the automated unit test using the initial test input data as an input to the automated unit test;
based on receiving dynamic test input data from a user prior to completion of the automated unit test, the dynamic test data including at least one altered data input value for at least a first parameter of the one or more parameters that is different from a corresponding data input value in the initial test input data for the first parameter, updating the automated unit test to execute a test case using the at least one altered data input value for at least the first parameter, the dynamic test input data including clipboard information for the test case;
continuing the executing of the automated unit test using the at least one altered data input value;
providing a comparison of expected test results to test results from the continuing the executing the automated unit test using the at least one altered data input value; and
using the comparison of the expected test results to the test results and business rule information for the test case, determining if the business rule can be integrated into a business application corresponding to the business process.
2 Assignments
0 Petitions
Accused Products
Abstract
There are provided systems and method for unit test automation for business rules and applications. A service provider, such as a payment provider, may wish to integrate software and platforms offered by Pegasystems, Inc., in particular Pega RULES Process (“PRPC), which offers a business process management system. PRPC allows the service provider to create and manage business rules and build business applications and platforms, such as a customer support platform. In order to provide a more flexible and comprehensive automated unit testing mechanism, a Java framework may be utilized that runs test cases in PRPC for the business rules. The Java framework may feed data into test cases and may enable dynamic data to be entered for the test cases. Additionally, the Java framework may allow for editing of data for the PRPC test cases and may allow the test cases to be reused and deleted.
-
Citations
19 Claims
-
1. A system, comprising:
-
one or more processors; and a non-transitory memory having stored thereon instructions that are executable by the one or more processors to cause the system to perform operations comprising; loading an automated unit test for at least one business rule corresponding to a business process generated by a business application creation process; accessing initial test input data for a test case, the initial test input data comprising one or more parameters to test the at least one business rule, and the test case including a rule type, name, class, release number, and parameter information for the business rule; executing the automated unit test using the initial test input data as an input to the automated unit test; based on receiving dynamic test input data from a user prior to completion of the automated unit test, the dynamic test data including at least one altered data input value for at least a first parameter of the one or more parameters that is different from a corresponding data input value in the initial test input data for the first parameter, updating the automated unit test to execute a test case using the at least one altered data input value for at least the first parameter, the dynamic test input data including clipboard information for the test case; continuing the executing of the automated unit test using the at least one altered data input value; providing a comparison of expected test results to test results from the continuing the executing the automated unit test using the at least one altered data input value; and using the comparison of the expected test results to the test results and business rule information for the test case, determining if the business rule can be integrated into a business application corresponding to the business process. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A method, comprising:
-
accessing, by a computer system, an automated unit test to test a platform comprising a business rule generated by a business application creation process; receiving, by the computer system, a test suite comprising initial test data for testing the business rule for use in the platform, the test suite including a test case having a corresponding rule type, name, class, release number, and parameter information for the business rule; processing, by the computer system, the initial test data in the test suite using the automated unit test; receiving, by the computer system, updates to the initial test data comprising a plurality of dynamic data items entered by a user as input data for the automated unit test prior to completion of the automated unit test, wherein the plurality of dynamic data items comprise a plurality of values for a plurality of test parameters, wherein the plurality of values differ from a plurality of different values present in the initial test data for the plurality of test parameters, and wherein at least one of the plurality of dynamic data items comprises clipboard information for the test case; executing, by the computer system, the automated unit test using the initial test data and the updates comprising the plurality of dynamic data items entered as input data for the automated unit test; providing, by the computer system, a comparison of expected test results to test results based on the plurality of dynamic data items; and using the comparison of the expected test results to the test results and business rule information for the test case, determining if the business rule can be integrated into a business application corresponding to a business process created via the business application creation process. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16)
-
-
17. A non-transitory machine-readable medium having stored thereon machine-readable instructions executable to cause a machine to perform operations comprising:
-
loading an automated unit test for at least one business rule corresponding to a business process generated by a business application creation process; accessing initial test input data for a test case, the initial test input data comprising one or more parameters to test the at least one business rule and the test case including a rule type, name, class, release number, and parameter information for the business rule; executing the automated unit test using the initial test input data as an input to the automated unit test; based on receiving dynamic test input data from a user prior to completion of the automated unit test, the dynamic test data including at least one altered data input value for at least a first parameter of the one or more parameters that is different from a corresponding data input value in the initial test data for the first parameter, updating the automated unit test to execute a test case using the at least one altered data input value for at least the first parameter, the dynamic test input data including clipboard information for the test case; continuing the executing of the automated unit test using the at least one altered data value; providing a comparison of expected test results to test results from the continuing the executing the automated unit test using the at least one altered data input value; and using the comparison of the expected test results to the test results and business rule information for the test case, determining if the business rule can be integrated into a business application corresponding to the business process. - View Dependent Claims (18, 19)
-
Specification