---
title: "run(_:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileprovidermanager/run(_:)"
---

# run(_:)

Asks the system to schedule and execute the specified operations.

## Declaration

```swift
func run(_ operations: [any NSFileProviderTestingOperation]) throws -> [AnyHashable : any Error]
```

## Parameters

- `operations`: An array of operations. Populate this array with one or more operations returned by the doc://com.apple.fileprovider/documentation/FileProvider/NSFileProviderManager/listAvailableTestingOperations() method.

## Discussion

Discussion important: Before calling this method, you must set the domain’s testingModes property to include the interactive value. The system waits until all of the specified operations complete and reports an error for any operations that fail.

## See Also

### Testing

- [listAvailableTestingOperations()](fileprovider/nsfileprovidermanager/listavailabletestingoperations().md)
