public class UploadUtil
extends java.lang.Object
| Constructor and Description |
|---|
UploadUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
uploadArtifact(java.io.File artifact,
java.lang.String name) |
static void |
uploadScreenshot(byte[] screenshot,
java.lang.String name,
java.lang.Long capturedAtMillis,
boolean asArtifact)
Sends screenshot captured in scope of current test execution to Zebrunner.
|
static void |
uploadScreenshot(java.io.File screenshot,
java.lang.String name,
java.lang.Long capturedAtMillis,
boolean asArtifact) |
public static void uploadScreenshot(byte[] screenshot,
java.lang.String name,
java.lang.Long capturedAtMillis,
boolean asArtifact)
null is provided - it will be
generated automaticallyscreenshot - screenshot bytesname - artifact namecapturedAtMillis - unix timestamp representing a moment in time when screenshot got captured in millisecondsasArtifact - indicates that uploaded screenshot will be attached to test as artifactpublic static void uploadScreenshot(java.io.File screenshot,
java.lang.String name,
java.lang.Long capturedAtMillis,
boolean asArtifact)
public static void uploadArtifact(java.io.File artifact,
java.lang.String name)