Expected run-time assertions

You can create an assertion for the expected run time of a rule. The expected run-time assertion is less than or equal to an amount of time that you specify, in seconds.

An actual run time that is significantly longer than the expected run time can indicate an issue. For example, if you are using a report definition to obtain initial values for a data page from a database, there might be a connectivity issue between the application and the database.

After you create a PegaUnit test case for data pages, the system generates the expected run-time assertion. The default value is the time that is taken by the rule to retrieve the results when the test first runs. The system compares that time against the run time of future tests. You can change this value or create additional assertions. You can also configure expected run-time assertions on all other rules that are supported by PegaUnit testing, and you can configure them in such a way that exceeding the expected run time fails the test case.