org.itracker.selenium
Class CreateIssueTest

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

public class CreateIssueTest
extends AbstractSeleniumTestCase

Verifies the functionality of new issue creation.

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

CreateIssueTest

public CreateIssueTest()
Method Detail

testCreateUnassignedIssue

public void testCreateUnassignedIssue()
                               throws Exception
1. Login into the system with some particular user (admin_test1 in our case, which already has 4 issues, 2 of them are unassigned). 2. Go to "Project List" page (by clicking "Project List" link). 3. Click "Create" link for selected project. 4. Fill issue fields with some data (we remember description in our case, to check if new issue has appeared). 5. After submitting new issue, we are at "View Issues" page and check if new issue has appeared. 6. Go to "Portal Home" page and check if new issue has appeared in "Unassigned" area and "Created" area.

Throws:
IOException
Exception

testCreateAssignedIssue

public void testCreateAssignedIssue()
                             throws Exception
TODO

Throws:
IOException
Exception

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.