Class UITestUtils
- java.lang.Object
-
- eu.tsystems.mms.tic.testframework.utils.UITestUtils
-
- All Implemented Interfaces:
WebDriverManagerProvider
public class UITestUtils extends java.lang.Object implements WebDriverManagerProvider
Helper class containing some util methods for tt.
-
-
Field Summary
-
Fields inherited from interface eu.tsystems.mms.tic.testframework.testing.WebDriverManagerProvider
WEB_DRIVER_MANAGER
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidinitializePerfTest()initialize properties for a Perf test with default values if PERF_TEST is true.static eu.tsystems.mms.tic.testframework.report.model.context.ScreenshottakeScreenshot(org.openqa.selenium.WebDriver driver, boolean intoReport)static voidtakeScreenshot(org.openqa.selenium.WebDriver webDriver, eu.tsystems.mms.tic.testframework.report.model.context.Screenshot screenshot)static java.util.List<eu.tsystems.mms.tic.testframework.report.model.context.Screenshot>takeScreenshots()Make screenshots from all open Webdriver instances of the current method context and add them to report.static java.util.List<eu.tsystems.mms.tic.testframework.report.model.context.Screenshot>takeScreenshots(boolean publishToReport)Make screenshots from all open Webdriver instances of the current method context.static voidtakeWebDriverScreenshotToFile(org.openqa.selenium.WebDriver eventFiringWebDriver, java.io.File screenShotTargetFile)
-
-
-
Method Detail
-
takeScreenshot
public static eu.tsystems.mms.tic.testframework.report.model.context.Screenshot takeScreenshot(org.openqa.selenium.WebDriver driver, boolean intoReport)
-
takeScreenshot
public static void takeScreenshot(org.openqa.selenium.WebDriver webDriver, eu.tsystems.mms.tic.testframework.report.model.context.Screenshot screenshot)
-
takeScreenshots
public static java.util.List<eu.tsystems.mms.tic.testframework.report.model.context.Screenshot> takeScreenshots()
Make screenshots from all open Webdriver instances of the current method context and add them to report.If no method context found, the returned list will be empty.
- Returns:
- ScreenshotPaths.
-
takeScreenshots
public static java.util.List<eu.tsystems.mms.tic.testframework.report.model.context.Screenshot> takeScreenshots(boolean publishToReport)
Make screenshots from all open Webdriver instances of the current method context.If no method context found, the returned list will be empty.
- Parameters:
publishToReport- True for publish directly into report.- Returns:
- ScreenshotPaths.
-
takeWebDriverScreenshotToFile
public static void takeWebDriverScreenshotToFile(org.openqa.selenium.WebDriver eventFiringWebDriver, java.io.File screenShotTargetFile)
-
initializePerfTest
public static void initializePerfTest()
initialize properties for a Perf test with default values if PERF_TEST is true. all properties can be overwritten with the values in test.properties
-
-