com.atlassian.jira.functest.framework.assertions.TextAssertions |
![]() |
Contains a number of methods that do "extended" functional test assertions involving text.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Asserts that at least one of the provided text strings is present in the locator.
| |||||||||||
This asserets that the regular expression pattern 'regexPattern' has at least one match somewhere inside 'srcText'
| |||||||||||
Synonym for
assertRegexMatch(String, String) that calls getText() on the provided
locator. | |||||||||||
Synonym for
assertRegexNoMatch(String, String) that calls getText() on the provided
locator. | |||||||||||
This asserets that the regular expression pattern 'regexPattern' has NO match somewhere inside 'srcText'
| |||||||||||
Synonym for
assertTextNotPresent(String, String) that calls getText() on the provided
locator. | |||||||||||
Asserts that 'expectedText' can NOT be found in 'srcText'.
| |||||||||||
Asserts that the given text cannot be found in the current page.
| |||||||||||
Asserts that 'expectedText' can be found in the current page.
| |||||||||||
Asserts that 'expectedText' can be found in 'srcText'.
| |||||||||||
Synonym for
assertTextPresent(String, String) that calls getText() on the provided
locator. | |||||||||||
Asserts that 'expectedText' can be found in the current page in a "HTML Encoded" form.
| |||||||||||
Asserts that 'expectedText' can be found in the current page exactly 'numOccurences' times.
| |||||||||||
Asserts that 'expectedText' can be found in 'srcText' exactly 'numOccurences' times.
| |||||||||||
Synonym for
assertTextPresentNumOccurences(String, String, int) that calls getText() on the provided
locator. | |||||||||||
Asserts that the text sequence 'expectedTextSequence' can be found in 'srcText'
| |||||||||||
Synonym for
assertTextSequence(String, String[]) that calls getText() on the provided
locator. | |||||||||||
Synonym for
assertTextSequence(String, String[]) that calls getText() on the provided
locator. | |||||||||||
Asserts that the text sequence 'expectedTextSequence' can be found in 'srcText'
|
Asserts that at least one of the provided text strings is present in the locator. Will throw an
AssertionError
if none are present.
locator | the source of the text |
---|---|
option1 | the expected text |
options | the expected texts |
This asserets that the regular expression pattern 'regexPattern' has at least one match somewhere inside 'srcText'
srcText | the text source to do the matching in |
---|---|
regexPattern | the regex pattern |
Synonym for assertRegexMatch(String, String)
that calls getText() on the provided
locator.
locator | the source of the teext |
---|---|
regexPattern | the regex pattern |
Synonym for assertRegexNoMatch(String, String)
that calls getText() on the provided
locator.
locator | the source of the teext |
---|---|
regexPattern | the regex pattern |
This asserets that the regular expression pattern 'regexPattern' has NO match somewhere inside 'srcText'
srcText | the text source to do the matching in |
---|---|
regexPattern | the regex pattern |
Synonym for assertTextNotPresent(String, String)
that calls getText() on the provided
locator.
locator | the source of the text |
---|---|
expectedText | the expected text |
Asserts that 'expectedText' can NOT be found in 'srcText'.
srcText | the text to search in |
---|---|
expectedText | the expected text |
Asserts that the given text cannot be found in the current page.
text | the expected text |
---|
Asserts that 'expectedText' can be found in the current page.
expectedText | the expected text |
---|
Asserts that 'expectedText' can be found in 'srcText'.
srcText | the text to search in |
---|---|
expectedText | the expected text |
Synonym for assertTextPresent(String, String)
that calls getText() on the provided
locator.
locator | the source of the text |
---|---|
expectedText | the expected text |
Asserts that 'expectedText' can be found in the current page in a "HTML Encoded" form.
The encoding expects <, >, ", ', and & to be encoded to appropriate HTML encoding.
expectedText | the expected text |
---|
Asserts that 'expectedText' can be found in the current page exactly 'numOccurences' times.
expectedText | the expected text |
---|---|
numOccurences | the number of times the expected text should occur; must be greater than 0. |
Asserts that 'expectedText' can be found in 'srcText' exactly 'numOccurences' times.
srcText | the text to search in |
---|---|
expectedText | the expected text |
numOccurences | the number of times the expected text should occur; must be greater than 0. |
Synonym for assertTextPresentNumOccurences(String, String, int)
that calls getText() on the provided
locator.
locator | the source of the text |
---|---|
expectedText | the expected text |
numOccurences | the number of times the expected text should occur; must be greater than 0. |
Asserts that the text sequence 'expectedTextSequence' can be found in 'srcText'
srcText | the text to search in |
---|---|
expectedTextSequence | the expected text sequence |
Synonym for assertTextSequence(String, String[])
that calls getText() on the provided
locator.
locator | the source of the text |
---|---|
expectedTextSequence | the expected text sequence |
Synonym for assertTextSequence(String, String[])
that calls getText() on the provided
locator.
locator | the source of the text |
---|---|
expected1 | the first expected text in the sequence |
expected2 | the rest of expected texts in the sequence |
Asserts that the text sequence 'expectedTextSequence' can be found in 'srcText'
srcText | the text to search in |
---|---|
expected1 | the first expected text in the sequence |
expected2 | the rest of expected texts in the sequence |