Test and Verify the Application Foundation
Before building the Process Flow, run the Purchasing app and test the application foundation from a user’s perspective. For each test, perform the action, observe the application, and compare what happens with the expected result.
1. Run the Purchasing app
Section titled “1. Run the Purchasing app”- Return to the main studio editor.
- In the Modules sidebar section, locate the Purchasing app and check its status:
- If the application name is blue, wait for the build to complete.
- If the application name is red, click the red exclamation mark to view the build errors. Correct the reported errors and wait for the application to rebuild.
- If the application name is green, click the application name to open the app in a new tab.
The Purchasing app opens without a runtime error and displays its application shell.
Check the Monitor -> General Log on the Lowgile platform and the browser’s Developer Tools —> Console for errors that identify the cause of the runtime failure. Resolve the reported errors before continuing with the remaining tests.
2. Verify the sidebar navigation
Section titled “2. Verify the sidebar navigation”- In the application sidebar, expand Purchase Request.
- Confirm that Create New appears as a child navigation item.
- Select Create New.
The Create Purchase Request screen opens in the main content area.
Confirm that the app’s sidebar navigation item links to Purchasing.PurchaseRequestCreate. If the parent item expands but its children remain hidden, see Sidebar Navigation Items Do Not Display.
3. Verify the application shell
Section titled “3. Verify the application shell”With the Create Purchase Request screen open, observe the application header, sidebar, and main content area.
The page displays a single application header and one sidebar. No additional application header or sidebar appears within the main content area.
Confirm that the embedded Purchase Request Include screen does not retain its own MainLayout. If a second header or sidebar still appears inside the page content, see Duplicate Navigation Appears in an Embedded Screen.
4. Verify the Create Purchase Request screen
Section titled “4. Verify the Create Purchase Request screen”Before entering any data, observe the initial screen contents.
The screen displays:
- The instruction to enter information for a new purchase request.
- The Cost Center dropdown.
- The Add Item button.
- The Submit Request button.
- Open the Create Purchase Request screen and select the Variables tab.
- Confirm that the request variable has the following configuration:
- Context: Local
- Type:
This.PurchaseRequest - Default expression:
new This.PurchaseRequest({}, true)
- Confirm that the embedded Purchase Request Include screen receives
screen.requestthrough its request input variable.
5. Verify the Cost Center dropdown
Section titled “5. Verify the Cost Center dropdown”- Open the Cost Center dropdown.
- Compare its options with the values configured when creating the Cost Center Static Entity.
- Select one of the values.
- Observe the selected value before continuing.
The dropdown contains the values Marketing, Operations, Finance, and IT, and the selected value remains visible.
Confirm that:
- The dropdown’s options list uses the Purchasing.CostCenter static entity and that its binding is
screen.request.costCenter. - The static entity contains the correctly configured values.
6. Verify Purchase Request items
Section titled “6. Verify Purchase Request items”Use temporary test values to test the item controls.
- Click Add Item.
- Observe the item that appears.
An item card appears with the following controls:
- Description
- Quantity
- Budget Amount
- Currency
- Remove
- Enter a description, quantity, and budget amount.
- Select a currency.
- Confirm that the entered and selected values remain visible.
Confirm that:
- The For Loop array in Purchase Request Include screen uses
screen.request.items. - The Add Item action adds a new PurchaseRequestItem to that array.
- If an item Card title does not evaluate dynamically (for example, as Item 1), confirm that the Card’s Title property is in expression mode (E) and enter
`Item ${itemIndex + 1}`with the surrounding backticks. Without the backticks, the template literal will not evaluate correctly. - The PurchaseRequest to PurchaseRequestItem relationship is configured as described in Define Entity Relationships.
7. Verify multiple items and removal
Section titled “7. Verify multiple items and removal”- Click Add Item again.
- Enter different test values in the second item.
- Compare both item cards.
A second item card appears. Both cards remain visible and can be edited independently.
Confirm that:
- The Add Item action adds a second item card below the first card.
- The For Loop renders the items in that array.
If adding a second item replaces or changes the first item, confirm that each iteration of the For Loop is bound to the current PurchaseRequestItem.
- Click Remove on one item.
- Observe the application response.
Only the selected item is removed. The other item remains visible with its values intact.
Confirm that:
- The Remove button is inside the item card generated by the Purchase Request Include screen’s For Loop.
- Its action removes the current item using
screen.request.items.splice(itemIndex, 1).
8. Submit the purchase request
Section titled “8. Submit the purchase request”After verifying the screen interactions, test the Submit Request action.
- Confirm that the purchase request has a Cost Center and at least one completed item.
- Click Submit Request.
- Observe the application response.
The Submit Request action attempts to submit the purchase request.
At this stage, the Access Denied based on Access control error confirms that the Submit Request action is working as expected. Access to start the Process is configured later in Build the Process Flow. If a different error occurs, see Access Control Errors to identify the cause.
9. Confirm the application foundation is ready
Section titled “9. Confirm the application foundation is ready”Use this checklist to confirm that the application foundation has been tested and is ready for the next stage.