Package com.github.invictum.reportportal
Class Utils
java.lang.Object
com.github.invictum.reportportal.Utils
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringlogLevel(net.thucydides.core.model.TestResult testResult) Finds log level based on step result status.static DatestepEndDate(net.thucydides.core.model.TestStep step) Calculates step's end time.static DatestepStartDate(net.thucydides.core.model.TestStep step) Calculates step's start timestatic DatetestEndDate(net.thucydides.core.model.TestOutcome test) Calculates test's end time.
-
Method Details
-
logLevel
Finds log level based on step result status.- Parameters:
testResult- used to define log level- Returns:
- discovered log level
-
stepEndDate
Calculates step's end time.- Parameters:
step- to calculate time on- Returns:
- step end time in
Dateformat
-
testEndDate
Calculates test's end time.- Parameters:
test- to calculate time on- Returns:
- test end time in
Dateformat
-
stepStartDate
Calculates step's start time- Parameters:
step- to calculate time for- Returns:
- step start time in
Dateformat
-