Table of Contents

Simulating data pages and third-party connections


Only available versions of this content are shown in the dropdown

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.

  1. In Dev Studio, open a Pega unit test case.

  2. Click the Setup & Cleanup tab.

  3. In the Setup section, expand the Simulation section, and then click Add rules.

  4. To include a rule that the test rule directly references, on the Referenced rules tab, select the rules to simulate, and then click Add.

  5. To include any rule that the test rule does not directly reference, do the following for each rule:

    1. Click the Other rules tab and then click Add.

    2. In the Rule type list, click the type of rule that you want to simulate.

    3. In the Class box, enter the class of the rule that you want to simulate.

    4. In the Rules field, enter the rule that you want to simulate.

    5. Click the Add button.

    The selected rules display in the Simulation section on the Setup & Cleanup tab.
  6. In the Simulate with list for each rule, click a simulation method:

    • Select As defined in the rule to use the default simulation defined in the rule.
    • Select Select datatransform rule to define your own data transform rule. You can reuse this rule in other test cases.
    • Select Define data here to manually provide test data specific to this particular test case. You can copy pages from the clipboard or create new pages and populate them with required test data.
    • Select None to disable the simulation.

Related Content

Did you find this content helpful?

Have a question? Get answers now.

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