cm
Size: a a a
cm
cm
🛠А
IK
cm
IK
IV
@Attachment(value = "Server log ", type = "text/plain", fileExtension = ".txt")
public byte[] attachServerLog() {
try {
return Files.readAllBytes(pathToReport);
} catch (IOException ignored) {
}
return null;
}
public void attachReport() throws IOException {
try (InputStream is = Files.newInputStream(pathToReport)) {
Allure.addAttachment("My attachment", is);
}
}PP
IV
PP
IV
IV
PP
IV
PP
IV
IV
PP
IV