Class UITestUtils

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void initializePerfTest()
      initialize properties for a Perf test with default values if PERF_TEST is true.
      static eu.tsystems.mms.tic.testframework.report.model.context.Screenshot takeScreenshot​(org.openqa.selenium.WebDriver driver, boolean intoReport)  
      static void takeScreenshot​(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 void takeWebDriverScreenshotToFile​(org.openqa.selenium.WebDriver eventFiringWebDriver, java.io.File screenShotTargetFile)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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