> For the complete documentation index, see [llms.txt](https://docs.qyrus.com/device-farm/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.qyrus.com/device-farm/interrupt.md).

# Interrupts

## Introduction

**Interrupt testing** evaluates how a mobile application responds to sudden external system events—such as incoming phone calls, SMS notifications, alarms, and lock screen events—and verifies that the app gracefully recovers its previous state without crashing, losing user inputs, or corrupting session data.

***

### Why Interrupt Testing Matters:

* **Form & Payment Resilience:** Ensure that checkout forms, OTP inputs, or payment gateways do not reset when an interruption occurs.
* **Media & Audio Focus:** Verify that video or audio playback pauses during a call and resumes smoothly afterward.
* **State Preservation:** Confirm that app state is retained in background memory and restored upon app switching.

***

## Triggering Interrupts in Active Sessions

For real devices equipped with SIM/cellular capabilities, the **Phone Call** and **Message** icons appear in the device control bar during active manual testing and Object Spy sessions.

![Interrupts](https://2346916530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSZu8cT8D2Zwayrr4I91%2Fuploads%2Fgit-blob-9f3133d2ca66578a9f77d84b87de8f7db64bfb96%2FInterrupts.png?alt=media)

### 1. Triggering an Incoming Phone Call:

1. In an active session, navigate to the screen or workflow you wish to test (e.g., during video playback or mid-form entry).
2. Click the **Phone Call** icon on the control bar.
3. The platform simulates an incoming voice call on the remote device.
4. Observe the application behavior (e.g., call notification heads-up banner or full-screen dialer overlay).
5. Interact with or dismiss the call, and verify that the application returns seamlessly to its prior active state.

![Interrupts](https://2346916530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSZu8cT8D2Zwayrr4I91%2Fuploads%2Fgit-blob-e82d4ff585cf18f4f80977fc90c73dc08d15079d%2Finterrupts-call-demo.png?alt=media)

### 2. Triggering an Incoming SMS / Text Message:

1. Click the **Message (SMS)** icon on the control bar.
2. The platform sends a simulated incoming SMS text notification to the device.
3. Observe how the heads-up notification banner displays over your app.
4. Verify that tapping or dismissing the banner does not cause UI freezes or crashes.

![Interrupts](https://2346916530-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FkSZu8cT8D2Zwayrr4I91%2Fuploads%2Fgit-blob-38ab0276e6e7c603a50f9f5d43b80b0ded11ae2b%2Finterrupts-sms.png?alt=media)

***
