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

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

public class IssuesControl
extends BackdoorControl<IssuesControl>

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

Since:
v5.0

Nested Class Summary
 
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
RestApiClient.Method
 
Field Summary
static long HSP_PROJECT_ID
           
static long MKY_PROJECT_ID
           
 
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
IssuesControl(JIRAEnvironmentData environmentData)
           
 
Method Summary
 void assignIssue(String issueKey, String username)
           
 com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(long projectId, String summary)
           
 com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(long projectId, String summary, String assignee)
           
 com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(String projectKey, String summary)
           
 com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(String projectKey, String summary, String assignee)
           
 IssuesControl loginAs(String username)
          Makes this client authenticate as the given user.
 IssuesControl loginAs(String username, String password)
          Makes this client authenticate as the given username and password.
 
Methods inherited from class com.atlassian.jira.functest.framework.backdoor.BackdoorControl
createResource, delete, get, get, get, getId, log, log, post
 
Methods inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient
anonymous, errorResponse, expanded, percentEncode, resourceRoot, setOf, toResponse, toResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HSP_PROJECT_ID

public static final long HSP_PROJECT_ID
See Also:
Constant Field Values

MKY_PROJECT_ID

public static final long MKY_PROJECT_ID
See Also:
Constant Field Values
Constructor Detail

IssuesControl

public IssuesControl(JIRAEnvironmentData environmentData)
Method Detail

createIssue

public com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(long projectId,
                                                                         String summary)

createIssue

public com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(String projectKey,
                                                                         String summary)

createIssue

public com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(long projectId,
                                                                         String summary,
                                                                         String assignee)

createIssue

public com.atlassian.jira.rest.api.issue.IssueCreateResponse createIssue(String projectKey,
                                                                         String summary,
                                                                         String assignee)

assignIssue

public void assignIssue(String issueKey,
                        String username)

loginAs

public IssuesControl loginAs(String username)
Description copied from class: RestApiClient
Makes this client authenticate as the given user. If this method is not called, this client will authenticate as ""admin"".

Overrides:
loginAs in class RestApiClient<IssuesControl>
Parameters:
username - a String containing the username
Returns:
this

loginAs

public IssuesControl loginAs(String username,
                             String password)
Description copied from class: RestApiClient
Makes this client authenticate as the given username and password. If this method is not called, this client will authenticate as ""admin"".

Overrides:
loginAs in class RestApiClient<IssuesControl>
Parameters:
username - a String containing the username
password - a String containing the passoword
Returns:
this


Copyright © 2002-2012 Atlassian. All Rights Reserved.