Class Overview
Default implementation of the LinkAssertions
interface.
Summary
Public Constructors |
|
LinkAssertionsImpl(WebTester tester, JIRAEnvironmentData environmentData)
|
Public Methods |
void
|
assertLinkAtNodeContains(String xpath, String containsUrl)
Assert that a link at specified xpath is present and location contains the given url.
|
void
|
assertLinkAtNodeEndsWith(String xpath, String endsWith)
Assert that a link at specified xpath is present and location ends with given url.
|
void
|
assertLinkByIdHasExactText(String linkId, String linkText)
Assert that link with given ID exists and matches exactly given text
|
void
|
assertLinkIdLocationEndsWith(String linkId, String endsWith)
Assert that the passed link's destination ends with a the passed value.
|
void
|
assertLinkIdLocationMatchesRegex(String linkId, String regex)
Assert that the passed link's destination matches the passed regex.
|
void
|
assertLinkIdQueryStringContainsJqlQuery(String linkId, String expectedJqlQuery)
|
void
|
assertLinkLocationEndsWith(WebLink link, String endsWith)
Assert that the passed link's destination ends with the passed value.
|
void
|
assertLinkLocationEndsWith(String linkText, String endsWith)
Assert that the passed link's destination ends with a the passed value.
|
void
|
assertLinkNotPresentContainingTextById(String regionId, String text)
Assert that a link containing the specified text is not present within the region located by regionId.
|
void
|
assertLinkNotPresentWithExactText(String xpath, String text)
Assert that a link with the specified text is not present within the region of the given locator.
|
void
|
assertLinkPresentWithExactText(String xpath, String text)
Assert that a link with the specified text is present within the region of the given locator.
|
void
|
assertLinkPresentWithExactTextById(String regionId, String text)
Assert that a link with the specified text is present within the region located by regionId.
|
void
|
assertLinkQueryStringContainsJqlQuery(WebLink link, String expectedJqlQuery)
|
void
|
assertLinkTextQueryStringContainsJqlQuery(String xpath, String linkText, String expectedJqlQuery)
|
void
|
assertLinkWithExactTextAndUrlPresent(String expectedExactText, String expectedUrlSuffix)
Assert that the page contains a link with exact text and a URL ending with the provided expecedUrlSuffix.
|
[Expand]
Inherited Methods |
From class
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
From interface
com.atlassian.jira.functest.framework.assertions.LinkAssertions
void
|
assertLinkAtNodeContains(String xpath, String containsUrl)
Assert that a link at specified xpath is present and location contains the given url.
|
void
|
assertLinkAtNodeEndsWith(String xpath, String endsWith)
Assert that a link at specified xpath is present and location ends with given url.
|
void
|
assertLinkByIdHasExactText(String linkId, String linkText)
Assert that link with given ID exists and matches exactly given text
|
void
|
assertLinkIdLocationEndsWith(String linkId, String endsWith)
Assert that the passed link's destination ends with a the passed value.
|
void
|
assertLinkIdLocationMatchesRegex(String linkId, String regex)
Assert that the passed link's destination matches the passed regex.
|
void
|
assertLinkIdQueryStringContainsJqlQuery(String linkId, String expectedJqlQuery)
|
void
|
assertLinkLocationEndsWith(WebLink link, String endsWith)
Assert that the passed link's destination ends with the passed value.
|
void
|
assertLinkLocationEndsWith(String linkText, String endsWith)
Assert that the passed link's destination ends with a the passed value.
|
void
|
assertLinkNotPresentContainingTextById(String regionId, String text)
Assert that a link containing the specified text is not present within the region located by regionId.
|
void
|
assertLinkNotPresentWithExactText(String xpath, String text)
Assert that a link with the specified text is not present within the region of the given locator.
|
void
|
assertLinkPresentWithExactText(String xpath, String text)
Assert that a link with the specified text is present within the region of the given locator.
|
void
|
assertLinkPresentWithExactTextById(String regionId, String text)
Assert that a link with the specified text is present within the region located by regionId.
|
void
|
assertLinkQueryStringContainsJqlQuery(WebLink link, String expectedJqlQuery)
|
void
|
assertLinkTextQueryStringContainsJqlQuery(String xpath, String linkText, String expectedJqlQuery)
|
void
|
assertLinkWithExactTextAndUrlPresent(String expectedExactText, String expectedUrlSuffix)
Assert that the page contains a link with exact text and a URL ending with the provided expecedUrlSuffix.
|
|
From interface
com.atlassian.jira.testkit.client.log.FuncTestLogger
|
Public Constructors
public
LinkAssertionsImpl
(WebTester tester, JIRAEnvironmentData environmentData)
Public Methods
public
void
assertLinkAtNodeContains
(String xpath, String containsUrl)
Assert that a link at specified xpath is present and location contains the given url.
Parameters
xpath
| the XPath query to specify the anchor element. The xpath expression should end with an A element |
containsUrl
| the expected url to be contained in the link's destination.
|
public
void
assertLinkAtNodeEndsWith
(String xpath, String endsWith)
Assert that a link at specified xpath is present and location ends with given url.
Note: consider using assertLinkAtNodeContains(String, String)
instead as it is less sensitive to breakages
caused by the addition of parameters such as XSRF token.
Parameters
xpath
| the XPath query to specify the anchor element. The xpath expression should end with an A element |
endsWith
| the expected end of the link's destination.
|
public
void
assertLinkByIdHasExactText
(String linkId, String linkText)
Assert that link with given ID exists and matches exactly given text
Parameters
linkId
| ID of the link |
linkText
| the text of the link to test.
|
public
void
assertLinkIdLocationEndsWith
(String linkId, String endsWith)
Assert that the passed link's destination ends with a the passed value.
Parameters
linkId
| the id to the link to check. |
endsWith
| the expected end of the link's destination.
|
public
void
assertLinkIdLocationMatchesRegex
(String linkId, String regex)
Assert that the passed link's destination matches the passed regex.
Parameters
linkId
| the id to the link to check. |
regex
| the regular expression to use in the test.
|
public
void
assertLinkIdQueryStringContainsJqlQuery
(String linkId, String expectedJqlQuery)
public
void
assertLinkLocationEndsWith
(WebLink link, String endsWith)
Assert that the passed link's destination ends with the passed value.
Parameters
link
| the link to test. |
endsWith
| the expected end of the link's destination.
|
public
void
assertLinkLocationEndsWith
(String linkText, String endsWith)
Assert that the passed link's destination ends with a the passed value.
Parameters
linkText
| the text of the link to test. |
endsWith
| the expected end of the link's destination.
|
public
void
assertLinkNotPresentContainingTextById
(String regionId, String text)
Assert that a link containing the specified text is not present within the region located by regionId.
Parameters
regionId
| the ID of the page section that should not contain the A element being searched for. |
text
| the text within the link.
|
public
void
assertLinkNotPresentWithExactText
(String xpath, String text)
Assert that a link with the specified text is not present within the region of the given locator.
Parameters
xpath
| the XPath query to narrow down the search. Should not contain the A element being searched for. |
text
| the text within the link.
|
public
void
assertLinkPresentWithExactText
(String xpath, String text)
Assert that a link with the specified text is present within the region of the given locator.
Parameters
xpath
| the XPath query to narrow down the search. Should not contain the A element being searched for. |
text
| the exact text within the link.
|
public
void
assertLinkPresentWithExactTextById
(String regionId, String text)
Assert that a link with the specified text is present within the region located by regionId.
Parameters
regionId
| the ID of the page section that should contain the A element being searched for. |
text
| the exact text within the link.
|
public
void
assertLinkQueryStringContainsJqlQuery
(WebLink link, String expectedJqlQuery)
public
void
assertLinkTextQueryStringContainsJqlQuery
(String xpath, String linkText, String expectedJqlQuery)
public
void
assertLinkWithExactTextAndUrlPresent
(String expectedExactText, String expectedUrlSuffix)
Assert that the page contains a link with exact text and a URL ending with the provided expecedUrlSuffix.
Parameters
expectedExactText
| expected exact text of the link |
expectedUrlSuffix
| expected URL suffix of the link
|