Class 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 Detail

      • webDriverScreenshotRule

        public com.atlassian.webdriver.testing.rule.WebDriverScreenshotRule webDriverScreenshotRule
      • sessionCleanupRule

        public com.atlassian.webdriver.testing.rule.SessionCleanupRule sessionCleanupRule
    • Constructor Detail

      • WebDriverDatabaseConnectionTest

        public WebDriverDatabaseConnectionTest()
    • Method Detail

      • enterLicense

        public static void enterLicense()
      • testJDBCConnectionIsSucceeded

        public void testJDBCConnectionIsSucceeded()
                                           throws Exception
        Throws:
        Exception
      • testValidationOnJDBCForm

        public void testValidationOnJDBCForm()
                                      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
      • testJDBCConnectionWithUnreachablePort

        public void testJDBCConnectionWithUnreachablePort()
                                                   throws Exception
        Throws:
        Exception