getDuration method

Class: TestResultsPlatform: AppiumLanguage: Java SDK:

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

Syntax

int value = result.getDuration();

Parameters

This method does not take any parameters.

Return value

Type: int
The number of seconds the test ran for.