public class

ViewIssueAssertions

extends AbstractFuncTestUtil
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.assertions.ViewIssueAssertions

Class Overview

Makes assertions on the View Issue page.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
ViewIssueAssertions(WebTester tester, Assertions assertions, JIRAEnvironmentData environmentData)
Public Methods
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.
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public ViewIssueAssertions (WebTester tester, Assertions assertions, JIRAEnvironmentData environmentData)

Public Methods

public void assertAffectsVersionAbsent ()

public 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.

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().

Parameters
expected The expected Affects Version(s)

public void assertAffectsVersionsNone ()

Asserts that the value for the "Affects Version/s" field in this View Issue page is "None".

Alternative to calling assertAffectsVersions("None")

public void assertAssignee (String userFullName)

public 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.

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().

Parameters
expected The expected component(s)

public void assertComponentsAbsent ()

public void assertComponentsNone ()

public void assertCustomFieldValue (String fieldId, String expected)

Asserts the value for a custom field.

Parameters
fieldId the field id e.g. customfield_10000
expected The expected value

public void assertEnvironmentEquals (String expected)

public void assertFixVersionAbsent ()

public 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.

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().

Parameters
expected The expected version(s)

public void assertFixVersionsNone ()

Asserts that the value for the "Fix Version/s" field in this View Issue page is "None".

Alternative to calling assertFixVersions("None")

public void assertInwardLinkNotPresent (String issueKey)

public void assertInwardLinkPresent (String issueKey)

public void assertOnViewIssuePage (String issueKey)

public void assertOutwardLinkNotPresent (String issueKey)

public void assertOutwardLinkPresent (String issueKey)

public void assertStatus (String expectedStatus)

Assert that current issue status is equal to expectedStatus.

Parameters
expectedStatus expected issue status

public void assertSummary (String summary)

public void assertTimeTrackingInfo (String original, String remaining, String logged)

Asserts the time tracking info shown in the module on the View Issue screen. Note: time tracking values should be in short-hand format e.g. 2h, 4d 35m

Parameters
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 String getAffectsVersionsText ()

Returns the Text for the "Affects Version/s" in this View Issue page.

Note that the text has whitespace collapsed, so it will return values like "1.0, 1.1, 2.0". If there are no affected versions set, then the value returned is whatever the page displays (currently "None").

Returns
  • the Text for the "Affects Version/s" in this View Issue page.

public String getComponentsText ()

public String getFixVersionsText ()

public List<String> getInwardLinks ()

Returns a list of Issue Keys that are inward links.

Returns
  • a list of Issue Keys that are inward links.

public List<String> getOutwardLinks ()

Returns a list of Issue Keys that are outward links.

Returns
  • a list of Issue Keys that are outward links.