com.atlassian.jira.functest.framework
Class AbstractFuncTestUtil

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
All Implemented Interfaces:
com.atlassian.jira.testkit.client.log.FuncTestLogger
Direct Known Subclasses:
AbstractNavigationUtil, AdministrationImpl, AdminTabsImpl, AdvancedApplicationPropertiesImpl, AssertionsImpl, AsynchronousTasks, AttachmentsImpl, CustomFieldsImpl, CvsModulesImpl, EditNotificationsImpl, EnvironmentUtils, FieldConfigurationSchemesImpl, FieldConfigurationsImpl, FieldScreenAssociationsImpl, FilterParserImpl, FuncTestCaseJiraSetup, GeneralConfigurationImpl, HeaderImpl, 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, ViewWorkflowPage, ViewWorkflowsImpl, WorkflowDesignerPage, WorkflowsImpl, WorkflowStepsImpl, WorkflowTransitionImpl

public class AbstractFuncTestUtil
extends Object
implements com.atlassian.jira.testkit.client.log.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  com.atlassian.jira.testkit.client.log.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()
           
 com.atlassian.jira.testkit.client.log.FuncTestLogger getLogger()
           
 void log(Object logData)
           
 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 com.atlassian.jira.testkit.client.log.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 com.atlassian.jira.testkit.client.log.FuncTestLogger getLogger()

log

public void log(Object logData)
Specified by:
log in interface com.atlassian.jira.testkit.client.log.FuncTestLogger

log

public void log(Throwable t)
Specified by:
log in interface com.atlassian.jira.testkit.client.log.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-2013 Atlassian. All Rights Reserved.