public interface Assertions
TextAssertions that deals with text assertions specifically.| Modifier and Type | Method and Description |
|---|---|
void |
assertEquals(String failureMesg,
List expected,
List actual) |
void |
assertHttpStatusCode(com.atlassian.httpclient.api.HttpStatus code)
Check that the last response returned the provided HTTP status code.
|
void |
assertLastChangeHistoryRecords(String issueKey,
ExpectedChangeHistoryRecord expectedChangeHistoryRecord)
Useful to check that a particular change history item exists for a given issue.
|
void |
assertLastChangeHistoryRecords(String issueKey,
List expectedChangeHistoryRecords)
Useful to check that a number of change history items exist for a given issue.
|
void |
assertNewestChangeHistoryRecord(String issueKey,
String authorName,
List<ExpectedChangeHistoryItem> expectedChangeHistoryItems)
Useful to check if newest change history entry exists with proper values.
|
void |
assertNodeByIdDoesNotExist(String id)
Asserts that a given node does not exists
|
void |
assertNodeByIdDoesNotHaveText(String id,
String textToTest)
Asserts that a given node exists but does not contain the given text
|
void |
assertNodeByIdEquals(String id,
String textToTest)
Asserts that a given node exactly equals the given text
|
void |
assertNodeByIdExists(String id)
Asserts that a given node exists
|
void |
assertNodeByIdHasText(String id,
String textToTest)
Asserts that a given node contains the given text
|
void |
assertNodeDoesNotExist(Locator locator)
Asserts that a given node does not exists
|
void |
assertNodeDoesNotExist(String xpath)
Asserts that a node does not exist under the xpath expression given
|
void |
assertNodeDoesNotHaveText(Locator locator,
String textToTest)
Asserts that a given node exists but does not contain the given text
|
void |
assertNodeDoesNotHaveText(String xpath,
String textToTest)
Asserts that a node under the xpath expression given does not contain the given text
|
void |
assertNodeEquals(Locator locator,
String textToTest)
Asserts that a given node exactly equals the given text
|
void |
assertNodeExists(Locator locator)
Asserts that a given node exists
|
void |
assertNodeExists(String xpath)
Asserts that a node exists under the xpath expression given
|
void |
assertNodeHasText(Locator locator,
String textToTest)
Asserts that a given node contains the given text
|
void |
assertNodeHasText(String xpath,
String textToTest)
Asserts that a node under the xpath expression given contains the given text
|
void |
assertProfileLinkPresent(String id,
String linkText)
Checks that a profile link with the given ID and link Text exists on the page.
|
void |
assertSubmitButtonPresentWithText(String buttonId,
String buttonText)
Check that the button with the id provided has the text provided as its value.
|
CommentAssertions |
comments(Iterable<String> comments)
Returns an object that can be used to make assertions on a specified group of comments.
|
CommentAssertions |
comments(String... comments)
Returns an object that can be used to make assertions on a specified group of comments.
|
JiraFormAssertions |
forms()
Form assertions.
|
DashboardAssertions |
getDashboardAssertions() |
IssueNavigatorAssertions |
getIssueNavigatorAssertions()
Return an object that can be used to make assertions about the navigator.
|
JiraFormAssertions |
getJiraFormAssertions() |
JiraMessageAssertions |
getJiraMessageAssertions() |
LabelAssertions |
getLabelAssertions() |
LinkAssertions |
getLinkAssertions() |
ProjectFieldsAssertions |
getProjectFieldsAssertions() |
RequestAssertions |
getRequestAssertions() |
SidebarAssertions |
getSidebarAssertions() |
TableAssertions |
getTableAssertions() |
TextAssertions |
getTextAssertions() |
URLAssertions |
getURLAssertions() |
UserAssertions |
getUserAssertions() |
ViewIssueAssertions |
getViewIssueAssertions()
Returns an object that can be used to make assertions on the "View Issue" page.
|
HTMLAssertions |
html()
HTML assertions.
|
LinkAssertions |
link()
Link assertions.
|
PluginAssertions |
plugins()
Returns an object that can be used to make assertions about P2 plugins.
|
TextAssertions |
text()
Text assertions.
|
void assertLastChangeHistoryRecords(String issueKey, ExpectedChangeHistoryRecord expectedChangeHistoryRecord)
issueKey - The issue to checkexpectedChangeHistoryRecord - A ExpectedChangeHistoryRecord
itemvoid assertNewestChangeHistoryRecord(String issueKey, String authorName, List<ExpectedChangeHistoryItem> expectedChangeHistoryItems)
issueKey - - issue to check history entries inauthorName - - key name of the authorexpectedChangeHistoryItems - - A list of ExpectedChangeHistoryItem itemsvoid assertLastChangeHistoryRecords(String issueKey, List expectedChangeHistoryRecords)
issueKey - The issue to checkexpectedChangeHistoryRecords - A list of ExpectedChangeHistoryRecordsIssueNavigatorAssertions getIssueNavigatorAssertions()
ViewIssueAssertions getViewIssueAssertions()
navigation.issue().viewIssue("RAT-1") to get to the required Issue.IssueNavigation.viewIssue(String)DashboardAssertions getDashboardAssertions()
JiraFormAssertions getJiraFormAssertions()
JiraMessageAssertions getJiraMessageAssertions()
ProjectFieldsAssertions getProjectFieldsAssertions()
URLAssertions getURLAssertions()
TextAssertions getTextAssertions()
LinkAssertions getLinkAssertions()
LabelAssertions getLabelAssertions()
UserAssertions getUserAssertions()
TableAssertions getTableAssertions()
RequestAssertions getRequestAssertions()
SidebarAssertions getSidebarAssertions()
void assertProfileLinkPresent(String id, String linkText)
id - The id of the profileLinklinkText - The Text of the profileLink (usually the user's full name).void assertNodeExists(String xpath)
xpath - The xpath expression to evaluatevoid assertNodeDoesNotExist(String xpath)
xpath - The xpath expression to evaluatevoid assertNodeHasText(String xpath, String textToTest)
xpath - The xpath expression to evaluatetextToTest - The text to test forvoid assertNodeDoesNotHaveText(String xpath, String textToTest)
xpath - The xpath expression to evaluatetextToTest - The text to test forvoid assertNodeByIdExists(String id)
id - the id of the nodevoid assertNodeByIdDoesNotExist(String id)
id - the id of the nodevoid assertNodeByIdEquals(String id, String textToTest)
id - The id of the node to testtextToTest - The text to test forvoid assertNodeByIdHasText(String id, String textToTest)
id - The id of the node to testtextToTest - The text to test forvoid assertNodeByIdDoesNotHaveText(String id, String textToTest)
id - The id of the node to testtextToTest - The text to test forvoid assertNodeExists(Locator locator)
locator - the locator for the nodevoid assertNodeDoesNotExist(Locator locator)
locator - the locator for the nodevoid assertNodeEquals(Locator locator, String textToTest)
locator - The locator that contains texttextToTest - The text to test forvoid assertNodeHasText(Locator locator, String textToTest)
locator - The locator that contains texttextToTest - The text to test forvoid assertNodeDoesNotHaveText(Locator locator, String textToTest)
locator - The locator to testtextToTest - The text to test forvoid assertSubmitButtonPresentWithText(String buttonId, String buttonText)
buttonId - The id of the button to locatebuttonText - The text the button should contain as its valuevoid assertHttpStatusCode(com.atlassian.httpclient.api.HttpStatus code)
CommentAssertions comments(Iterable<String> comments)
comments - The comments that will be used in the assertions.CommentAssertions comments(String... comments)
comments - The comments that will be used in the assertions.HTMLAssertions html()
TextAssertions text()
getTextAssertions().LinkAssertions link()
getLinkAssertions().JiraFormAssertions forms()
getJiraFormAssertions().PluginAssertions plugins()
Copyright © 2002-2024 Atlassian. All Rights Reserved.