Close popover

Table of Contents

Opening a unit test case

Version:

You can view a list of the unit test cases that have been created for your application and select the one that you want to open.

  1. Open the test case. Complete one of the following actions:

    • In the navigation pane of Dev Studio, click Configure Application Quality Automated Testing Unit Testing Test Cases .

    • Click the Test Cases tab on the rule form.

  2. In the Test case name column, click the test case that you want to open.

  • Running a unit test case

    Run a unit test case to validate rule functionality.

  • Creating unit test cases for rules

    For most rules, you can create a reusable test case by converting a unit test to a test case, configuring case details, and then defining expected test results with assertions (test conditions). When the test case runs, the test results are compared to the expected results defined for the rule’s assertions. If the test results do not meet the defined assertions, then the test fails.

  • PegaUnit testing

    Automated unit testing is a key stage of a continuous development and continuous integration model of application development. With continuous and thorough testing, issues are identified and fixed prior to releasing an application, which improves the application quality.

  • Viewing test details and results on the Application:Unit testing landing page

    On the Application: Unit testing landing page you can run unit test cases and test suites that are not marked as disabled, and view reports to check the quality of your application to identify rules that did not pass unit testing.

Suggest Edit

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.