org.itracker.selenium
Class EditIssueTest

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

public class EditIssueTest
extends AbstractSeleniumTestCase

Verifies the functionality of Edit 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
EditIssueTest()
           
 
Method Summary
protected  String[] getConfigLocations()
           
protected  String[] getDataSetFiles()
          must make sure, that the order is correct, so no constraints will be violated.
 void testEditIssue1FromIssueList()
          Editing one of tickets.
 void testEditIssue1FromViewIssue()
          Editing one of tickets.
 void testEditIssue2FromViewIssue()
          Editing one of tickets (another issues).
 void testMoveIssue1()
          Move a ticket to another project.
 
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

EditIssueTest

public EditIssueTest()
Method Detail

testEditIssue1FromViewIssue

public void testEditIssue1FromViewIssue()
                                 throws Exception
Editing one of tickets. 1. Enter the system with some particular user (admin_test1). 2. Goto Projects List page. 3. Click "View" link for some project (test_name). 4. Click "View" link for selected issue (no 1). 5. Click "Edit" link. 6. Update the description for this issue. 7. Submit the form. 8. Check if we got email notification about modifications. 9. Being at "View Issues" page, right after saving updated issues, check that no more issues with old description is here, but new description has appeared.

Throws:
IOException
Exception

testEditIssue1FromIssueList

public void testEditIssue1FromIssueList()
                                 throws Exception
Editing one of tickets. 1. Enter the system with some particular user (admin_test1). 2. Goto Projects List page. 3. Click "View" link for some project (test_name). 4. Click "Edit" link for selected issue (no 1). 5. Update the description for this issue. 6. Submit the form. 7. Check if we got email notification about modifications. 8. Being at "View Issues" page, right after saving updated issues, check that no more issues with old description is here, but new description has appeared.

Throws:
IOException
Exception

testMoveIssue1

public void testMoveIssue1()
                    throws Exception
Move a ticket to another project. 1. Enter the system with some particular user (admin_test1). 2. Goto Projects List page. 3. Click "View" link for some project (test_name). 4. Click "View" link for selected issue (no 1). 5. Click "Move" link. 6. Select a project (test_name2) where we gonna move a ticket. 7. Since test_name2 was an empty project, and now we have a single item there, we check that it has appeared at "View Issues" page for test_name2 project.

Throws:
IOException
Exception

testEditIssue2FromViewIssue

public void testEditIssue2FromViewIssue()
                                 throws Exception
Editing one of tickets (another issues). 1. Enter the system with some particular user (admin_test1). 2. Goto Projects List page. 3. Click "View" link for some project (test_name). 4. Click "View" link for selected issue (no 2). 5. Click "Edit" link. 6. Update the description for this issue. 7. Submit the form. 8. Check if we got email notification about modifications. 9. Being at "View Issues" page, right after saving updated issues, check that no more issues with old description is here, but new description has appeared.

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.