com.atlassian.jira.functest.framework.backdoor
Class CustomFieldsControl

java.lang.Object
  extended by com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<T>
      extended by com.atlassian.jira.functest.framework.backdoor.BackdoorControl<CustomFieldsControl>
          extended by com.atlassian.jira.functest.framework.backdoor.CustomFieldsControl
All Implemented Interfaces:
FuncTestLogger

public class CustomFieldsControl
extends BackdoorControl<CustomFieldsControl>

Use this class from func/selenium/page-object tests that need to manipulate Custom fields.

Since:
v5.1
Author:
esusatyo

Nested Class Summary
static class CustomFieldsControl.CustomFieldRequest
           
static class CustomFieldsControl.CustomFieldResponse
           
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
RestApiClient.Method
 
Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
restPathRootLength
 
Fields inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
REST_VERSION
 
Constructor Summary
CustomFieldsControl(JIRAEnvironmentData environmentData)
           
 
Method Summary
 String createCustomField(String name, String description, String type, String searcherKey)
          Creates a new custom field
 void deleteCustomField(String customFieldId)
          Deletes a custom field
 
Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResource, delete, get, get, get, getId, log, log, post, post, post
 
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
anonymous, errorResponse, expanded, loginAs, loginAs, percentEncode, resourceRoot, setOf, toResponse, toResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldsControl

public CustomFieldsControl(JIRAEnvironmentData environmentData)
Method Detail

createCustomField

public String createCustomField(String name,
                                String description,
                                String type,
                                String searcherKey)
Creates a new custom field

Parameters:
name - the name of the custom field
description - the name of the custom field
type - the type of the custom field
searcherKey - the searcher key of the custom field

deleteCustomField

public void deleteCustomField(String customFieldId)
Deletes a custom field

Parameters:
customFieldId - The id of the custom field (e.g. customfield_10000)


Copyright © 2002-2012 Atlassian. All Rights Reserved.