org.itracker.selenium
Class ViewIssueTest

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.ViewIssueTest
All Implemented Interfaces:
junit.framework.Test

public class ViewIssueTest
extends AbstractSeleniumTestCase

Verifies the functionality of View Issue page.

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
ViewIssueTest()
           
 
Method Summary
protected  String[] getConfigLocations()
           
protected  String[] getDataSetFiles()
          must make sure, that the order is correct, so no constraints will be violated.
 void testViewIssue1()
          1.
 void testViewIssue2()
          1.
 
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

ViewIssueTest

public ViewIssueTest()
Method Detail

testViewIssue1

public void testViewIssue1()
                    throws IOException
1. Enter the system with admin_test1 user login. 2. Goto "Projects List" page. 3. For project "test_name", click "View" link. 4. At "View Issues" page, for Issue 1, click "View" link. 5. At appeared page (View Issue), compare description and current owner to expected values.

Throws:
IOException

testViewIssue2

public void testViewIssue2()
                    throws IOException
1. Enter the system with admin_test1 user login. 2. Goto "Projects List" page. 3. For project "test_name", click "View" link. 4. At "View Issues" page, for Issue 2, click "View" link. 5. At appeared page (View Issue), compare description and current owner to expected values.

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.