File tree Expand file tree Collapse file tree 1 file changed +0
-14
lines changed
src/main/java/com/eliasnogueira/report Expand file tree Collapse file tree 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change 24
24
25
25
package com .eliasnogueira .report ;
26
26
27
- import com .eliasnogueira .driver .DriverManager ;
28
27
import com .eliasnogueira .enums .Target ;
29
28
import com .github .automatedowl .tools .AllureEnvironmentWriter ;
30
29
import com .google .common .collect .ImmutableMap ;
31
- import io .qameta .allure .Attachment ;
32
- import org .openqa .selenium .TakesScreenshot ;
33
30
34
31
import java .util .HashMap ;
35
32
import java .util .Map ;
36
33
37
34
import static com .eliasnogueira .config .ConfigurationManager .configuration ;
38
- import static org .openqa .selenium .OutputType .BYTES ;
39
35
40
36
public class AllureManager {
41
37
@@ -59,14 +55,4 @@ public static void setAllureEnvironmentInformation() {
59
55
60
56
AllureEnvironmentWriter .allureEnvironmentWriter (ImmutableMap .copyOf (basicInfo ));
61
57
}
62
-
63
- @ Attachment (value = "Failed test screenshot" , type = "image/png" )
64
- public static byte [] takeScreenshotToAttachOnAllureReport () {
65
- return ((TakesScreenshot ) DriverManager .getDriver ()).getScreenshotAs (BYTES );
66
- }
67
-
68
- @ Attachment (value = "Browser information" , type = "text/plain" )
69
- public static String addBrowserInformationOnAllureReport () {
70
- return DriverManager .getInfo ();
71
- }
72
58
}
You can’t perform that action at this time.
0 commit comments