org.melati.admin.test
Class AdminJettyWebTest

Package class diagram package AdminJettyWebTest
java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by org.melati.JettyWebTestCase
                  extended by org.melati.admin.test.AdminJettyWebTest
All Implemented Interfaces:
junit.framework.Test

public class AdminJettyWebTest
extends JettyWebTestCase

Since:
2008/01/01
Author:
timp

Field Summary
 
Fields inherited from class org.melati.JettyWebTestCase
actualPort, contextName, referenceOutputDir, webAppDirName
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
customTester, tester
 
Constructor Summary
AdminJettyWebTest()
           
AdminJettyWebTest(String name)
           
 
Method Summary
 void brokenestAdminEditField()
           
 String getFormFieldValue(String fieldName)
           
 String getFormTextareaValue(String fieldName)
           
static void main(String[] args)
          If you don't know by now.
protected  void setUp()
          There appears to be a problem with gargoyle javascript such that we cannot begin at the Main page as this throws NullPointerException, The work around is to begin at the server top and then got the Main page.
 void testAdminBottom()
           
 void testAdminDSD()
           
 void testAdminEdit()
           
 void testAdminEditAdministrator()
          Test that login is required.
 void testAdminEditFieldNoJS()
           
 void testAdminEditHeader()
           
 void testAdminMain()
           
 void testAdminPopup()
           
 void testAdminPrimarySelect()
           
 void testAdminRecord()
           
 void testAdminSelection()
           
 void testAdminSelectionCSV()
           
 void testAdminSelectionWindow()
           
 void testAdminSelectionWindowPrimarySelect()
           
 void testAdminSelectionWindowSelection()
           
 void testAdminSpecialised()
          Test that an AdminSpecialised object has its special templet included in edit.
 void testAdminSpecialisedHandler()
          Test that an AdminSpecialised object invokes its own handler.
 void testAdminTableTree()
           
 void testAdminTop()
           
 void testAdminTopWithTable()
           
 void testAdminTopWithTableAndTroid()
           
 void testAdminTree()
           
 void testAdminTreeNoScript()
           
 void testBadUrl()
           
 void testCreateTableStory()
          User story.
 void testDescendingOrder()
          Getting the coverage is proof enough.
 void testEverythingIsProtected()
          Test that we are challenged to get into the everything db.
 void testHttpXmlRequestProxy()
           
 void testLoginWithContinuation()
          Move to login
 void testNoPrimarySelect()
          Test that if there is no primary select column on the table no primary criteria are displayed.
 void testProxy()
           
 void testProxyNotAllowed()
           
 void testSearchAndGoto()
          Search for a set of records.
 void testSelectionPaging()
          Can we get to page three and back.
 void testSetupStory()
          Test setting the defaults, with javascript enabled
 void testSetupStoryNoJS()
          Test setting the defaults, with javascript disabled
 void testUpload()
           
 
Methods inherited from class org.melati.JettyWebTestCase
assertPageEqual, beginAt, contextUrl, getActualPort, getContextName, getWebAppDirName, gotoPage, setContextName, setWebAppDirName, startServer, tearDown, testIndex
 
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCommentNotPresent, assertCommentPresent, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHeaderEquals, assertHeaderMatches, assertHeaderNotPresent, assertHeaderPresent, assertHiddenFieldPresent, assertImagePresent, assertImagePresentPartial, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLabeledFieldEquals, assertLabelMatches, assertLabelPresent, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatch, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertNotMatch, assertNotMatch, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertResponseCode, assertResponseCodeBetween, assertSelectedOptionEquals, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getAllHeaders, getComments, getDialog, getElementAttributByXPath, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextByXPath, getFormElementValue, getHeader, getImage, getMessage, getMessage, getPageSource, getServerResponse, getServeurResponse, getTable, getTestContext, getTester, getTestingEngine, getTestingEngineKey, gotoFrame, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOption, selectOptionByValue, selectOptionByValue, selectOptions, selectOptions, selectOptionsByValues, selectOptionsByValues, setBaseUrl, setBaseUrl, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setHiddenField, setIgnoreFailingStatusCodes, setLabeledFormElementField, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setTimeout, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AdminJettyWebTest

public AdminJettyWebTest()

AdminJettyWebTest

public AdminJettyWebTest(String name)
Parameters:
name -
Method Detail

main

public static void main(String[] args)
                 throws Exception
If you don't know by now.

Parameters:
args -
Throws:
Exception

setUp

protected void setUp()
              throws Exception
There appears to be a problem with gargoyle javascript such that we cannot begin at the Main page as this throws NullPointerException, The work around is to begin at the server top and then got the Main page.

Overrides:
setUp in class JettyWebTestCase
Throws:
Exception
See Also:
JettyWebTestCase.setUp()

testBadUrl

public void testBadUrl()

testAdminMain

public void testAdminMain()

testAdminTop

public void testAdminTop()

testAdminTopWithTable

public void testAdminTopWithTable()

testAdminTopWithTableAndTroid

public void testAdminTopWithTableAndTroid()

testUpload

public void testUpload()

testProxyNotAllowed

public void testProxyNotAllowed()

testProxy

public void testProxy()

testHttpXmlRequestProxy

public void testHttpXmlRequestProxy()

testAdminSpecialised

public void testAdminSpecialised()
Test that an AdminSpecialised object has its special templet included in edit.


testAdminSpecialisedHandler

public void testAdminSpecialisedHandler()
Test that an AdminSpecialised object invokes its own handler.


testNoPrimarySelect

public void testNoPrimarySelect()
Test that if there is no primary select column on the table no primary criteria are displayed.


testDescendingOrder

public void testDescendingOrder()
Getting the coverage is proof enough.


testAdminBottom

public void testAdminBottom()

testAdminRecord

public void testAdminRecord()

testAdminPrimarySelect

public void testAdminPrimarySelect()

testAdminSelection

public void testAdminSelection()

testSelectionPaging

public void testSelectionPaging()
Can we get to page three and back.


testAdminEditHeader

public void testAdminEditHeader()

testAdminEdit

public void testAdminEdit()

testAdminEditFieldNoJS

public void testAdminEditFieldNoJS()

brokenestAdminEditField

public void brokenestAdminEditField()

getFormFieldValue

public String getFormFieldValue(String fieldName)
Parameters:
fieldName -
Returns:
value of named field

getFormTextareaValue

public String getFormTextareaValue(String fieldName)
Parameters:
fieldName -
Returns:
value of named field

testAdminEditAdministrator

public void testAdminEditAdministrator()
Test that login is required.


testEverythingIsProtected

public void testEverythingIsProtected()
Test that we are challenged to get into the everything db.


testAdminTree

public void testAdminTree()

testAdminTreeNoScript

public void testAdminTreeNoScript()

testAdminTableTree

public void testAdminTableTree()

testAdminSelectionWindow

public void testAdminSelectionWindow()

testAdminSelectionWindowPrimarySelect

public void testAdminSelectionWindowPrimarySelect()

testAdminSelectionWindowSelection

public void testAdminSelectionWindowSelection()

testAdminSelectionCSV

public void testAdminSelectionCSV()

testAdminPopup

public void testAdminPopup()

testAdminDSD

public void testAdminDSD()

testLoginWithContinuation

public void testLoginWithContinuation()
Move to login


testSetupStory

public void testSetupStory()
Test setting the defaults, with javascript enabled


testSetupStoryNoJS

public void testSetupStoryNoJS()
Test setting the defaults, with javascript disabled


testSearchAndGoto

public void testSearchAndGoto()
Search for a set of records.


testCreateTableStory

public void testCreateTableStory()
User story.



Copyright © 2000-2010 PanEris. All Rights Reserved.