Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

This content has been archived and is no longer being updated.

Links may not function; however, this content may be relevant to outdated versions of the product.

Setting up your test environment

Updated on April 5, 2022

Configure which actions you want to run and which objects and pages you want to view on the clipboard before, during, and after the test is run.

To set up the environment and conditions that are required before running this test case, copy or create clipboard pages, apply data transforms, load data pages, execute activities, and create and load objects. Then, define the connections to data pages or third-party databases to simulate during the test. Finally, after running the test case, set up the environment and conditions that are required by applying data transforms, loading data pages, executing activities, and creating and loading objects.

Before you begin: Open the test case or test suite that you want to set up. For more information, see Opening a unit test case or Creating unit test suites.

  1. Click the Setup & Cleanup tab.

  2. Optional:

    To make specific conditions available during test execution, expand the Before rule execution section, and then configure the conditions:

    1. Copy or create clipboard pages.

      For more information, see Copy or create clipboard pages.

    2. Add additional clipboard data.

      For more information, see Add additional clipboard data.

  3. Optional:

    To define simulation settings for the test, expand the Simulation section, and then configure the simulations.

    For more information, see Simulating data pages and third-party connections.

  4. Optional:

    To make specific conditions available after test execution, expand the After rule execution section, and then add additional clipboard data.

    For more information, see Adding additional clipboard data.

    Note: You can set up actions after rule execution for test cases only.
  5. To run the rule under on a page and avoid copying the entire page to RunRecordPrimaryPage, in the Advanced section, enter the page under which you want to run the rule.

  6. Click Save.

  • Copying and creating clipboard pages in setup

    When setting up your test environment, you can set to copy or create clipboard pages before the test runs.

  • Adding additional clipboard data

    When setting up your test environment, you can add additional clipboad data before or after the test runs. You can create apply data transforms, load data pages, execute activities, load objects, create data objects, and create work objects.

  • Simulating data pages and third-party connections

    When setting up your test environment, you can simulate data pages and third-party connections. Such simulations let you run your tests without depending on the availability of third-party servers.

Related Content

Article

Converting unit tests to test cases

Article

Data pages
  • Previous topic Setting up and cleaning the context for a test case or test suite
  • Next topic Copying and creating clipboard pages in setup

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us