Class AbstractAppConnector

java.lang.Object
org.uitnet.testing.smartfwk.ui.core.AbstractAppConnector
Direct Known Subclasses:
DefaultAppConnector

public abstract class AbstractAppConnector
extends Object
Author:
Madhav Krishna
  • Field Details

    • logger

      protected org.slf4j.Logger logger
    • logonTest

      protected boolean logonTest
    • testConfigManager

      protected TestConfigManager testConfigManager
    • appName

      protected String appName
    • appType

      protected ApplicationType appType
    • testPlatformType

      protected PlatformType testPlatformType
    • appConfig

      protected AppConfig appConfig
    • hostPlatformType

      protected PlatformType hostPlatformType
    • activeUserProfileName

      protected String activeUserProfileName
    • activeUserProfile

      protected UserProfile activeUserProfile
    • appDriver

      protected SmartAppDriver appDriver
  • Constructor Details

    • AbstractAppConnector

      protected AbstractAppConnector​(String appName)
  • Method Details

    • scenarioSetup

      public void scenarioSetup()
    • scenarioTearDown

      public void scenarioTearDown()
    • setScrollElementToViewportHandler

      public void setScrollElementToViewportHandler​(ScrollElementToViewportHandler handler)
    • getAppName

      public String getAppName()
    • getAppType

      public ApplicationType getAppType()
    • getTestPlatformType

      public PlatformType getTestPlatformType()
    • getActiveUserProfileName

      public String getActiveUserProfileName()
    • getActiveUserProfile

      public UserProfile getActiveUserProfile()
    • getAppDriver

      public SmartAppDriver getAppDriver()
    • createNewLoginPageValidator

      protected LoginPageValidator createNewLoginPageValidator()
    • createNewLoginSuccessPageValidator

      protected LoginSuccessPageValidator createNewLoginSuccessPageValidator()
    • checkLogoutAndLoginAgain

      public SmartAppDriver checkLogoutAndLoginAgain​(String userProfileName)
    • getTestConfigManager

      public TestConfigManager getTestConfigManager()
    • getAppConfig

      public AppConfig getAppConfig​(String appName)
    • setActiveUserProfileName

      public SmartAppDriver setActiveUserProfileName​(String userProfileName)
    • relogin

      public void relogin()
    • logoutAndNoQuit

      public void logoutAndNoQuit()
      Logout and does not close browser but the child windows/browsers will get closed.
    • logoutAndQuit

      public void logoutAndQuit()
      Logout and closes the browser and the child windows/browsers. NOTE: To execute further testcases, new browser will be opened.
    • closeChildrenWindows

      public void closeChildrenWindows()
    • captureScreenshot

      public void captureScreenshot​(io.cucumber.java.Scenario scenario)
    • captureScreenshot

      public void captureScreenshot​(io.cucumber.java.Scenario scenario, String status)
    • captureScreenshot

      public void captureScreenshot​(String fileNameHint)