com.atlassian.jira.functest.framework
Class AbstractFuncTestUtil

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
All Implemented Interfaces:
FuncTestLogger
Direct Known Subclasses:
AbstractNavigationUtil, AdministrationImpl, AdminTabsImpl, AdvancedApplicationPropertiesImpl, AssertionsImpl, AsynchronousTasks, AttachmentsImpl, CustomFieldsImpl, CvsModulesImpl, EditNotificationsImpl, EnvironmentUtils, FieldConfigurationSchemesImpl, FieldConfigurationsImpl, FieldScreenAssociationsImpl, FilterParserImpl, FuncTestCaseJiraSetup, GeneralConfigurationImpl, IssueNavigatorParserImpl, IssueParserImpl, IssueSecurityLevelImpl, IssueSecuritySchemesImpl, JiraFormAssertionsImpl, JiraMessageAssertionsImpl, LabelAssertionsImpl, LinkAssertionsImpl, NavigationImpl, NotificationSchemesImpl, ParserImpl, PermissionSchemesImpl, PluginsImpl, ProjectImpl, ProjectImportImpl, ResolutionsImpl, RolesImpl, SubtasksImpl, SystemInfoParserImpl, TableAssertions, TextAssertionsImpl, TimeTrackingImpl, URLAssertionsImpl, UserAssertions, UserProfileImpl, ViewFieldScreensImpl, ViewIssueAssertions, ViewWorkflowsImpl, WorkflowSchemesImpl, WorkflowsImpl, WorkflowStepsImpl, WorkflowTransitionImpl

public class AbstractFuncTestUtil
extends Object
implements FuncTestLogger

A base class for func test utlity classes. Put commmon code in here.

Provides the abiltiy for the helpers to log and dump.

Since:
v3.13

Field Summary
protected  JIRAEnvironmentData environmentData
           
protected static String FS
           
protected  LocatorFactory locators
           
protected  FuncTestLogger logger
           
protected  int logIndentLevel
           
protected  net.sourceforge.jwebunit.WebTester tester
           
 
Constructor Summary
AbstractFuncTestUtil(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, int logIndentLevel)
           
 
Method Summary
protected  int childLogIndentLevel()
           
protected  Assertions getAssertions()
           
 JIRAEnvironmentData getEnvironmentData()
           
 FuncTestHelperFactory getFuncTestHelperFactory()
           
 FuncTestLogger getLogger()
           
 void log(Object logData)
          This will data via a String.valueOf(logData) in the specified object.
 void log(Throwable t)
           
protected  Navigation navigation()
           
protected  void submitAtPage(String url, String button, String logOnFail)
          Goes to the given URL, submits the given button or logs the given message if the given button doesn't exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FS

protected static final String FS

environmentData

protected JIRAEnvironmentData environmentData

tester

protected final net.sourceforge.jwebunit.WebTester tester

logger

protected final FuncTestLogger logger

locators

protected final LocatorFactory locators

logIndentLevel

protected final int logIndentLevel
Constructor Detail

AbstractFuncTestUtil

public AbstractFuncTestUtil(net.sourceforge.jwebunit.WebTester tester,
                            JIRAEnvironmentData environmentData,
                            int logIndentLevel)
Method Detail

childLogIndentLevel

protected final int childLogIndentLevel()

navigation

protected final Navigation navigation()

getAssertions

protected final Assertions getAssertions()

getEnvironmentData

public JIRAEnvironmentData getEnvironmentData()

getFuncTestHelperFactory

public FuncTestHelperFactory getFuncTestHelperFactory()

getLogger

public FuncTestLogger getLogger()

log

public void log(Object logData)
Description copied from interface: FuncTestLogger
This will data via a String.valueOf(logData) in the specified object.

Specified by:
log in interface FuncTestLogger
Parameters:
logData - the objct to log via String.valueOf().

log

public void log(Throwable t)
Specified by:
log in interface FuncTestLogger

submitAtPage

protected void submitAtPage(String url,
                            String button,
                            String logOnFail)
Goes to the given URL, submits the given button or logs the given message if the given button doesn't exist.

Parameters:
url - url to go to to submit the button
button - label on the button to submit at url
logOnFail - null or a message to log if button isn't found


Copyright © 2002-2012 Atlassian. All Rights Reserved.