Overview
We have created a simple Calculator demo App to help you understand how you can test the following scenarios:
- Calculation by Microsoft Flow (automated trigger)
- Calculation by Microsoft Flow (manual HTTP trigger)
- Calculation by Business Rule
- Calculation by real-time Workflow
- Calculation by background Workflow
- Calculation by North52 Business Process Activities
The Calculator App has all the necessary components to perform the calculations so that all you need to focus on is creating the tests.
Installation
To install the Calculator App and get started with TestShield training you will need to import the following solutions in this order:
- North52 Business Process Activities/Test Shield - Download from the Dashboard
- North52 Quick Button - Download from the Dashboard
- North52 Demo Calculator Solution - Download from the Related Attachments section below or from the Dashboard
- Ensure that you Publish All Customizations once this solution has imported
Configuration
Once the North52 Demo Calculator solution is installed the following steps will need to be performed to be able to test the Microsoft Flow scenarios:
- Go to https://make.powerapps.com
- Click on Solutions
- Open the North52 Demo Calculator solution (note if you do not see the solution ensure that you are in the correct Environment)
- Open the following Flows and ensure that the Connections are set up correctly and then turned on:
- Simple Calcuator - Dataverse Create or Update (Flow)
- Simple Calcuator - HTTP Request with Record ID (Flow)
- Open the Simple Calcuator - HTTP Request with Record ID (Flow) in edit mode
- Navigate to the North52 App and select Business Process Activities > xCache
- Create a new xCache record
- Enter Calculator for the Category
- Enter Calculator_FlowTriggerUrl for the Base Key
- In the Value (Secured) field enter the HTTP Post URL you copied in the step above
- Leave the other fields within the Value Information section as their defaults
- Click Save
Test
Test everything is working by opening the North52 Calculator Demo app and create a new Calculation record with the following values:
- Set Value One to 10
- Set Value Two to 5
- Set Operator to Multiply
- Click Save
- Click the Calculate Using Flow HTTP trigger Quick Button
- Click the form Refresh button
- If all results are not calculated, wait a few more seconds for the background processes to finish and click the Refresh button again
- The completed form should look like this: