com.atlassian.jira.functest.framework.backdoor
Class ProjectControl
java.lang.Object
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient<T>
com.atlassian.jira.functest.framework.backdoor.BackdoorControl<ProjectControl>
com.atlassian.jira.functest.framework.backdoor.ProjectControl
- All Implemented Interfaces:
- FuncTestLogger
public class ProjectControl
- extends BackdoorControl<ProjectControl>
Use this class from func/selenium/page-object tests that need to manipulate Projects.
See ProjectBackdoor for the code this plugs into at the back-end.
- Since:
- v5.0
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient.Method |
Fields inherited from class com.atlassian.jira.webtests.ztests.bundledplugins2.rest.client.RestApiClient |
REST_VERSION |
Constructor Summary |
ProjectControl(com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
|
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 |
ProjectControl
public ProjectControl(com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
addProject
public void addProject(String name,
String key,
String lead)
- Adds a project, or if a project with that name exists, does almost nothing.
Choose a project name that will not clash with operational links on the page
such as "View Projects" or "Add".
- Parameters:
name
- the name of the project.key
- the project key.lead
- the username of the project lead.
setPermissionScheme
public void setPermissionScheme(long projectId,
long schemeId)
- Sets the permission scheme for the given Project to be the given Scheme.
- Parameters:
projectId
- the id of the project.schemeId
- the id of the Permission Scheme.
setDefaultIssueType
public void setDefaultIssueType(long projectId,
String issueTypeId)
Copyright © 2002-2012 Atlassian. All Rights Reserved.