org.itracker.selenium
Class AbstractSeleniumTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.springframework.test.ConditionalTestCase
              extended by org.springframework.test.AbstractSpringContextTests
                  extended by org.springframework.test.AbstractSingleSpringContextTests
                      extended by org.springframework.test.AbstractDependencyInjectionSpringContextTests
                          extended by org.itracker.AbstractDependencyInjectionTest
                              extended by org.itracker.selenium.AbstractSeleniumTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CreateIssueTest, EditIssueTest, ForgotPasswordTest, LoginTest, LogoutTest, ViewIssueTest, ViewPortalHomeTest, ViewProjectIssueListTest, ViewProjectListTest

public abstract class AbstractSeleniumTestCase
extends AbstractDependencyInjectionTest

It is a base class for all Selenium-based test ca se. It performa initialization of Selenium client part and retrieves some generally-used parameters like hose application is running at, port, context.

Author:
Andrey Sergievskiy

Field Summary
protected  String applicationHost
           
protected  String applicationPath
           
protected  int applicationPort
           
static String SE_TIMEOUT
           
protected  com.thoughtworks.selenium.Selenium selenium
           
static int SMTP_PORT
           
protected  com.dumbster.smtp.SimpleSmtpServer smtpServer
           
 
Fields inherited from class org.itracker.AbstractDependencyInjectionTest
classLoader, dataSet
 
Fields inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_NO
 
Fields inherited from class org.springframework.test.AbstractSingleSpringContextTests
applicationContext
 
Fields inherited from class org.springframework.test.ConditionalTestCase
logger
 
Constructor Summary
AbstractSeleniumTestCase()
           
 
Method Summary
protected  void closeSession()
          This will initialize a new selenium session for this test scope.
 
Methods inherited from class org.itracker.AbstractDependencyInjectionTest
callSetup, callTeardown, getDataSetFiles, getDataSource, getSessionFactoryBean, onSetUp, onTearDown, resetConfiguration, setDataSource, setSessionFactoryBean
 
Methods inherited from class org.springframework.test.AbstractDependencyInjectionSpringContextTests
getAutowireMode, injectDependencies, isDependencyCheck, isPopulateProtectedVariables, prepareTestInstance, setAutowireMode, setDependencyCheck, setPopulateProtectedVariables
 
Methods inherited from class org.springframework.test.AbstractSingleSpringContextTests
contextKey, createApplicationContext, createBeanDefinitionReader, customizeBeanFactory, getApplicationContext, getConfigLocations, getConfigPath, getConfigPaths, getLoadCount, loadContext, loadContextLocations, prepareApplicationContext, setDirty, setUp, tearDown
 
Methods inherited from class org.springframework.test.AbstractSpringContextTests
addContext, contextKeyString, getContext, hasCachedContext, isContextKeyEmpty, setDirty
 
Methods inherited from class org.springframework.test.ConditionalTestCase
getDisabledTestCount, isDisabledInThisEnvironment, recordDisabled, runBare
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SE_TIMEOUT

public static final String SE_TIMEOUT
See Also:
Constant Field Values

SMTP_PORT

public static final int SMTP_PORT
See Also:
Constant Field Values

smtpServer

protected com.dumbster.smtp.SimpleSmtpServer smtpServer

selenium

protected com.thoughtworks.selenium.Selenium selenium

applicationHost

protected String applicationHost

applicationPort

protected int applicationPort

applicationPath

protected String applicationPath
Constructor Detail

AbstractSeleniumTestCase

public AbstractSeleniumTestCase()
Method Detail

closeSession

protected void closeSession()
This will initialize a new selenium session for this test scope.



Copyright © 2002-2012 itracker. All Rights Reserved.