java.lang.Object | ||||||
↳ | junit.framework.Assert | |||||
↳ | junit.framework.TestCase | |||||
↳ | net.sourceforge.jwebunit.WebTestCase | |||||
↳ | com.atlassian.jira.webtests.WebTestCaseWrapper | |||||
↳ | com.atlassian.jira.webtests.AbstractAtlassianWebTestCase | |||||
↳ | com.atlassian.jira.webtests.JIRAWebTest |
Known Direct Subclasses |
Known Indirect Subclasses |
This class is deprecated.
This is a legacy class that evolved as a result of a 'stuff every util into the base class' approach. It
is probably one of the fattest classes in the JIRA code base. It has been replaced by FuncTestCase
that attempts to separate its various
responsibilities into multiple helper classes. Always use FuncTestCase
for new func tests and attempt to migrate old tests
to use it whenever possible.
Base web test for JIRA. Extend this to make a functional test.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
JIRAWebTest.ParameterEnterer |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.atlassian.jira.functest.framework.FunctTestConstants
|
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
administration | Use this field to access the Administration helper in play
|
||||||||||
assertions | Use this field to access the Assertions helper in play
|
||||||||||
backdoor | Use this field to access the Backdoor helper in play,
which can make sly RPCs to the server. |
||||||||||
environmentData | Use this field to access the com.atlassian.jira.webtests.util.JIRAEnvironmentData in play | ||||||||||
form | Used to set form values in tests. | ||||||||||
issueTableAssertions | Use this field to access the IssueTableAssertions helper
in play
|
||||||||||
issueTableClient | |||||||||||
locator | Use this field to access the LocatorFactory in play
|
||||||||||
log | Use this field to access the com.atlassian.jira.testkit.client.log.FuncTestLogger in play | ||||||||||
navigation | Use this field to access the Navigation helper in play
|
||||||||||
page | Used to find out about the current HTML page that the test is on. | ||||||||||
parse | Use this field to access the Parser helper in play
|
||||||||||
text | Use this field to access the TextAssertions helper in
play
|
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.sourceforge.jwebunit.WebTestCase
| |||||||||||
From interface
com.atlassian.jira.functest.framework.FunctTestConstants
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
enable() instead.
| |||||||||||
This method is deprecated.
Enables sub-tasks. Use
enable()
instead.
| |||||||||||
This method is deprecated.
Use
enable(com.atlassian.jira.functest.framework.admin.TimeTracking.Mode)
instead.
| |||||||||||
Adds a component with the given name and component lead to the projectName with the given name.
| |||||||||||
Adds a component with the given name (and no lead) to the projectName with the given name.
| |||||||||||
Creates a global custom field for all issue types with the given details.
| |||||||||||
This method is deprecated.
please use
createIssue(String, String, String)
| |||||||||||
Adds an issue to the given project returning its key.
| |||||||||||
add issue without getting its issue key
| |||||||||||
This method is deprecated.
Use #addIssueType(String, String) - iconUrl no longer available from web.
| |||||||||||
Creates a custom issue type with the given properties.
| |||||||||||
Adds a stats portlet with the filter name
| |||||||||||
Adds an issue to the given project returning its key.
| |||||||||||
Adds the portlet with the given name up to the point where the portlet configuration form comes up.
| |||||||||||
This method is deprecated.
Use
addProject(String, String, String)
instead.
| |||||||||||
Adds a subtask with the given type and properties to the given issue.
| |||||||||||
This method is deprecated.
please use
createSubTask(String, String, String, String)
| |||||||||||
This method is deprecated.
Use
addTransition(String, String, String, String, String) instead.
| |||||||||||
This method is deprecated.
Use
addUser(String) instead.
| |||||||||||
This method is deprecated.
Use
addUser(String, String, String, String) instead.
| |||||||||||
This method is deprecated.
Use
addUserToGroup(String, String)
instead.
| |||||||||||
Adds a workflow with the given name and description.
| |||||||||||
Assert form element with fieldId has expectedValue
| |||||||||||
Assert form element with fieldId has expectedValue
| |||||||||||
Assert form element with fieldName has expectedValue
| |||||||||||
Assert form element with fieldName has expectedValue
| |||||||||||
Assert the form textarea has the expectedValue
| |||||||||||
Assert the form textarea has the expectedValue
| |||||||||||
This method is deprecated.
please use
assertLastChangeHistoryRecords(String, com.atlassian.jira.webtests.ztests.workflow.ExpectedChangeHistoryRecord)
| |||||||||||
Asserts that the link with the given id attribute exists and its href has the urlSubString
| |||||||||||
Asserts that the link with the given id attribute exists and its href ends with the given URL.
| |||||||||||
Asserts that the link with the given id attribute exists and its href does NOT have the urlSubString
| |||||||||||
Asserts that there exists a link on the current page with the given text the url of which has the given suffix.
| |||||||||||
This method is deprecated.
please use
assertLinkLocationEndsWith(String, String)
| |||||||||||
Asserts that the expectedValue has been selected for the form element with Id elementId.
| |||||||||||
Asserts that the expectedId has been selected for the form element with Id elementId.
| |||||||||||
A more robust version of
assertOptionsEqual(String, String[]) . | |||||||||||
This will try and restrive the given URL and assert that it fails to be retrieved.
| |||||||||||
Detects whether or not the passed regular expression matches the page.
| |||||||||||
This method is deprecated.
please use
assertTableCellHasText(com.meterware.httpunit.WebTable, int, int, String)
| |||||||||||
This method is deprecated.
please use
assertTableContainsRow(com.meterware.httpunit.WebTable, String[])
| |||||||||||
Asserts that the table has atleast one row matching the expectedRow
| |||||||||||
Asserts that the table has at least one row matching the expectedRow
| |||||||||||
Asserts that the table has no row in the table matching the expectedRow
| |||||||||||
Asserts that the table has no row in the table matching the expectedRow between minRow and the end of the table
| |||||||||||
Asserts that the table has no row in the table matching the expectedRow between minRow and maxRow
| |||||||||||
Asserts that the table has strictly 'n' number of rows in the table matching the expectedRow.
| |||||||||||
This method is deprecated.
please use
assertTableRowEquals(com.meterware.httpunit.WebTable, int, Object[])
| |||||||||||
Takes in a list of strings, iterates over them and asserts that each is *NOT* present
| |||||||||||
Takes in a list of strings, iterates over them and asserts that each is present
| |||||||||||
Check that the user with username is a member of the expectedGroupNames exactly.
| |||||||||||
This method is deprecated.
please use
assignIssue(String, String, String)
| |||||||||||
Associate a permission scheme with a project
| |||||||||||
This method is deprecated.
Use
associateWorkflowScheme(String, String) instead.
| |||||||||||
Clicks on the 'Cancel' button on any of the bulk change steps
| |||||||||||
selects the checkbox with id all
Used in the Step Choose Issues | |||||||||||
Chooses the Delete Operation radio button in the Step Choose Operation
| |||||||||||
Chooses the Edit Operation radio button in the Step Choose Operation
| |||||||||||
Clicks on the 'Confirm' button on the confirmation steps
| |||||||||||
simulates the clicking on bulk change all issues
| |||||||||||
simulates the clicking on bulk change current page of issues
| |||||||||||
Checks in step Confirmation of edit operation before confirming, whether or not the selected fields have been
made
DOES NOT goto the issues change log and check that they are changed after confirmation... | |||||||||||
Chooses the bulk action(s) you wish to perform on the selected issue.
| |||||||||||
Use
areVisibleTo(String, String) and
areNotVisibleTo(String, String)
instead. | |||||||||||
Chooses the Move Operation radio button in the Step Choose Operation
| |||||||||||
Chooses the Execute Worfklow Action radio button in the Step Choose Operation
| |||||||||||
Clear component lead
| |||||||||||
This method is deprecated.
Use
gotoAdminSection(com.atlassian.jira.functest.framework.Navigation.AdminSection)
| |||||||||||
This method is deprecated.
please use
clickOnNext()
| |||||||||||
This method is deprecated.
Use
copyWorkflow(String, String, String) instead.
| |||||||||||
Creates the Cloners link type that JIRA creates between cloned issues.
| |||||||||||
This method is deprecated.
Use
addGroup(String) instead.
| |||||||||||
Create a new permission scheme
| |||||||||||
This method is deprecated.
Use
addSubTaskType(String, String)
instead.
| |||||||||||
This method is deprecated.
Use
disable() instead.
| |||||||||||
This method is deprecated.
Use
disable() instead.
| |||||||||||
This method is deprecated.
Use
disable() instead.
| |||||||||||
Deletes the filter with the given name if it exists.
| |||||||||||
This method is deprecated.
Use
deleteIssue(String)
instead.
| |||||||||||
Deletes a permission scheme
| |||||||||||
Delete project with the given name
| |||||||||||
This method is deprecated.
Use
deleteSubTaskType(String) instead.
| |||||||||||
This method is deprecated.
Use
disable() instead
| |||||||||||
This method is deprecated.
use
displayAllIssues()
| |||||||||||
Simply dumps the web response, not necessarily because and error occurred.
| |||||||||||
Dumps the web response because a Throwable condition exists.
| |||||||||||
Modifies the issue type with the given id to have the given properties.
| |||||||||||
This method is deprecated.
iconUrl is no longer available from web, use
editIssueType(String, String, String, Long)
| |||||||||||
Modifies the issue type with the given id to have the given properties.
| |||||||||||
Gets the com.meterware.httpunit.FormControl with elementId in the specified form.
| |||||||||||
Get the single value of the field with elementId inside the form 'form'
| |||||||||||
Get the values of the field with elementId inside the form 'form'
| |||||||||||
Use
getId(String) instead. | |||||||||||
For the new framework version of this method, check out
getJiraJavaVersion()
| |||||||||||
Reads the HTML response text and finds the first group match for the given regex
| |||||||||||
Get the specified row from the table as a list of trimmed strings.
| |||||||||||
Go to the project summary page for the given project.
| |||||||||||
This method is deprecated.
Use
gotoAdmin() or even better gotoAdminSection(com.atlassian.jira.functest.framework.Navigation.AdminSection) instead.
If there is a specific method in Navigation to navigate to the admin page you want to go to,
this should be the preferred way of navigating to it.
e.g | |||||||||||
This method is deprecated.
please use
loadFilter(long)
| |||||||||||
This method is deprecated.
Use
gotoIssue(String)
instead.
| |||||||||||
Goes to the specified issue tab panel for the issue with issueKy directly.
| |||||||||||
Goes to the navigator section, or, if already in the section, does nothing.
| |||||||||||
Use
browseProject(String) instead. | |||||||||||
Goes to the specified project tab panel for the project with projectKey directly.
| |||||||||||
This method is deprecated.
Use
goTo() instead.
| |||||||||||
This method is deprecated.
Use
addGlobalPermission(GlobalPermissionKey, String) instead.
| |||||||||||
This method is deprecated.
broken do not use
| |||||||||||
This method is deprecated.
Use
addGroupPermission(Long, ProjectPermissionKey, String) from
permissionSchemes() instead.
| |||||||||||
This method is deprecated.
Use
addGroupPermission(Long, ProjectPermissionKey, String) from
permissionSchemes() instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as Long /the first argument.
| |||||||||||
This method is deprecated.
Use
grantPermissionToReporter(ProjectPermissionKey) instead.
| |||||||||||
This method is deprecated.
Use
grantPermissionToUserCustomFieldValue(ProjectPermissionKey, String) instead.
| |||||||||||
This method is deprecated.
Use
addProjectRolePermission(long, ProjectPermissionKey, long) from
permissionSchemes() instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as the first argument.
| |||||||||||
For the new framework version of this method, check out
isJavaBeforeJdk15()
| |||||||||||
Checks if a form element has the disabled flag set.
| |||||||||||
Checks if the current step in bulk change is: Choose Issues
| |||||||||||
Checks if the current step in bulk change is: Choose Operation
| |||||||||||
Checks if the current step in bulk change is: Confirmation.
| |||||||||||
This method is deprecated.
please use
assertStepOperationDetails()
| |||||||||||
Logs work on an issue.
| |||||||||||
Logs work on an issue.
| |||||||||||
This method is deprecated.
Use
login(String) ()} instead.
| |||||||||||
This method is deprecated.
Use
login(String, String) instead.
| |||||||||||
This method is deprecated.
Use
logout() instead.
| |||||||||||
action keys: Resolve = 1 Reopen a resolved issue = 702 Reopen a closed issue = 901 close an issue = 701
| |||||||||||
change the time tracking format (timetracking must be on before this call)
| |||||||||||
This method is deprecated.
User
removeGlobalPermission(GlobalPermissionKey, String) instead.
| |||||||||||
This method is deprecated.
Use
deleteGroup(String) instead.
| |||||||||||
This method is deprecated.
Use
removeGroupPermission(long, ProjectPermissionKey, String) from
permissionSchemes() instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as long /the first argument.
| |||||||||||
This method is deprecated.
Use
removeGroupPermission(long, ProjectPermissionKey, String) from
permissionSchemes() instead.
| |||||||||||
This method is deprecated.
Use
removeProjectRolePermission(long, ProjectPermissionKey, long) from
permissionSchemes() instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as the first argument.
| |||||||||||
This method is deprecated.
Use
removeUserFromGroup(String, String) instead.
| |||||||||||
This method is deprecated.
Since 5.0. Use
restoreBlankInstance()
instead.
| |||||||||||
This method is deprecated.
Use
restoreData(String) instead.
| |||||||||||
This restore uses the full Pico refresh the same as in Production.
| |||||||||||
Restores the data from the file name without making any english assertions.
| |||||||||||
Restores the data from the file name without making any english assertions.
| |||||||||||
The outer most edge of a JUnit Test.
| |||||||||||
Executes quicksearch with no search string to return all issues
| |||||||||||
checks a checkbox with cbox id, and confirms that is has been checked
| |||||||||||
This method is deprecated.
please use
setBaseUrl(String)
| |||||||||||
Selects the 'listValue' in the 'field' list and checks that the corresponding 'field' checkbox is selected
| |||||||||||
Set Component Assignee Options
| |||||||||||
Sets the component lead for a component in a project.
| |||||||||||
Set Project Lead
| |||||||||||
This method is deprecated.
Please use
setAllowUnassignedIssues(boolean)
instead.
| |||||||||||
This method is deprecated.
use new FuncTestCase way.
| |||||||||||
Goes to the given URL, submits the given button or logs the given message if the given button doesn't exist.
| |||||||||||
Checks whether the given table has a subtable matching the expectedSubTable.
| |||||||||||
Returns the row number (starting from 0) of the first row matching expectedRow on the table.
| |||||||||||
This method is deprecated.
since 7.0; only required during migration of 6.x HSQL installation to 7.x H2
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
addComment(String, String) instead.
| |||||||||||
This method is deprecated.
Use
addComment(String, String, String) instead.
| |||||||||||
Checks for a presence of the part of the link's URL
| |||||||||||
Check that certain fields have been indexed correctly.
| |||||||||||
Asserts that the Cache-control header in the response *is not* set to any one of "no-cache", "no-store" or
"must-revalidate".
| |||||||||||
Asserts that the Cache-control header in the response *is* set to any one of "no-cache", "no-store" or
"must-revalidate".
| |||||||||||
Turn on/off Project Roles + Groups visibility for comments and worklogs
| |||||||||||
This method assums that you have just submitted a long running task and that you need the taskId back.
| |||||||||||
This method is deprecated.
Use
addUserPermission(long, ProjectPermissionKey, String) from
permissionSchemes() instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as long /the first argument.
| |||||||||||
Logs a message in the atlassian-jira.log on the server
| |||||||||||
Logs work on the issue with the given key.
| |||||||||||
Sets the estimate on the current issue.
| |||||||||||
Override this to set up any com.meterware.httpunit.HttpUnitOptions that must be set before the net.sourceforge.jwebunit.WebTester is used
| |||||||||||
Checks if a particular table cell contains the link URL specified.
| |||||||||||
Same as
tableCellHasText(com.meterware.httpunit.WebTable, int, int, String) but if the text is an empty
string ("") than make sure the table cell trimmed is equal | |||||||||||
This method is deprecated.
use
assertTableCellHasText(com.meterware.httpunit.WebTable, int, int, String) instead.
| |||||||||||
The button name controls what to check for in terms of the progress bar UI.
| |||||||||||
Waits for the worflow activation "asynch" screens to finish and then puts it on the ListWorkflow page
| |||||||||||
Waits until a workflow scheme migration completes now that it runs asynchronously.
| |||||||||||
This method assumes that you have just submitted a long running task, and you know the task id of it.
| |||||||||||
A shortcut method to allow quick creation of
XPathLocator s |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.webtests.AbstractAtlassianWebTestCase
| |||||||||||
From class
com.atlassian.jira.webtests.WebTestCaseWrapper
| |||||||||||
From class
net.sourceforge.jwebunit.WebTestCase
| |||||||||||
From class
junit.framework.TestCase
| |||||||||||
From class
junit.framework.Assert
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.webtests.util.EnvironmentAware
| |||||||||||
From interface
junit.framework.Test
|
Use this field to access the Backdoor
helper in play,
which can make sly RPCs to the server.
Use this field to access the com.atlassian.jira.webtests.util.JIRAEnvironmentData in play
Use this field to access the IssueTableAssertions
helper
in play
Use this field to access the com.atlassian.jira.testkit.client.log.FuncTestLogger in play
This method is deprecated.
Use enable(com.atlassian.jira.functest.framework.admin.TimeTracking.Mode)
instead.
activate time Tracking
Adds a component with the given name and component lead to the projectName with the given name.
projectName | the name of the project. |
---|---|
name | the name of the component. |
componentLead | the username of the lead for the component, may be null for none. |
Adds a component with the given name (and no lead) to the projectName with the given name.
projectName | the name of the project. |
---|---|
name | the name of the component. |
Creates a global custom field for all issue types with the given details.
fieldType | use the constants CUSTOM_FIELD_TYPE*. |
---|---|
fieldName | a name for the field. |
This method is deprecated.
please use createIssue(String, String, String)
Adds an issue to the given project returning its key.
Adds an issue to the given project returning its key.
add issue without getting its issue key
This method is deprecated.
Use #addIssueType(String, String) - iconUrl no longer available from web.
Creates a custom issue type with the given properties. Make the name and description unique or things will be... interesting.
name | The name of the issue type. |
---|---|
desc | The description. |
Adds an issue to the given project returning its key. Different to addIssue(String, String, String, String, String, String[], String[], String[], String, String, String, String, String, String)
in that it expects
the username for assignTo instead of the full name. Not all features currently work, so beware.
Adds the portlet with the given name up to the point where the portlet configuration form comes up. Callers need to complete that form to finish adding the portlet.
portlet | name of the portlet as defined in the plugin config. |
---|
This method is deprecated.
Use addProject(String, String, String)
instead.
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".
name | the name of the project. |
---|---|
key | the project key. |
lead | the username of the project lead. |
Adds a subtask with the given type and properties to the given issue.
issueKey | the issue key of the parent. |
---|---|
subTaskType | the subtask issue type (try ISSUE_TYPE_SUB_TASK |
subTaskSummary | the summary of the subtask |
subTaskDescription | the description for the subtask |
originalEstimate | the estimated time to complete the subtask (subtasks must be turned on) |
This method is deprecated.
Use addUser(String)
instead.
Creates a user with the given username and the same password, fullname and an email address username@example.com
username | the username. |
---|
Adds a workflow with the given name and description.
workflow_name | name of the workflow. |
---|---|
workflow_desc | description of the workflow. |
Assert form element with fieldId has expectedValue
formNameOrId | Name or Id of the form |
---|---|
fieldId | id of the option (select/radio) field |
expectedValue | the expected value of the form |
Assert form element with fieldId has expectedValue
fieldId | id of the option (select/radio) field |
---|---|
expectedValue | the expected value of the form |
Assert form element with fieldName has expectedValue
fieldName | name of the field |
---|---|
expectedValue | the expected value of the field |
Assert form element with fieldName has expectedValue
formNameOrId | Name or Id of the form |
---|---|
fieldName | name of the field |
expectedValue | the expected value of the field |
Assert the form textarea has the expectedValue
fieldId | id of the textarea to check |
---|---|
expectedValue | the expected value of the textarea |
Assert the form textarea has the expectedValue
formNameOrId | Name or Id of the form |
---|---|
fieldId | id of the textarea to check |
expectedValue | the expected value of the textarea |
This method is deprecated.
please use assertLastChangeHistoryRecords(String, com.atlassian.jira.webtests.ztests.workflow.ExpectedChangeHistoryRecord)
Checkts that the last change history of the issue (with given issueKey) has an entry for the field with the original and new value
issueKey | Which issue to check |
---|---|
field | The issue field as displayed on the change history |
originalValue | The expected original value for the change history |
newValue | The expected new value for the change history |
Asserts that the link with the given id attribute exists and its href has the urlSubString
linkId | the id attribute. |
---|---|
urlSubString | the expected sub-string of the href of the link. |
Asserts that the link with the given id attribute exists and its href ends with the given URL.
linkId | the id attribute. |
---|---|
urlSuffix | the expected suffix of the href of the link. |
Asserts that the link with the given id attribute exists and its href does NOT have the urlSubString
linkId | the id attribute. |
---|---|
urlSubString | the sub-string that should not appear in the href of the link. |
Asserts that there exists a link on the current page with the given text the url of which has the given suffix.
linkText | the link text. |
---|---|
strings | the expected portions of the URL in the link. |
This method is deprecated.
please use assertLinkLocationEndsWith(String, String)
Asserts that there exists a link on the current page with the given text the url of which has the given suffix.
linkText | the link text. |
---|---|
urlSuffix | the expected url suffix. |
Asserts that the expectedValue has been selected for the form element with Id elementId. use assertOptionSelectedById(String, String)
to check if an id has been selected
elementId | id of the option (select/radio) field |
---|---|
expectedValue | the expected value (the display name) to be selected |
Asserts that the expectedId has been selected for the form element with Id elementId. use assertOptionSelected(String, String)
to check if a specific value has been selected
elementId | id of the option (select/radio) field |
---|---|
expectedId | the expected id to be selected |
A more robust version of assertOptionsEqual(String, String[])
. This version is different in that, it
does not care about the ordering (So its workable with different JDKs or when you dont know/care about the
order).
This will try and restrive the given URL and assert that it fails to be retrieved.
assertionMessage | the assertion message |
---|---|
url | the url to the page we DONT want to exist |
Detects whether or not the passed regular expression matches the page.
regex | the regular expression to match. |
---|---|
multiline | true iff the regex should match across lines, false otherwise. |
This method is deprecated.
please use assertTableCellHasText(com.meterware.httpunit.WebTable, int, int, String)
This method is deprecated.
please use assertTableContainsRow(com.meterware.httpunit.WebTable, String[])
Asserts that the table has at least one row matching the expectedRow
table | table to check for the expectedRow |
---|---|
expectedRow | the row to look for |
Asserts that the table has atleast one row matching the expectedRow
table | table to check for the expectedRow |
---|---|
minRow | the starting row to look for the expectedRow (inclusive) |
expectedRow | the row to look for |
Asserts that the table has at least one row matching the expectedRow
table | table to check for the expectedRow |
---|---|
minRow | the starting row to look for the expectedRow (inclusive) |
maxRow | the last row to look for the expectedRow (exclusive) |
expectedRow | the row to look for |
Asserts that the table has no row in the table matching the expectedRow
table | table to check the expectedRow does not exist in |
---|---|
expectedRow | the row that should not be in the table |
Asserts that the table has no row in the table matching the expectedRow between minRow and the end of the table
table | table to check the expectedRow does not exist in |
---|---|
minRow | the starting row index (inclusive) |
expectedRow | the row that should not be in the table |
Asserts that the table has no row in the table matching the expectedRow between minRow and maxRow
table | table to check the expectedRow does not exist in |
---|---|
minRow | the starting row index (inclusive) |
maxRow | the ending row index (exclusive) |
expectedRow | the row that should not be in the table |
Asserts that the table has strictly 'n' number of rows in the table matching the expectedRow. ie. checks there are 'n' and only 'n' number of matching rows.
table | table to check the expectedRow exist in |
---|---|
n | the number of times the expectedRow should appear in the table |
expectedRow | the row that should be in the table |
This method is deprecated.
please use assertTableRowEquals(com.meterware.httpunit.WebTable, int, Object[])
Assert that the specified row of the table is equal to the expectedRow
table | table to look up the row |
---|---|
row | the row number of the table to compare |
expectedRow | the expected row to match |
Takes in a list of strings, iterates over them and asserts that each is *NOT* present
iterable | of strings |
---|
Takes in a list of strings, iterates over them and asserts that each is present
iterable | of strings |
---|
Check that the user with username is a member of the expectedGroupNames exactly.
username | username of the user to check group membership |
---|---|
expectedGroupNames | all the group names the user is expected to be a member of |
This method is deprecated.
please use assignIssue(String, String, String)
Assigns the given issue to the user with the given full name.
comment | the comment to leave on the assignment action - may be null for no comment. |
---|
Associate a permission scheme with a project
This method is deprecated.
Use associateWorkflowScheme(String, String)
instead.
project | the project name |
---|---|
workflow_scheme | the scheme name |
Clicks on the 'Cancel' button on any of the bulk change steps
selects the checkbox with id all
Used in the Step Choose Issues
Chooses the Delete Operation radio button in the Step Choose Operation
Chooses the Edit Operation radio button in the Step Choose Operation
Clicks on the 'Confirm' button on the confirmation steps
simulates the clicking on bulk change all issues
simulates the clicking on bulk change current page of issues
Checks in step Confirmation of edit operation before confirming, whether or not the selected fields have been
made
DOES NOT goto the issues change log and check that they are changed after confirmation... something to
consider testing...
fields | a map with field ids as keys and simple Strings as values. |
---|
Chooses the bulk action(s) you wish to perform on the selected issue.
if a field is not to be selected place
"" in place of it.
Used in Operation Details
fields | A map woth field ids as keys and field values (have to be simple Strings) as values. |
---|
Use areVisibleTo(String, String)
and
areNotVisibleTo(String, String)
instead.
Given a username, view the issue with issuekey
and assert that a given list of comments are visible
in the issue view and another given list of comments are not visible in issue view. NOTE: username must be the
same as the password
usernameAndPassword | - must be a valid login username/password combination where username = password |
---|---|
issueKey | - issuekey of issue comments we are checking |
expectedPresentComments | - List of comments in the form of strings that should be visible to the user when viewing that issue |
expectedAbsentComments | - List of comments in the form of strings that should *NOT* be visible to the user when viewing that issue |
Chooses the Move Operation radio button in the Step Choose Operation
Chooses the Execute Worfklow Action radio button in the Step Choose Operation
This method is deprecated.
Use gotoAdminSection(com.atlassian.jira.functest.framework.Navigation.AdminSection)
Note: this uses two http round-trips and can make tests slow.
This method is deprecated.
please use clickOnNext()
Clicks on the 'Next' button on any of the bulk change steps
Creates the Cloners link type that JIRA creates between cloned issues. If this link type does not exist the clone of teh issue is not linked to the original issue.
Create a new permission scheme
This method is deprecated.
Use addSubTaskType(String, String)
instead.
sub_task_name | name |
---|---|
sub_task_description | description |
This method is deprecated.
Use disable()
instead.
This method forces deactivation of the subtasks by removing all issues
Deletes the filter with the given name if it exists. Leaves you on the manage filter page.
filterName | name of the filter to delete. |
---|
Delete project with the given name
project | the project name. |
---|
This method is deprecated.
use displayAllIssues()
Executes quicksearch with no search string to return all issues
Simply dumps the web response, not necessarily because and error occurred.
Dumps the web response because a Throwable condition exists.
t | the Throwable in question |
---|
Modifies the issue type with the given id to have the given properties.
issueTypeId | the id of the issue type to edit. |
---|---|
name | the new name of the issue type. |
description | the new description of the issue type |
avatarId | the new avatar for issue type |
This method is deprecated.
iconUrl is no longer available from web, use editIssueType(String, String, String, Long)
Modifies the issue type with the given id to have the given properties.
issueTypeId | the id of the issue type to edit. |
---|---|
name | the new name of the issue type. |
description | the new description of the issue type |
Gets the com.meterware.httpunit.FormControl with elementId in the specified form.
form | name of the form to look for the element |
---|---|
elementId | the id of the element to get |
Get the single value of the field with elementId inside the form 'form'
form | form the field resides in |
---|---|
elementId | id of the field |
Get the values of the field with elementId inside the form 'form'
form | form the field resides in |
---|---|
elementId | id of the field |
Use getId(String)
instead.
issueKey | The keys of the issue in play. |
---|
For the new framework version of this method, check out getJiraJavaVersion()
Reads the HTML response text and finds the first group match for the given regex
regex | regex |
---|
MalformedPatternException | if regex is malformed |
---|
Get the specified row from the table as a list of trimmed strings.
table | table to get the row from |
---|---|
row | the row index starting from 0 to extract the row from |
Go to the project summary page for the given project.
project_name | the name of the project. |
---|
This method is deprecated.
Use gotoAdmin()
or even better gotoAdminSection(com.atlassian.jira.functest.framework.Navigation.AdminSection)
instead.
If there is a specific method in Navigation
to navigate to the admin page you want to go to,
this should be the preferred way of navigating to it.
e.g gotoDashboard()
Goes to the admin section, or, if already in the admin section, does nothing.
This method is deprecated.
please use loadFilter(long)
filterId | The id of the filter to load |
---|
This method is deprecated.
Use gotoIssue(String)
instead.
Goes to the view issue page
issueKey | the issue key |
---|
Goes to the specified issue tab panel for the issue with issueKy directly.
issueKey | issue key of the issue to see |
---|---|
issueTabName | valid issue tab names are: ISSUE_TAB_ALL ISSUE_TAB_COMMENTS
ISSUE_TAB_WORK_LOG ISSUE_TAB_CHANGE_HISTORY
|
Goes to the navigator section, or, if already in the section, does nothing.
Use browseProject(String)
instead.
key | The project key. |
---|
Goes to the specified project tab panel for the project with projectKey directly.
projectKey | project key of the project to see |
---|---|
projectTabName | valid project tab names are: PROJECT_TAB_OPEN_ISSUES PROJECT_TAB_ROAD_MAP PROJECT_TAB_CHANGE_LOG
|
This method is deprecated.
Use addGlobalPermission(GlobalPermissionKey, String)
instead.
Grant Global Permission for specified group
This method is deprecated.
broken do not use
broken method will be deleted ASAP
This method is deprecated.
Use addGroupPermission(Long, ProjectPermissionKey, String)
from
permissionSchemes()
instead.
Grant permission
This method is deprecated.
Use addGroupPermission(Long, ProjectPermissionKey, String)
from
permissionSchemes()
instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as Long
/the first argument.
Grant permission from default permission scheme.
This method is deprecated.
Use grantPermissionToUserCustomFieldValue(ProjectPermissionKey, String)
instead.
This method is deprecated.
Use addProjectRolePermission(long, ProjectPermissionKey, long)
from
permissionSchemes()
instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as the first argument.
For the new framework version of this method, check out isJavaBeforeJdk15()
Checks if a form element has the disabled flag set.
form | form the field resides in |
---|---|
elementId | id of the field |
Checks if the current step in bulk change is: Choose Issues
Checks if the current step in bulk change is: Choose Operation
Checks if the current step in bulk change is: Confirmation.
This method is deprecated.
please use assertStepOperationDetails()
Checks if the current step in bulk change is: Operation Details
Logs work on an issue. Note - this method requires activated time tracking
issueKey | the key of the issue to log work on. |
---|---|
timeLogged | the time in a suitible format for JIRA's current settings (e.g. 2d 1h 30m) |
Logs work on an issue. Note - this method requires activated time tracking
issueKey | the key of the issue to log work on. |
---|---|
timeLogged | the time in a suitible format for JIRA's current settings (e.g. 2d 1h 30m) |
comment | a comment to add for the work log - may be null to not leave a comment. |
This method is deprecated.
Use login(String)
()} instead.
Login as the user with the given username and identical password.
usernameAndPassword | the username and password duh. |
---|
action keys: Resolve = 1 Reopen a resolved issue = 702 Reopen a closed issue = 901 close an issue = 701
change the time tracking format (timetracking must be on before this call)
This method is deprecated.
User removeGlobalPermission(GlobalPermissionKey, String)
instead.
Remove Global Permission for specified group
This method is deprecated.
Use removeGroupPermission(long, ProjectPermissionKey, String)
from
permissionSchemes()
instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as long
/the first argument.
Remove permission from default permission scheme.
This method is deprecated.
Use removeGroupPermission(long, ProjectPermissionKey, String)
from
permissionSchemes()
instead.
Remove permssion for a particular scheme
This method is deprecated.
Use removeProjectRolePermission(long, ProjectPermissionKey, long)
from
permissionSchemes()
instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as the first argument.
This method is deprecated.
Since 5.0. Use restoreBlankInstance()
instead.
Restores the jira instance to one with no issues. Some projects have been created
This restore uses the full Pico refresh the same as in Production.
ie it does not do a "Quick Import".
fileName | XML Restore file |
---|
Restores the data from the file name without making any english assertions.
fileName | The name of the data file from which to restore the data |
---|
Restores the data from the file name without making any english assertions.
file | The data file from which to restore the data |
---|
Executes quicksearch with no search string to return all issues
checks a checkbox with cbox id, and confirms that is has been checked
Selects the 'listValue' in the 'field' list and checks that the corresponding 'field' checkbox is selected
Set Component Assignee Options
Sets the component lead for a component in a project.
project | the project key. |
---|---|
userName | the username of the lead. |
fullName | the full name of the lead - used for assertion that it worked! |
component | the component id. |
Set Project Lead
project | the project key. |
---|---|
username | the username of the project lead. |
This method is deprecated.
Please use setAllowUnassignedIssues(boolean)
instead.
Configure 'unassigned' issues option
This method is deprecated.
use new FuncTestCase way.
Goes to the given URL, submits the given button or logs the given message if the given button doesn't exist.
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 |
Checks whether the given table has a subtable matching the expectedSubTable.
table | table to check if it has the subtable |
---|---|
expectedSubTable | the subtable to look for |
Returns the row number (starting from 0) of the first row matching expectedRow on the table. minRow and maxRow limit the range of rows to look on the table. Uses #tableRowEquals(com.meterware.httpunit.WebTable, int, java.util.List) to determine if the rows match
table | table to look up the expectedRow |
---|---|
minRow | the starting row to look for the expectedRow (inclusive) |
maxRow | the last row to look for the expectedRow (exclusive) |
expectedRow | the row to look for |
This method is deprecated.
since 7.0; only required during migration of 6.x HSQL installation to 7.x H2
Check whether we are using HSQLDB as the DB -- assumes we are already logged in as the administrator
IOException |
---|
This method is deprecated.
Use addComment(String, String)
instead.
Adds the given comment to the current issue, making it visible to all who can see the issue.
comment | the comment body. |
---|
This method is deprecated.
Use addComment(String, String, String)
instead.
Adds a comment on the current issue on the given role level or no level restriction (all users)
comment | the comment body. |
---|---|
roleLevel | role level, null does not select any role level |
Checks for a presence of the part of the link's URL
linkPart | part of the link's URL that needs to be present |
---|
Check that certain fields have been indexed correctly. This will move to the XML Index View of a given issuekey, then execute some xpath to assert that the index is in order.
path | xpath expression of the base node we are checking. Eg: "//item" |
---|---|
expectedItemNodes | Map containing key (xpath expression starting from path) : value (the expected value). For example: "description" : "some description" |
unexpectedItemNodes | List of nodes from path that are *not* expected to be present. For example, if the //item/[environment = "some environment"] should NOT be found, then the map would be: "environment" : "some environment" |
issueKey | issue key of item we are checking. Eg: "HSP-1" |
Asserts that the Cache-control header in the response *is not* set to any one of "no-cache", "no-store" or "must-revalidate". The choice of these 3 headers is directly related to the implementation of com.atlassian.core.filters.AbstractEncodingFilter.setNonCachingHeaders(HttpServletResponse)
Asserts that the Cache-control header in the response *is* set to any one of "no-cache", "no-store" or "must-revalidate". The choice of these 3 headers is directly related to the implementation of com.atlassian.core.filters.AbstractEncodingFilter.setNonCachingHeaders(HttpServletResponse)
SAXException |
---|
Turn on/off Project Roles + Groups visibility for comments and worklogs
enable | true = enable, false = disable |
---|
This method assums that you have just submitted a long running task and that you need the taskId back. It does not acknowledge the task in in way
This method is deprecated.
Use addUserPermission(long, ProjectPermissionKey, String)
from
permissionSchemes()
instead and
pass {@value FunctTestConstants#DEFAULT_PERM_SCHEME_ID} as long
/the first argument.
Grants a Permissions
constant to the specified user to the default permission
scheme. Only works in enterprise.
permission | a Permissions constant |
---|---|
username | the user who is |
Logs a message in the atlassian-jira.log on the server
Logs work on the issue with the given key.
issueKey | the key of the issue to log work on. |
---|---|
timeLogged | formatted time spent e.g. 1h 30m. |
newEstimate | formatted new estimate e.g. 1d 2h. |
Sets the estimate on the current issue.
time | formatted time estimate e.g. 3h 30m. |
---|
Override this to set up any com.meterware.httpunit.HttpUnitOptions that must be set before the net.sourceforge.jwebunit.WebTester is used
Checks if a particular table cell contains the link URL specified.
link | URL |
---|
Same as tableCellHasText(com.meterware.httpunit.WebTable, int, int, String)
but if the text is an empty
string ("") than make sure the table cell trimmed is equal
This method is deprecated.
use assertTableCellHasText(com.meterware.httpunit.WebTable, int, int, String)
instead.
Method that checks if a particular table cell contains the text specified.
The button name controls what to check for in terms of the progress bar UI.
- Acknowledge - means you started the task and its finished - Done means that some one else started the task and its finished - Refresh - means its submitted, maybe running and not finished
desiredTaskState | one of the above |
---|
Waits for the worflow activation "asynch" screens to finish and then puts it on the ListWorkflow page
targetWorkflowName | the name of the workflow. |
---|
Waits until a workflow scheme migration completes now that it runs asynchronously.
projectName | the name of the project to associate the worflow scheme to |
---|---|
targetWorkflowName | the name of the workflow scheme to associate the project to |
This method assumes that you have just submitted a long running task, and you know the task id of it.
taskId | the task to wait for until it is in acknowledge state |
---|
A shortcut method to allow quick creation of XPathLocator
s
xpathExpression | the xpath expression |
---|