|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.AbstractFuncTestUtil com.atlassian.jira.functest.framework.assertions.ViewIssueAssertions
public class ViewIssueAssertions
Makes assertions on the View Issue page.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
---|
environmentData, FS, locators, logger, logIndentLevel |
Constructor Summary | |
---|---|
ViewIssueAssertions(net.sourceforge.jwebunit.WebTester tester,
Assertions assertions,
JIRAEnvironmentData environmentData)
|
Method Summary | |
---|---|
void |
assertAffectsVersionAbsent()
|
void |
assertAffectsVersions(String expected)
Asserts that the actual value for the "Affects Version/s" field in this View Issue page is equal to the given expected version. |
void |
assertAffectsVersionsNone()
Asserts that the value for the "Affects Version/s" field in this View Issue page is "None". |
void |
assertAssignee(String userFullName)
|
void |
assertComponents(String expected)
Asserts that the actual value for the "Component/s" field in this View Issue page is equal to the given expected component. |
void |
assertComponentsAbsent()
|
void |
assertComponentsNone()
|
void |
assertCustomFieldValue(String fieldId,
String expected)
Asserts the value for a custom field. |
void |
assertEnvironmentEquals(String expected)
|
void |
assertFixVersionAbsent()
|
void |
assertFixVersions(String expected)
Asserts that the actual value for the "Fix Version/s" field in this View Issue page is equal to the given expected version. |
void |
assertFixVersionsNone()
Asserts that the value for the "Fix Version/s" field in this View Issue page is "None". |
void |
assertInwardLinkNotPresent(String issueKey)
|
void |
assertInwardLinkPresent(String issueKey)
|
void |
assertOnViewIssuePage(String issueKey)
|
void |
assertOutwardLinkNotPresent(String issueKey)
|
void |
assertOutwardLinkPresent(String issueKey)
|
void |
assertStatus(String expectedStatus)
Assert that current issue status is equal to expectedStatus. |
void |
assertSummary(String summary)
|
void |
assertTimeTrackingInfo(String original,
String remaining,
String logged)
Asserts the time tracking info shown in the module on the View Issue screen. |
String |
getAffectsVersionsText()
Returns the Text for the "Affects Version/s" in this View Issue page. |
String |
getComponentsText()
|
String |
getFixVersionsText()
|
List<String> |
getInwardLinks()
Returns a list of Issue Keys that are inward links. |
List<String> |
getOutwardLinks()
Returns a list of Issue Keys that are outward links. |
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewIssueAssertions(net.sourceforge.jwebunit.WebTester tester, Assertions assertions, JIRAEnvironmentData environmentData)
Method Detail |
---|
public void assertOnViewIssuePage(String issueKey)
public void assertAssignee(String userFullName)
public void assertStatus(String expectedStatus)
expectedStatus
- expected issue statuspublic void assertOutwardLinkPresent(String issueKey)
public void assertOutwardLinkNotPresent(String issueKey)
public List<String> getOutwardLinks()
public void assertInwardLinkPresent(String issueKey)
public void assertInwardLinkNotPresent(String issueKey)
public List<String> getInwardLinks()
public void assertAffectsVersions(String expected)
If you expect multiple versions then you should separate them with a comma and space, eg "1.0, 1.1, 2.0". If
you expect no affected versions, then give the String "None", or use assertAffectsVersionsNone()
.
expected
- The expected Affects Version(s)getAffectsVersionsText()
,
assertFixVersions(String)
public void assertAffectsVersionsNone()
Alternative to calling assertAffectsVersions("None")
assertAffectsVersions(String)
public String getAffectsVersionsText()
assertAffectsVersions(String)
public void assertFixVersions(String expected)
If you expect multiple versions then you should separate them with a comma and space, eg "1.0, 1.1, 2.0". If
you expect no fix versions, then give the String "None", or use assertFixVersionsNone()
.
expected
- The expected version(s)getFixVersionsText()
,
assertAffectsVersions(String)
public void assertCustomFieldValue(String fieldId, String expected)
fieldId
- the field id e.g. customfield_10000
expected
- The expected valuepublic void assertFixVersionsNone()
Alternative to calling assertFixVersions("None")
assertFixVersions(String)
public String getFixVersionsText()
public void assertComponents(String expected)
If you expect multiple components then you should separate them with a comma and space, eg "1.0, 1.1, 2.0". If
you expect no components, then give the String "None", or use assertComponentsNone()
.
expected
- The expected component(s)public void assertComponentsNone()
assertComponents(String)
public String getComponentsText()
public void assertEnvironmentEquals(String expected)
public void assertTimeTrackingInfo(String original, String remaining, String logged)
2h
, 4d 35m
original
- the original estimate - the value that appears under "Estimated"remaining
- the remaining estimate - the value that appears under "Remaining"logged
- the time spent - the value that appears under "Logged"public void assertComponentsAbsent()
public void assertFixVersionAbsent()
public void assertAffectsVersionAbsent()
public void assertSummary(String summary)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |