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.
In Dev Studio, Opening a unit test case.
Click the Setup & Cleanup tab.
In the Setup section, expand the Simulation section, and then click Add rules.
To include a rule that the test rule directly references, on the Referenced rules tab, select the rules to simulate, and then click Add.
To include any rule that the test rule does not directly reference, do the following for each rule:
Click the Other rules tab and then click Add.
In the Rule type list, click the type of rule that you want to simulate.
In the Class box, enter the class of the rule that you want to simulate.
In the Rules field, enter the rule that you want to simulate.
Click the Add button.
The selected rules display in the Simulation section on the Setup & Cleanup tab.
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.
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.