Class AppPercy

java.lang.Object
io.percy.appium.IPercy
io.percy.appium.AppPercy

public class AppPercy extends IPercy
Percy client for visual testing.
  • Constructor Details

    • AppPercy

      public AppPercy(io.appium.java_client.AppiumDriver driver)
      Parameters:
      driver - The Appium Driver object that will hold the app session to screenshot.
  • Method Details

    • screenshot

      public void screenshot(String name)
      Take a screenshot and upload it to Percy.
      Parameters:
      name - The human-readable name of the screenshot. Should be unique.
    • screenshot

      public void screenshot(String name, Boolean fullScreen)
      Take a screenshot and upload it to Percy.
      Parameters:
      name - The human-readable name of the screenshot. Should be unique.
      fullScreen - It indicates if the app is a full screen
    • screenshot

      public void screenshot(String name, ScreenshotOptions options)
      Take a screenshot and upload it to Percy.
      Parameters:
      name - The human-readable name of the screenshot. Should be unique.
      options - Optional screenshot params
    • screenshot

      public void screenshot(String name, Boolean fullScreen, ScreenshotOptions options)
      Take a screenshot and upload it to Percy.
      Parameters:
      name - The human-readable name of the screenshot. Should be unique.
      fullScreen - It indicates if the app is a full screen
      options - Optional screenshot params
    • finalize

      protected void finalize() throws Throwable
      Overrides:
      finalize in class Object
      Throws:
      Throwable
    • log

      public static void log(String message)
    • log

      public static void log(String message, String logLevel)