How to: Use the Server Side Execution Testing Page

Overview

The Server Side Execution Testing page simulates a submission’s remote execution. This page gives you the freedom to test data without impacting the module or submission. You can also choose to overwrite existing data with new data. This testing page is a great way to test your module while you build. It also lets you mimic a remote execute without configuring a Plug-In component.

The Debugger tool is a part of the Server Side Execution Testing page. It shows every step of your module’s remote execution. Change a value and the Debugger shows you how that change affects the rest of the application

We use the terms server-side execute and remote execute the same way. They both mean that Unqork executes the module on the back-end and on the server.

This tool is only available in non-production environments.

How the Configuration Works

For this how-to guide, your end-user navigates to a front-end module in Express View. Your end-user inputs insurance information into the module using Radio Buttons and Text Field components. When saved, the module's Plug-In component fires, calling the back-end module:

1. The front-end module's radioToSend Radio Buttons component response populates the destinationFieldForRadio iconHidden component in the back-end module
2. The back-end module's ruleDecideCalc Decisions Component icon Decisions component fires the appropriate calculation based on the radioToSend Radio Buttons response. 
3. The calcHouse, calcCar, and calcBoat  Calculator components' result populates the insuranceRate iconHidden component.
4. The front-end module’s pluginRemoteExecutePart1 Plug-In retrieves the insuranceRate data from the back-end module
5. The data populates the destinationForRateReturnedFromPart1  Text Field component in the front-end module.

Your end-user then receives their insurance rate.

Because you’re mimicking a remote execute, use the Debugger tool on the back-end module. The Debugger lets you see how the module behaves as you input data. When testing API calls, you can also use the Service Logs tool to test and log each response.

To complete this how-to guide, you need:

Copy and paste the module definitions of each lab into your UDesigner modules. To learn how to copy/paste module definitions, visit our How to: Copy and Paste Module Definitions article.

 

Resources