Class WebDriverDatabaseConnectionTest
- java.lang.Object
-
- com.atlassian.confluence.webdriver.WebDriverDatabaseConnectionTest
-
public class WebDriverDatabaseConnectionTest extends Object
Sets up the database connection of Confluence for Web Driver tests. Uses the following system properties to define the database to be connected,- database.host - default value: localhost
- database.port - default value: 1433
- database.user - default value: atlassian
- database.password - default value: flubflub
- database.url - default value: jdbc:jtds:sqlserver://localhost:1433/atlassian
- database.name - default value: Microsoft SQL Server
- database.datasource - default value:java:comp/env/jdbc/confluence
-
-
Field Summary
Fields Modifier and Type Field Description static DisableSslVerificationRuledisableSslVerificationRulecom.atlassian.webdriver.testing.rule.SessionCleanupRulesessionCleanupRulecom.atlassian.webdriver.testing.rule.WebDriverScreenshotRulewebDriverScreenshotRule
-
Constructor Summary
Constructors Constructor Description WebDriverDatabaseConnectionTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidenterLicense()voidnextOnJDBCConnectionWithIncorrectPassword()voidnextWhenJDBCConnectionIsSucceeded()voidshouldShowErrorAtNextWhenDatasourceNotExist()voidshouldShowErrorWhenDatasourceNotExist()voidtestJDBCConnectionIsSucceeded()voidtestJDBCConnectionWithIncorrectPassword()voidtestJDBCConnectionWithIncorrectUserName()voidtestJDBCConnectionWithUnreachableHost()voidtestJDBCConnectionWithUnreachablePort()voidtestValidationOnJDBCForm()
-
-
-
Field Detail
-
webDriverScreenshotRule
public com.atlassian.webdriver.testing.rule.WebDriverScreenshotRule webDriverScreenshotRule
-
sessionCleanupRule
public com.atlassian.webdriver.testing.rule.SessionCleanupRule sessionCleanupRule
-
disableSslVerificationRule
public static DisableSslVerificationRule disableSslVerificationRule
-
-
Method Detail
-
enterLicense
public static void enterLicense()
-
testJDBCConnectionIsSucceeded
public void testJDBCConnectionIsSucceeded() throws Exception- Throws:
Exception
-
nextWhenJDBCConnectionIsSucceeded
public void nextWhenJDBCConnectionIsSucceeded() throws Exception- Throws:
Exception
-
shouldShowErrorWhenDatasourceNotExist
public void shouldShowErrorWhenDatasourceNotExist()
-
shouldShowErrorAtNextWhenDatasourceNotExist
public void shouldShowErrorAtNextWhenDatasourceNotExist()
-
testJDBCConnectionWithIncorrectPassword
public void testJDBCConnectionWithIncorrectPassword() throws Exception- Throws:
Exception
-
nextOnJDBCConnectionWithIncorrectPassword
public void nextOnJDBCConnectionWithIncorrectPassword() throws Exception- Throws:
Exception
-
testJDBCConnectionWithIncorrectUserName
public void testJDBCConnectionWithIncorrectUserName() throws Exception- Throws:
Exception
-
testJDBCConnectionWithUnreachableHost
public void testJDBCConnectionWithUnreachableHost() throws Exception- Throws:
Exception
-
-