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 Summary
Fields Modifier and Type Field Description protected UserProfileactiveUserProfileprotected StringactiveUserProfileNameprotected AppConfigappConfigprotected SmartAppDriverappDriverprotected StringappNameprotected ApplicationTypeappTypeprotected PlatformTypehostPlatformTypeprotected org.slf4j.Loggerloggerprotected booleanlogonTestprotected TestConfigManagertestConfigManagerprotected PlatformTypetestPlatformType
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractAppConnector(String appName, com.jayway.jsonpath.DocumentContext overrideDriverProps)
-
Method Summary
-
-
-
Field Detail
-
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 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()
-
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()
-
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)
-
-