public class MBIntegrationUiBaseTest extends Object
| Modifier and Type | Field and Description |
|---|---|
protected String |
backendURL |
protected static String |
CUSTOM_ADMIN_ROLE_NAME
custom admin role name set with restartServerWithDifferentAdminRoleName() method
|
protected org.openqa.selenium.WebDriver |
driver |
protected org.wso2.carbon.integration.common.utils.LoginLogoutClient |
loginLogoutClient |
protected org.wso2.carbon.automation.engine.context.AutomationContext |
mbServer |
protected org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager |
serverManager |
protected String |
sessionCookie |
| Constructor and Description |
|---|
MBIntegrationUiBaseTest() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAdminPassword()
Get the password of admin user of current context tenant
|
protected String |
getAdminUserName()
Return the admin user name of current context tenant
|
protected Integer |
getAMQPPort()
Returns MQTT port based on automation.xml configurations
|
protected String |
getCurrentPassword()
Get current test user's password according to the automation context
|
protected String |
getCurrentUserName()
Get current test user's Username according to the automation context
|
protected String |
getLoginURL()
Gets the default login url for management console.
|
protected Integer |
getMQTTPort()
Returns MQTT port based on automation.xml configurations
|
protected void |
init()
Initializes the automation context, login client, session cookie and the backend url by
.automation.engine.context.TestUserMode#SUPER_TENANT_ADMIN. |
protected void |
init(org.wso2.carbon.automation.engine.context.TestUserMode testUserMode)
Initializes the automation context, login client, session cookie and the backend url by a
.carbon.automation.engine.context.TestUserMode. |
protected LoginPage |
logout()
Logs out from MB management console
|
protected void |
restartInPreviousConfiguration()
Restart the server with previous configuration.
|
protected void |
restartServerWithDifferentAdminRoleName()
Restart the server with admin role name set to "administrator" instead of default value admin.
|
protected void |
restartServerWithDomainName()
Restart the testing MB server with WSO2 domain name set under user management
|
protected org.wso2.carbon.automation.engine.context.AutomationContext mbServer
protected String sessionCookie
protected String backendURL
protected org.wso2.carbon.integration.common.utils.mgt.ServerConfigurationManager serverManager
protected org.wso2.carbon.integration.common.utils.LoginLogoutClient loginLogoutClient
protected org.openqa.selenium.WebDriver driver
protected static final String CUSTOM_ADMIN_ROLE_NAME
protected void init()
throws org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilException,
IOException,
XPathExpressionException
.automation.engine.context.TestUserMode#SUPER_TENANT_ADMIN.org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilExceptionMalformedURLExceptionXPathExpressionExceptionIOExceptionprotected void init(org.wso2.carbon.automation.engine.context.TestUserMode testUserMode)
throws XPathExpressionException,
org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilException,
MalformedURLException
.carbon.automation.engine.context.TestUserMode.testUserMode - The testing user mode.XPathExpressionExceptionorg.wso2.carbon.integration.common.utils.exceptions.AutomationUtilExceptionMalformedURLExceptionprotected String getCurrentUserName() throws XPathExpressionException
XPathExpressionExceptionprotected String getCurrentPassword() throws XPathExpressionException
XPathExpressionExceptionprotected String getAdminUserName() throws XPathExpressionException
XPathExpressionExceptionprotected String getAdminPassword() throws XPathExpressionException
XPathExpressionExceptionprotected void restartServerWithDomainName()
throws org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilException,
XPathExpressionException,
IOException
org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilExceptionXPathExpressionExceptionIOExceptionprotected void restartServerWithDifferentAdminRoleName()
throws IOException,
org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilException,
XPathExpressionException
IOExceptionorg.wso2.carbon.integration.common.utils.exceptions.AutomationUtilExceptionXPathExpressionExceptionprotected void restartInPreviousConfiguration()
throws IOException,
org.wso2.carbon.integration.common.utils.exceptions.AutomationUtilException
IOExceptionorg.wso2.carbon.integration.common.utils.exceptions.AutomationUtilExceptionprotected String getLoginURL() throws XPathExpressionException
XPathExpressionExceptionprotected LoginPage logout() throws IOException
IOExceptionprotected Integer getMQTTPort() throws XPathExpressionException
XPathExpressionExceptionprotected Integer getAMQPPort() throws XPathExpressionException
XPathExpressionExceptionCopyright © 2019 WSO2. All rights reserved.