|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.com.atlassian.studio.haup.functests.HaupFuncTestBase
public class HaupFuncTestBase
Nested Class Summary | |
---|---|
static class |
HaupFuncTestBase.FailureListener
|
Field Summary | |
---|---|
protected static com.atlassian.crowd.pageobjects.CrowdTestedProduct |
CROWD_PRODUCT
|
protected static String |
JIRA_ADMIN_PASSWORD
|
protected static String |
JIRA_ADMIN_USERNAME
|
protected static int |
LICENSE_COUNT_BAMBOO
|
protected static int |
LICENSE_COUNT_CONFLUENCE
|
protected static int |
LICENSE_COUNT_FECRU
|
protected static int |
LICENSE_COUNT_JIRA
The license counts must match those defined in Studio's StudioEnvironmentData.STUDIO_HAUP_TEST_LICENSE . |
protected static String |
LICENSE_COUNT_UNLIMITED
|
protected static JiraTestedProduct |
PRODUCT
|
Constructor Summary | |
---|---|
HaupFuncTestBase()
|
Method Summary | |
---|---|
protected void |
assertMessages(AbstractHaupPage page,
String... expectedMessageExcerpts)
Asserts the page contains some messages. |
protected String |
getCrowdBackupFileName()
Returns the name of the crowd backup file to restore when the test is being setup. |
protected static String |
getCrowdSysadminPassword()
Get crowd sysadmin password as will be used in test. |
protected static String |
getCrowdSysadminUsername()
Get crowd sysadmin username as will be used in test. |
protected static String |
getJiraSysadminPassword()
Get jira sysadmin password as will be used in test. |
protected static String |
getJiraSysadminUsername()
Get jira sysadmin username as will be used in test. |
protected void |
loginToJira(String username,
String password)
Login to jira. |
protected void |
restoreJiraState(String backupFilename)
Restores Jira state using the given backup file. |
void |
setupTest()
|
void |
tearDownTest()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int LICENSE_COUNT_JIRA
StudioEnvironmentData.STUDIO_HAUP_TEST_LICENSE
.
protected static final int LICENSE_COUNT_CONFLUENCE
protected static final int LICENSE_COUNT_FECRU
protected static final int LICENSE_COUNT_BAMBOO
protected static final String LICENSE_COUNT_UNLIMITED
protected static JiraTestedProduct PRODUCT
protected static com.atlassian.crowd.pageobjects.CrowdTestedProduct CROWD_PRODUCT
protected static final String JIRA_ADMIN_USERNAME
protected static final String JIRA_ADMIN_PASSWORD
Constructor Detail |
---|
public HaupFuncTestBase()
Method Detail |
---|
public void setupTest()
public void tearDownTest()
protected String getCrowdBackupFileName()
protected void loginToJira(String username, String password)
protected void restoreJiraState(String backupFilename)
backupFilename
- name of the backup fileprotected static String getJiraSysadminUsername()
protected static String getJiraSysadminPassword()
protected static String getCrowdSysadminUsername()
protected static String getCrowdSysadminPassword()
protected void assertMessages(AbstractHaupPage page, String... expectedMessageExcerpts)
page
- HAUP pageexpectedMessageExcerpts
- a substring of each message that must be found in the page. Those substrings must be specific enough to prevent from
matching 2 messages (otherwise the behaviour is undefined - an AssertionError may be thrown).
AssertionError
- if the number of messages is different or if one message contains none of the strings given as parameter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |