Class AbstractAppConnector

  • Direct Known Subclasses:
    DefaultAppConnector

    public abstract class AbstractAppConnector
    extends Object
    Author:
    Madhav Krishna
    • Constructor Detail

      • AbstractAppConnector

        protected AbstractAppConnector​(String appName,
                                       com.jayway.jsonpath.DocumentContext overrideDriverProps)
        Parameters:
        appName -
        overrideDriverProps - - can be set null if we do not want to override the existing driver properties for this session only.
    • Method Detail

      • scenarioSetup

        public void scenarioSetup()
      • scenarioTearDown

        public void scenarioTearDown()
      • getAppName

        public String getAppName()
      • getTestPlatformType

        public PlatformType getTestPlatformType()
      • getActiveUserProfileName

        public String getActiveUserProfileName()
      • getActiveUserProfile

        public UserProfile getActiveUserProfile()
      • createNewLoginPageValidator

        protected LoginPageValidator createNewLoginPageValidator()
      • checkLogoutAndLoginAgain

        public SmartAppDriver checkLogoutAndLoginAgain​(String userProfileName)
      • 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 String captureScreenshot​(io.cucumber.java.Scenario scenario)
      • captureScreenshot

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

        public String captureScreenshot​(String fileNameHint)