getDuration method

Class: TestResultsPlatform: Selenium 3Language: Java SDK:

Returns 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.