edu.samplu.admin.test
Class XMLIngesterAbstractSmokeTestBase

java.lang.Object
  extended by edu.samplu.common.WebDriverLegacyITBase
      extended by edu.samplu.common.FreemarkerSTBase
          extended by edu.samplu.admin.test.XMLIngesterAbstractSmokeTestBase
All Implemented Interfaces:
Failable
Direct Known Subclasses:
XMLIngesterSTJUnitBase, XMLIngesterSTNGBase

public abstract class XMLIngesterAbstractSmokeTestBase
extends FreemarkerSTBase

Tests uploads of new users and group.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
static String BOOKMARK_URL
          http://env12.rice.kuali.org/portal.do?channelTitle=XML%20Ingester&channelUrl=http://env12.rice.kuali.org/kew/../core/Ingester.do
 
Fields inherited from class edu.samplu.common.FreemarkerSTBase
cfg, LOG
 
Fields inherited from class edu.samplu.common.WebDriverLegacyITBase
ADMINISTRATION_LINK_TEXT, AGENDA_LOOKUP_LINK_TEXT, ARIA_INVALID_XPATH, BLANKET_APPROVE_NAME, CANCEL_NAME, CANCEL2_XPATH, CLOSE_WINDOW_XPATH_TITLE, COLLECTIONS_LINK_TEXT, CONFIGURATION_VIEW_WINDOW_TITLE, CONFIGURATION_VIEW_XPATH, COPY_LINK_TEXT, CREATE_NEW_DOCUMENT_NOT_SUBMITTED_SUCCESSFULLY_MESSAGE_TEXT, CREATE_NEW_XPATH, DEFAULT_WAIT_SEC, DIV_LEFT_ERRMSG, DOC_DESCRIPTION_XPATH, DOC_ID_XPATH, DOC_ID_XPATH_2, DOC_ID_XPATH_3, DOC_SEARCH_XPATH, DOC_SEARCH_XPATH_TITLE, DOC_STATUS_ENROUTE, DOC_STATUS_FINAL, DOC_STATUS_SAVED, DOC_STATUS_XPATH, DOC_STATUS_XPATH_2, DOC_SUBMIT_SUCCESS_MSG_XPATH, driver, EDIT_LINK_TEXT, IFRAMEPORTLET_NAME, JGROWL_ERROR_FAILURE, jGrowlHeader, KITCHEN_SINK_XPATH, KRAD_XPATH, KUALI_UIF_COMPONENTS_WINDOW_XPATH, KUALI_VIEW_WINDOW_TITLE, LOGOUT_XPATH, MAIN_MENU_LINK_TEXT, passed, REGEX_ERROR, REGEX_VALID, REMOTE_PUBLIC_USER_PROPERTY, REMOTE_PUBLIC_USERPOOL_PROPERTY, REMOTE_PUBLIC_WAIT_SECONDS_PROPERTY, RETURN_VALUE_LINK_TEXT, RICH_MESSAGES_WINDOW_TITLE, SAVE_SUCCESSFUL_XPATH, SAVE_XPATH, SAVE_XPATH_2, SAVE_XPATH_3, SEARCH_XPATH, SEARCH_XPATH_2, SEARCH_XPATH_3, SUB_COLLECTION_UIF_DISCLOSURE_SPAN_UIF_HEADER_TEXT_SPAN_XPATH, SUBMIT_XPATH, testMethodName, testName, TIMEOUT_MESSAGE, TRAVEL_ACCOUNT_LOOKUP_LINK_TEXT, UIF_COMPONENTS_KITCHEN_SINK_LINK_TEXT, user, VALIDATION_FRAMEWORK_DEMO_XPATH, waitSeconds, XML_INGESTER_LINK_TEXT
 
Constructor Summary
XMLIngesterAbstractSmokeTestBase()
           
 
Method Summary
protected  List<File> buildFileUploadList()
           
protected  String getTemplateDir()
           DIR_TMPL
 String getTestUrl()
          Nav tests start at ITUtil.PORTAL.
 String getUserName()
          "admin" xml ingestion requires admin permissions.
protected  void navigate(Failable failable)
          go to the getMenuLinkLocator() Menu and click the getLinkLocator()
protected abstract  File newTempFile(String name)
           
protected  void testIngestion(Failable failable)
          Based on load user and groups manual tests; dynamically generates user and group file and loads into the xml ingester screen
protected  void testIngestionBookmark(Failable failable)
           
protected  void testIngestionNav(Failable failable)
          Navigate to the page under test and call testIngestion(edu.samplu.common.Failable)
 
Methods inherited from class edu.samplu.common.FreemarkerSTBase
ftlWrite, loadProperties, setUp, systemPropertiesOverride, writeTemplateToFile
 
Methods inherited from class edu.samplu.common.WebDriverLegacyITBase
agendaLookupAssertions, alertAccept, alertDismiss, assertAttributeClassRegexDoesntMatch, assertAttributeClassRegexMatches, assertBlanketApproveButtonsPresent, assertCancelConfirmation, assertDocFinal, assertDocumentStatusSaved, assertElementPresent, assertElementPresentByLinkText, assertElementPresentByName, assertElementPresentByName, assertElementPresentByXpath, assertElementPresentByXpath, assertFocusTypeBlurError, assertFocusTypeBlurError, assertFocusTypeBlurValid, assertFocusTypeBlurValid, assertFocusTypeBlurValidation, assertPopUpWindowUrl, assertTableLayout, assertTextPresent, assertTextPresent, blanketApproveTest, check, checkByName, checkByXpath, checkErrorMessageItem, checkForDocError, checkForIncidentReport, checkForIncidentReport, checkForIncidentReport, checkForIncidentReport, chromeDriverService, clearText, clearText, clearTextByName, clearTextByXpath, close, colapseExpandByXpath, configNameSpaceBlanketApprove, confirmAddLineControlsPresent, contextLookupAssertions, expandColapseByXpath, fail, fireEvent, fireEvent, fireMouseOverEvent, fireMouseOverEventByName, fireMouseOverEventByXpath, getAllWindowTitles, getAttribute, getAttributeByName, getAttributeByXpath, getBaseUrlString, getCssCount, getCssCount, getDocStatus, getSelectOptions, getSelectOptionsByName, getSelectOptionsByXpath, getSessionId, getText, getText, getTextByName, getTextByXpath, getTitle, gotoNestedFrame, isElementPresent, isElementPresent, isElementPresentByLinkText, isElementPresentByName, isElementPresentByXpath, isTextPresent, isVisible, isVisible, isVisibleByXpath, jGrowl, jGrowlSticky, jiraAwareWaitAndClick, jiraAwareWaitAndClick, jiraAwareWaitFor, jiraAwareWaitFor, open, passed, performParameterInquiry, select, selectByName, selectByXpath, selectFrame, selectFrameIframePortlet, selectOption, selectOptionByName, selectOptionByXpath, selectTopFrame, selectWindow, switchToWindow, tearDown, testActionColumnPlacement, testAddBlankLine, testAddingBrownGroup, testAddingNamespace, testAddingNamespace, testAddLineAllDay, testAddLineWithAllDay, testAddLineWithSpecificTime, testAddViaLightbox, testAgendaEditRuleRefreshIT, testAttributeDefinitionLookUp, testCancelConfirmation, testCategoryLookUp, testCollectionTotalling, testColumnSequence, testConfigParamaterBlanketApprove, testConfigurationTestView, testCopyComponent, testCopyParameter, testCopyParameterType, testCreateDocType, testCreateNewAgenda, testCreateNewCancel, testCreateNewComponent, testCreateNewComponent, testCreateNewParameter, testCreateNewParameterType, testCreateNewPermission, testCreateNewPerson, testCreateNewRRDTravelRequestDestRouting, testCreateNewSearchReturnValueCancelConfirmation, testCreateSampleEDocLite, testDefaultTestsTableLayout, testDisplayOnlyExternalHelp2, testDisplayOnlyTooltipHelp, testDocTypeLookup, testEditComponent, testEditParameter, testEditParameterType, testEditPermission, testEditRouteRulesDelegation, testExternalHelp2, testFiscalOfficerInfoMaintenanceNew, testIdentityGroupBlanketApprove, testIdentityPermissionBlanketApprove, testIdentityPersonBlanketApprove, testIdentityResponsibilityBlanketApprove, testIdentityRoleBlanketApprove, testIfRowHasBeenAdded, testLocationCampusBlanketApprove, testLocationCountryBlanketApprove, testLocationCountyBlanketApprove, testLocationPostBlanketApprove, testLocationStateBlanketApprove, testLookUp, testLookUpComponent, testLookUpParameter, testLookUpParameterType, testLookUpPermission, testLookUpPerson, testMissingExternalHelp2, testMissingTooltipHelp, testPageHelp, testPeopleFlow, testReferenceCampusTypeBlanketApprove, testSearchEditCancel, testSequencerow, testServerErrorsIT, testServerInfoIT, testServerWarningsIT, testSubCollectionSize, testTermLookUp, testTermLookupAssertions, testTermSpecificationLookupAssertions, testTooltipHelp, testUifTooltip, testValidCharsConstraintIT, testVerifyAddDeleteFiscalOfficerLegacy, testVerifyAddDeleteNoteLegacy, testVerifyAdHocRecipientsLegacy, testVerifyButtonsLegacy, testVerifyConstraintText, testVerifyCopyComponent, testVerifyCopyParameterType, testVerifyDisclosures, testVerifyDocumentOverviewLegacy, testVerifyEditedComponent, testVerifyExpandCollapse, testVerifyFieldsLegacy, testVerifyHeaderFieldsLegacy, testVerifyLookupAddMultipleLinesLegacy, testVerifyModifiedParameter, testVerifyNotesAndAttachments, testVerifyPermission, testVerifyPerson, testVerifyQuickfinderIconsLegacy, testVerifyRouteLog, testVerifySave, testVerifySubsidizedPercentWatermarkLegacy, testViewHelp, testViewHelp2, testWorkFlowDocTypeBlanketApprove, testWorkFlowRouteRulesBlanketApp, testWorkFlowRouteRulesCreateNew, testWorkFlowRouteRulesEditRouteRules, uncheck, uncheckByName, uncheckByXpath, validateErrorImage, verifyRichMessagesValidationAdvancedFunctionality, verifyRichMessagesValidationBasicFunctionality, verifyRichMessagesValidationLettersNumbersValidation, verifyRichMessagesValidationLinkDeclarationsFunctionality, verifyRichMessagesValidationRadioAndCheckBoxGroupFunctionality, waitAndCancelConfirmation, waitAndClick, waitAndClick, waitAndClick, waitAndClick, waitAndClickAdministration, waitAndClickByLinkText, waitAndClickByLinkText, waitAndClickByLinkText, waitAndClickByLinkText, waitAndClickByName, waitAndClickByName, waitAndClickByXpath, waitAndClickByXpath, waitAndClickByXpath, waitAndClickCancel, waitAndClickCloseWindow, waitAndClickCopy, waitAndClickCreateNew, waitAndClickDocSearch, waitAndClickDocSearchTitle, waitAndClickEdit, waitAndClickKRAD, waitAndClickLogout, waitAndClickLogout, waitAndClickMainMenu, waitAndClickReturnValue, waitAndClickSave, waitAndClickSearch2, waitAndClickSubmit, waitAndClickXMLIngester, waitAndCreateNew, waitAndType, waitAndType, waitAndType, waitAndTypeByName, waitAndTypeByXpath, waitAndTypeByXpath, waitFor, waitForDocId, waitForElementPresent, waitForElementPresentByName, waitForElementPresentByXpath, waitForElementVisible, waitForPageToLoad, waitForTitleToEqualKualiPortalIndex, waitForTitleToEqualKualiPortalIndex, waitIsVisible, waitIsVisible, waitIsVisibleByXpath, waitNotVisible, waitNotVisibleByXpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOKMARK_URL

public static final String BOOKMARK_URL
http://env12.rice.kuali.org/portal.do?channelTitle=XML%20Ingester&channelUrl=http://env12.rice.kuali.org/kew/../core/Ingester.do

Constructor Detail

XMLIngesterAbstractSmokeTestBase

public XMLIngesterAbstractSmokeTestBase()
Method Detail

newTempFile

protected abstract File newTempFile(String name)
                             throws IOException
Parameters:
name - of temp file to create
Returns:
tempFile
Throws:
IOException

getTemplateDir

protected String getTemplateDir()
DIR_TMPL

Specified by:
getTemplateDir in class FreemarkerSTBase
Returns:

getTestUrl

public String getTestUrl()
Nav tests start at ITUtil.PORTAL. Bookmark Tests should override and return BOOKMARK_URL Navigation tests should return ITUtil.PORTAL. Bookmark tests should return BOOKMARK_URL.

Specified by:
getTestUrl in class WebDriverLegacyITBase
Returns:

getUserName

public String getUserName()
"admin" xml ingestion requires admin permissions. "admin" by default. Can be overridden using WebDriverLegacyITBase.REMOTE_PUBLIC_USER_PROPERTY

Overrides:
getUserName in class WebDriverLegacyITBase
Returns:

navigate

protected void navigate(Failable failable)
                 throws Exception
go to the getMenuLinkLocator() Menu and click the getLinkLocator()

Throws:
Exception

testIngestionNav

protected void testIngestionNav(Failable failable)
                         throws Exception
Navigate to the page under test and call testIngestion(edu.samplu.common.Failable)

Parameters:
failable - Failable
Throws:
Exception

testIngestionBookmark

protected void testIngestionBookmark(Failable failable)
                              throws Exception
Throws:
Exception

testIngestion

protected void testIngestion(Failable failable)
                      throws Exception
Based on load user and groups manual tests; dynamically generates user and group file and loads into the xml ingester screen

Throws:
Exception

buildFileUploadList

protected List<File> buildFileUploadList()
                                  throws Exception
Throws:
Exception


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.