public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Optional<Attach> |
attachment(File file)
Wraps file to attachment
|
static Optional<io.qameta.allure.model.StatusDetails> |
error(net.thucydides.core.model.stacktrace.FailureCause cause)
Wraps
FailureCause to StatusDetails |
static long |
finishTime(ZonedDateTime start,
long duration)
Calculates entity end time
|
static List<io.qameta.allure.model.Label> |
testLabels(net.thucydides.core.model.TestOutcome testOutcome)
Tags
TestOutcome object with related labels |
public static Optional<io.qameta.allure.model.StatusDetails> error(net.thucydides.core.model.stacktrace.FailureCause cause)
FailureCause to StatusDetailscause - to wrapStatusDetailspublic static Optional<Attach> attachment(File file)
file - to wrapAttachpublic static long finishTime(ZonedDateTime start, long duration)
start - entity timeduration - in millisecondspublic static List<io.qameta.allure.model.Label> testLabels(net.thucydides.core.model.TestOutcome testOutcome)
TestOutcome object with related labelstestOutcome - object to generates tags forCopyright © 2018. All rights reserved.