org.itracker.selenium
Class ViewPortalHomeTest

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
                                  extended by org.itracker.selenium.ViewPortalHomeTest
All Implemented Interfaces:
junit.framework.Test

public class ViewPortalHomeTest
extends AbstractSeleniumTestCase

Check the content of PortalHome page with some data available.

Author:
Andrey Sergievskiy

Field Summary
 
Fields inherited from class org.itracker.selenium.AbstractSeleniumTestCase
applicationHost, applicationPath, applicationPort, SE_TIMEOUT, selenium, SMTP_PORT, 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
ViewPortalHomeTest()
           
 
Method Summary
protected  String[] getConfigLocations()
           
protected  String[] getDataSetFiles()
          must make sure, that the order is correct, so no constraints will be violated.
 void testViewHomePage()
          Verifies the successfull login case with valid login/password.
 
Methods inherited from class org.itracker.selenium.AbstractSeleniumTestCase
closeSession
 
Methods inherited from class org.itracker.AbstractDependencyInjectionTest
callSetup, callTeardown, 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, 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
 

Constructor Detail

ViewPortalHomeTest

public ViewPortalHomeTest()
Method Detail

testViewHomePage

public void testViewHomePage()
                      throws IOException
Verifies the successfull login case with valid login/password. 0. Exit all available http sessions. 1. Login into the system with particular login (admin_test1). 2. Check that "Unassigned Issues" section is present at the page. 3. Check that number of unassigned issues is 2 (as we defined in database before running this test). 4. Check all unassigned issues we expect to be in the system are shown at the page (check them one by one). 5. Check that "Created Issues" section is present at the page. 6. Check that number of created issues is 4 (as we defined in database before running this test). 7. Check all all create issues we expect to be in the system are shown at the page (check them one by one). 8. Check that "Watched Issues" section is present at the page. 9. Check that number of watched items is 0.

Throws:
IOException

getDataSetFiles

protected String[] getDataSetFiles()
Description copied from class: AbstractDependencyInjectionTest
must make sure, that the order is correct, so no constraints will be violated.

Specified by:
getDataSetFiles in class AbstractDependencyInjectionTest
Returns:

getConfigLocations

protected String[] getConfigLocations()
Overrides:
getConfigLocations in class org.springframework.test.AbstractSingleSpringContextTests


Copyright © 2002-2012 itracker. All Rights Reserved.