com.atlassian.jira.functest.framework.admin
Class ViewWorkflowsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.admin.ViewWorkflowsImpl
All Implemented Interfaces:
ViewWorkflows, FuncTestLogger

public class ViewWorkflowsImpl
extends AbstractFuncTestUtil
implements ViewWorkflows

Default implementation of ViewWorkflows

Since:
v4.3

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
ViewWorkflowsImpl(net.sourceforge.jwebunit.WebTester tester, com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData, int logIndentLevel, Navigation navigation)
           
 
Method Summary
 ViewWorkflows addWorkflow(String name, String description)
          Add new workflow with given name and description.
 ViewWorkflows copyWorkflow(String nameToCopy, String newWorkflowName)
          Cope workflow with given nameToCopy as a new workflow named newWorkflowName.
 ViewWorkflows goTo()
          Go to 'Workflows' page.
 boolean isImportWorkflowFromXmlButtonPresent()
          Whether the import workflow from xml operation is available.
 ViewWorkflows launchDesigner(String workflowName)
          Launch the Workflow Designer for the given workflow
 WorkflowSteps workflowSteps(String workflowName)
          Go to 'Workflow steps' page for given workflow
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewWorkflowsImpl

public ViewWorkflowsImpl(net.sourceforge.jwebunit.WebTester tester,
                         com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
                         int logIndentLevel,
                         Navigation navigation)
Method Detail

goTo

public ViewWorkflows goTo()
Description copied from interface: ViewWorkflows
Go to 'Workflows' page.

Specified by:
goTo in interface ViewWorkflows
Returns:
this workflows instance

addWorkflow

public ViewWorkflows addWorkflow(String name,
                                 String description)
Description copied from interface: ViewWorkflows
Add new workflow with given name and description.

Specified by:
addWorkflow in interface ViewWorkflows
Parameters:
name - name of the new workflow
description - description of the new workflow
Returns:
this workflows instance

copyWorkflow

public ViewWorkflows copyWorkflow(String nameToCopy,
                                  String newWorkflowName)
Description copied from interface: ViewWorkflows
Cope workflow with given nameToCopy as a new workflow named newWorkflowName.

Specified by:
copyWorkflow in interface ViewWorkflows
Parameters:
nameToCopy - name of the workflow to copy (must exist)
newWorkflowName - name of the new workflow
Returns:
this workflows instance

workflowSteps

public WorkflowSteps workflowSteps(String workflowName)
Description copied from interface: ViewWorkflows
Go to 'Workflow steps' page for given workflow

Specified by:
workflowSteps in interface ViewWorkflows
Parameters:
workflowName - name of the workflow
Returns:
workflow steps

launchDesigner

public ViewWorkflows launchDesigner(String workflowName)
Description copied from interface: ViewWorkflows
Launch the Workflow Designer for the given workflow

Specified by:
launchDesigner in interface ViewWorkflows
Parameters:
workflowName - name of the workflow
Returns:
this workflows instance

isImportWorkflowFromXmlButtonPresent

public boolean isImportWorkflowFromXmlButtonPresent()
Description copied from interface: ViewWorkflows
Whether the import workflow from xml operation is available.

Specified by:
isImportWorkflowFromXmlButtonPresent in interface ViewWorkflows
Returns:
true, if the import workflow from xml operation is available; otherwise, false.


Copyright © 2002-2012 Atlassian. All Rights Reserved.