Close popover

Table of Contents

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.

  1. In Dev Studio, Opening a 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.

  • Data page testing

    Data page test cases are a way to validate that application data is loaded correctly. Data page test cases compare the expected value of one or more properties with their actual values in a data page.

  • Data Transforms

    A data transform defines how to convert data that is in one format and class (the source) into data of another format and class (the target). The supported formats are clipboard and JSON. Using a data transform instead of an activity to set property values speeds up development and makes application maintenance easier.

  • Keystores

    A keystore is a file that contains keys and certificates that you use for encryption, authentication, and serving content over HTTPS. In Pega Platform, you create a keystore data instance that points to a keystore file.

Suggest Edit

Have a question? Get answers now.

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