|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.atlassian.selenium.SeleniumTest com.atlassian.jira.webtest.selenium.JiraSeleniumTest com.atlassian.jira.webtest.selenium.ajaxuserpicker.AbstractTestAjaxUserPicker
public abstract class AbstractTestAjaxUserPicker
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest |
---|
JiraSeleniumTest.Check |
Field Summary | |
---|---|
protected static String |
ITEM_KEY
|
protected static String |
MULTI_CUSTOM_FIELD
|
protected static String |
MULTI_CUSTOM_FIELD_KEY
|
protected static String |
NOUSERPICKERUSER
|
protected static String |
READY_DROPDOWN_LOCATOR_TEMPLATE
|
Fields inherited from class com.atlassian.jira.webtest.selenium.JiraSeleniumTest |
---|
ADMIN_PASSWORD, ADMIN_USERNAME, backdoor, DROP_DOWN_WAIT, environmentData, HSP_1, logger, MKY_1, PAGE_LOAD_WAIT, PAGE_LOAD_WAIT_TIME, PRESENT_TO_VISIBLE_DELAY, VK_DOWN, VK_ESC, VK_UP |
Fields inherited from class com.atlassian.selenium.SeleniumTest |
---|
assertThat, client, config, recorder |
Constructor Summary | |
---|---|
AbstractTestAjaxUserPicker()
|
Method Summary | |
---|---|
protected void |
assertUsersShown(String key,
String[] shownUsers)
Asserts tthat a set of users in the know set are present and that the other knows users ARE not present |
protected void |
commonNegativeACAsserts(String fieldId)
|
protected void |
commonPostiveACAsserts(String fieldId)
|
protected TimedCondition |
dropDownReadyCondition(String fieldId)
|
String |
getCurrentSelectedACKey()
|
protected boolean |
isVisibleACDropDown(String fieldId)
|
protected void |
notPermittedACAsserts(String fieldId)
|
void |
onSetUp()
|
protected void |
restoreAjaxUserPickerData()
Restore data specific to this test. |
protected void |
testNotPermittedSimpleUserPicker(String fieldId)
|
protected void |
testSimpleUserPicker(String fieldId)
|
protected void |
waitForACDropDown(String fieldId,
int maxMillis)
Waits until the AC drop down is made visible or until the timeout finishes. |
protected void |
waitForACDropDownNotAppear(String fieldId,
int maxMillis)
|
Methods inherited from class com.atlassian.selenium.SeleniumTest |
---|
getRecorder, getSeleniumClient, setUp, tearDown |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface junit.framework.Test |
---|
countTestCases, run |
Field Detail |
---|
protected static final String NOUSERPICKERUSER
protected static final String MULTI_CUSTOM_FIELD
protected static final String ITEM_KEY
protected static final String MULTI_CUSTOM_FIELD_KEY
protected static final String READY_DROPDOWN_LOCATOR_TEMPLATE
Constructor Detail |
---|
public AbstractTestAjaxUserPicker()
Method Detail |
---|
public void onSetUp()
onSetUp
in class JiraSeleniumTest
protected void restoreAjaxUserPickerData()
protected void assertUsersShown(String key, String[] shownUsers)
key
- the key prefixshownUsers
- the users to check forprotected void waitForACDropDown(String fieldId, int maxMillis)
fieldId
- the JIRA form field namemaxMillis
- the time to waitprotected void waitForACDropDownNotAppear(String fieldId, int maxMillis)
protected boolean isVisibleACDropDown(String fieldId)
fieldId
- - the JIRA field name
protected TimedCondition dropDownReadyCondition(String fieldId)
public String getCurrentSelectedACKey()
protected void testNotPermittedSimpleUserPicker(String fieldId)
protected void testSimpleUserPicker(String fieldId)
protected void commonNegativeACAsserts(String fieldId)
protected void notPermittedACAsserts(String fieldId)
protected void commonPostiveACAsserts(String fieldId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |