skip to main content
Corticon Studio: Quick Reference Guide : Ruletests : Creating a new Ruletest : Choosing a test subject that is a deployed Decision Service

Try Corticon Now
Choosing a test subject that is a deployed Decision Service
A Ruletest can specify a test subject deployed as a Decision Service on a Corticon Server that defines effective date and version properties. From the Studio point of view, such a server is often referred to as a remote server. By setting a target date, a test can execute as though it were sent at a specific date and time. Using this feature enables setting the clock back to see how past date ranges would have handled a request, as well as setting the clock forward to test deployed Decision Services in pre-production staging.
To use a Decision Service on a remote server as the test subject:
1. In the Ruletest you want to test open in its editor, choose the menu command Ruletest > Testsheet > Change Test Subject. The Select Test Subject dialog box opens.
2. Click the Run against Server tab to open its panel, as shown:
3. For the Server URL, enter a URL; for example, a Java Server installed (and running) on the same machine as the Studio: http://localhost:8850/axis. Your entry is validated when you click Refresh, and persisted in your Studio. Once you have persisted URLs, click on the right side of the Server URL area to open the dropdown menu to make your selection.
Note: Only a few Server URLs are persisted this way. If you have a larger list that you want to edit, see Specifying server URLs for access to test subjects
Click Refresh to populate the list of deployed Decision Services on that server.
4. Click on an appropriate Decision Service for this Ruletest:
5. You can click OK at this point if you do not want to apply the optional overrides.
6. When the selected Decision Service was deployed with a date range defined, it is active from the effective date through the expiration date. You can apply overrides to change the test Decision Service's version or to simulate the Ruletest's call as occurring at a specific point in time. Specify your preferred values -- major version + effective target date -- as illustrated:
7. Click OK. The dialog closes. The details of the remote server and Decision Service specifications are displayed at the top of the Testsheet:
8. Run the Ruletest.
The test executes against the specified Decision Service on the selected server using the overrides you entered.
* Specifying server URLs for access to test subjects