This overview details procedures for testing terminal User flows including state monitoring, screen interactions, and complete transaction processes, ensuring the system accurately handles state changes, user inputs, and transactional operations efficiently and reliably.
Objective | Steps to follow |
---|
Validate the system's ability to subscribe and receive terminal state changes. | Step 1: Subscribe state webhook. Step 2: Disconnect terminal. Step 3: Connect terminal.
|
Test the terminal's idle/start screen functionality | Step 1: Display the idle/start screen (ui command). Step 2: Press the start button. CPS Host System Action: Simulate pressing the start button, triggering the start command. Expected Result: Callback URL is called; Terminal shows present card screen.
Step 3: Wait for the card timeout to expire.
|
Execute a complete transaction flow including authorization and commit. | Step 1: Start a session (start command). Step 2: Present a card. CPS Host System Action: Simulate card presentation and then proceed to authorize the transaction if no active session exists for the card. Expected Result: Terminal displays authorizing; Callback URL is called or response is given with Transaction ID and Session ID.
Step 3: Optional dispense message display. CPS Host System Action: Optionally, display a message or selection screen for the user. Expected Result: Terminal displays dispense screen.
Step 4: Start charging/dispense product. Step 5: Return to initial state. Step 6: Commit session (commit command).
|
Handle a scenario where charging fails after authorization. | |
Test the system's response to a declined transaction. | Step 1: Start a session (start command). Step 2: Present a card. CPS Host System Action: Simulate card presentation and proceed to authorize, expecting a decline. Expected Result: Terminal displays authorizing; Transaction is declined.
Step 3: Wait for authorization result. Step 4: Return to initial state.
|