duration property

Class: TestResultsPlatform: XCUILanguage: Objective-C SDK:

Use this property to retrieve the amount of time the test ran.

Syntax

Call syntax

NSInteger value = result.duration

Declaration

 (assign, readonly, nonatomic) NSInteger duration

Type:NSInteger

The number of seconds the test ran for.