Skip to main content


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

Simulating data pages and third-party connections

Updated on February 4, 2021

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.

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