This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from sbtqa/new-helper
Update allure helper
- Loading branch information
Showing
4 changed files
with
45 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/main/java/ru/sbtqa/tag/pagefactory/support/OnFailureScheduler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package ru.sbtqa.tag.pagefactory.support; | ||
|
||
import ru.sbtqa.tag.allurehelper.ParamsHelper; | ||
import ru.sbtqa.tag.qautils.properties.Props; | ||
import ru.sbtqa.tag.videorecorder.VideoRecorder; | ||
import ru.yandex.qatools.allure.cucumberjvm.callback.OnFailureCallback; | ||
|
||
public class OnFailureScheduler implements OnFailureCallback { | ||
|
||
private void takeScreenshot() { | ||
String screenshotStrategy = Props.get("screenshot.strategy", "raw"); | ||
|
||
switch (screenshotStrategy) { | ||
case "driver": | ||
ScreenShooter.takeWithDriver(); | ||
break; | ||
case "raw": | ||
default: | ||
ScreenShooter.takeRaw(); | ||
break; | ||
} | ||
} | ||
|
||
@Override | ||
public Object call() { | ||
takeScreenshot(); | ||
return null; | ||
} | ||
} |
74 changes: 0 additions & 74 deletions
74
src/main/java/ru/sbtqa/tag/pagefactory/support/TagAllureReporter.java
This file was deleted.
Oops, something went wrong.