---
title: "test(with:expectedValues:expectedValueInterval:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrclustertestcluster/test(with:expectedvalues:expectedvalueinterval:completionhandler:)"
---

# test(with:expectedValues:expectedValueInterval:completionHandler:)

## Declaration

```swift
func test(with params: MTRTestClusterClusterTestParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func test(with params: MTRTestClusterClusterTestParams?, expectedValues expectedDataValueDictionaries: [[String : Any]]?, expectedValueInterval expectedValueIntervalMs: NSNumber?) async throws
```
