<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macOS: 11.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "FileProvider",
  "identifier" : "/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct/interactive",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "File Provider"
    ],
    "preciseIdentifier" : "c:@E@NSFileProviderDomainTestingModes@NSFileProviderDomainTestingModeInteractive"
  },
  "title" : "interactive"
}
-->

# interactive

A testing mode where the extension can deterministically test asynchronous operations.

```
static var interactive: NSFileProviderDomain.TestingModes { get }
```

## Discussion

Disable the system’s automatic scheduling and execution of operations. Instead, the File Provider extension can manually determine the order of execution.

This testing mode enables the following synchronous methods:

- [`listAvailableTestingOperations()`](/documentation/FileProvider/NSFileProviderManager/listAvailableTestingOperations()): Lists all the operations that are ready for scheduling.
- [`run(_:)`](/documentation/FileProvider/NSFileProviderManager/run(_:)): Asks the system to schedule and execute the specified operations.

The [`interactive`](/documentation/FileProvider/NSFileProviderDomain/TestingModes-swift.struct/interactive) testing mode expects the File Provider extension to repeat the following steps while running tests:

1. Call [`listAvailableTestingOperations()`](/documentation/FileProvider/NSFileProviderManager/listAvailableTestingOperations())to get the list of outstanding operations.
2. Select the next set of operations required by your test.
3. Call [`run(_:)`](/documentation/FileProvider/NSFileProviderManager/run(_:))to execute those operations.

The `interactive` testing mode also disables some of the File Provider extension’s crash guarantees. For example, the system may lose any event that it hasn’t yet ingested.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)