skip to main content
Corticon Server: Deploying Web Services with .NET : Consuming a Decision Service on .NET server : Path 1: Using Corticon Studio as a SOAP client to consume a Decision Service : Creating a .NET server test in Corticon Studio
 

Try Corticon Now
Creating a .NET server test in Corticon Studio
Important: Even though we are using Corticon Studio to test, we will use its remote testing feature, which executes a Decision Service running on a Corticon Server (remotely), not a Ruleflow open in Corticon Studio (locally). To keep this distinction clear, we are not going to open tutorial_example.erf in Corticon Studio – it is not necessary since we are really testing the Decision Service sample Cargo .NET sample deployed and running as an application on a Microsoft IIS server.
1. In Corticon Studio, create a new Ruletest by choosing the menu command File > New > Ruletest.
2. Select the parent folder for the new Ruletest.
3. Enter a file name for the new Ruletest.
4. Click Next to open the Select Test Subject panel.
5. Click the Run against Server tab to open its panel, as shown:
6. For the Server URL, enter a URL; for example, an IIS server installed (and running) on its default port installed on the same machine as the Studio: http://localhost:80/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 "Specifying server URLs for access to test subjects" in the Quick Reference Guide.
Click Refresh to populate the list of deployed Decision Services on that server.
7. Click on an appropriate Decision Service for this Ruletest:
8. You can click OK at this point if you do not want to apply the optional overrides.
9. 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:
10. Click OK. The dialog closes. The details of the remote server and Decision Service specifications are displayed at the top of the Testsheet:
11. Run the Ruletest.
The test executes against the specified Decision Service on the selected .NET web server using the overrides you entered.