mirror of
https://github.com/Kingsrook/qqq-frontend-material-dashboard.git
synced 2025-07-18 05:10:45 +00:00
Improved screenshots
This commit is contained in:
@ -6,6 +6,7 @@ import io.github.bonigarcia.wdm.WebDriverManager;
|
||||
import org.junit.jupiter.api.AfterEach;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.TestInfo;
|
||||
import org.openqa.selenium.Dimension;
|
||||
import org.openqa.selenium.WebDriver;
|
||||
import org.openqa.selenium.chrome.ChromeDriver;
|
||||
@ -23,6 +24,8 @@ public class QBaseSeleniumTest
|
||||
protected QSeleniumJavalin qSeleniumJavalin;
|
||||
protected QSeleniumLib qSeleniumLib;
|
||||
|
||||
private int screenshotIndex = 1;
|
||||
|
||||
|
||||
|
||||
/*******************************************************************************
|
||||
@ -81,9 +84,9 @@ public class QBaseSeleniumTest
|
||||
**
|
||||
*******************************************************************************/
|
||||
@AfterEach
|
||||
void afterEach()
|
||||
void afterEach(TestInfo testInfo)
|
||||
{
|
||||
qSeleniumLib.takeScreenshotToFile();
|
||||
qSeleniumLib.takeScreenshotToFile(getClass().getSimpleName() + "/" + testInfo.getDisplayName());
|
||||
|
||||
if(driver != null)
|
||||
{
|
||||
|
Reference in New Issue
Block a user