com.atlassian.jira.functest.framework.assertions.Assertions |
![]() |
A set of "extended" assertions within JIRA web functional testing. Also note we have a very similar interface
called TextAssertions
that deals with text assertions specifically.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Useful to check that a particular change history item exists for a given issue.
| |||||||||||
Useful to check that a number of change history items exist for a given issue.
| |||||||||||
Asserts that a given node does not exists
| |||||||||||
Asserts that a given node exists but does not contain the given text
| |||||||||||
Asserts that a given node exactly equals the given text
| |||||||||||
Asserts that a given node exists
| |||||||||||
Asserts that a given node contains the given text
| |||||||||||
Asserts that a given node does not exists
| |||||||||||
Asserts that a node does not exist under the xpath expression given
| |||||||||||
Asserts that a given node exists but does not contain the given text
| |||||||||||
Asserts that a node under the xpath expression given does not contain the given text
| |||||||||||
Asserts that a given node exactly equals the given text
| |||||||||||
Asserts that a node exists under the xpath expression given
| |||||||||||
Asserts that a given node exists
| |||||||||||
Asserts that a given node contains the given text
| |||||||||||
Asserts that a node under the xpath expression given contains the given text
| |||||||||||
Checks that a profile link with the given ID and link Text exists on the page.
| |||||||||||
Check that the button with the id provided has the text provided as its value.
| |||||||||||
Returns an object that can be used to make assertions on a specified group of comments.
| |||||||||||
This method is deprecated.
not strictly deprecated but shouldn't be used in the code you check into main repo.
| |||||||||||
Form assertions.
| |||||||||||
Return an object that can be used to make assertions about the navigator.
| |||||||||||
Returns an object that can be used to make assertions on the "View Issue" page.
| |||||||||||
HTML assertions.
| |||||||||||
Link assertions.
| |||||||||||
Text assertions.
|
Useful to check that a particular change history item exists for a given issue.
issueKey | The issue to check |
---|---|
expectedChangeHistoryRecord | A com.atlassian.jira.webtests.ztests.workflow.ExpectedChangeHistoryRecord item |
Useful to check that a number of change history items exist for a given issue.
issueKey | The issue to check |
---|---|
expectedChangeHistoryRecords | A list of com.atlassian.jira.webtests.ztests.workflow.ExpectedChangeHistoryRecords |
Asserts that a given node does not exists
id | the id of the node |
---|
Asserts that a given node exists but does not contain the given text
id | The id of the node to test |
---|---|
textToTest | The text to test for |
Asserts that a given node exactly equals the given text
id | The id of the node to test |
---|---|
textToTest | The text to test for |
Asserts that a given node exists
id | the id of the node |
---|
Asserts that a given node contains the given text
id | The id of the node to test |
---|---|
textToTest | The text to test for |
Asserts that a given node does not exists
locator | the locator for the node |
---|
Asserts that a node does not exist under the xpath expression given
xpath | The xpath expression to evaluate |
---|
Asserts that a given node exists but does not contain the given text
locator | The locator to test |
---|---|
textToTest | The text to test for |
Asserts that a node under the xpath expression given does not contain the given text
xpath | The xpath expression to evaluate |
---|---|
textToTest | The text to test for |
Asserts that a given node exactly equals the given text
locator | The locator that contains text |
---|---|
textToTest | The text to test for |
Asserts that a node exists under the xpath expression given
xpath | The xpath expression to evaluate |
---|
Asserts that a given node exists
locator | the locator for the node |
---|
Asserts that a given node contains the given text
locator | The locator that contains text |
---|---|
textToTest | The text to test for |
Asserts that a node under the xpath expression given contains the given text
xpath | The xpath expression to evaluate |
---|---|
textToTest | The text to test for |
Checks that a profile link with the given ID and link Text exists on the page. Also clicks the link and checks that the user's profile with linkText shows up.
id | The id of the profileLink |
---|---|
linkText | The Text of the profileLink (usually the user's full name). |
Check that the button with the id provided has the text provided as its value.
buttonId | The id of the button to locate |
---|---|
buttonText | The text the button should contain as its value |
Returns an object that can be used to make assertions on a specified group of comments.
comments | The comments that will be used in the assertions. |
---|
This method is deprecated.
not strictly deprecated but shouldn't be used in the code you check into main repo.
This will "dump" the current contents of the net.sourceforge.jwebunit.WebTester including the Throwable 'cause'.
DONT LEAVE THESE CALLS IN THE TESTS. You should really only use this if you are debugging your test code. if you dont remove them, then you will generate "unwarranted" test artifacts in Bamboo.
testCase | the TestCase in play |
---|---|
tester | the WebTester in play |
cause | an optional cause for dumping the response |
Form assertions. Shortcut for getJiraFormAssertions()
.
Return an object that can be used to make assertions about the navigator.
Returns an object that can be used to make assertions on the "View Issue" page.
It is assumed that you are already on the View Issue page.
If not, then use something like navigation.issue().viewIssue("RAT-1")
to get to the required Issue.
Link assertions. Shortcut for getLinkAssertions()
.
Text assertions. Shortcut for getTextAssertions()
.