|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.samplu.common.ITUtil
public class ITUtil
TODO:
Field Summary | |
---|---|
static String |
DEFAULT_BASE_URL
http://localhost:8080/kr-dev |
static String |
DEFAULT_WAIT_FOR_PAGE_TO_LOAD_TIMEOUT
"30000" |
static String |
DIV_ERROR_LOCATOR
//div[@class='error']" |
static String |
DIV_EXCOL_LOCATOR
//div[@class='msg-excol'] |
static String |
DONT_TEAR_DOWN_PROPERTY
remote.driver.dontTearDown |
static String |
DTS
Calendar.getInstance().getTimeInMillis() + "" |
static String |
DTS_TWO
Calendar.getInstance().getTimeInMillis() + "" + RandomStringUtils.randomAlphabetic(2).toLowerCase() |
static String |
HUB_DRIVER_PROPERTY
remote.public.driver |
static String |
HUB_PROPERTY
remote.public.hub |
static String |
HUB_URL_PROPERTY
http://localhost:4444/wd/hub |
static String |
JIRA_BROWSE_URL
https://jira.kuali.org/browse/ |
static String |
PORTAL
/portal.do |
static String |
PORTAL_URL
ITUtil.getBaseUrlString() + ITUtil.PORTAL |
static String |
PORTAL_URL_ENCODED
URLEncoder.encode(PORTAL_URL) |
static String |
REMOTE_AUTOLOGIN_PROPERTY
remote.autologin |
static String |
REMOTE_PUBLIC_URL_PROPERTY
remote.public.url |
static int |
WAIT_DEFAULT_SECONDS
60 |
Constructor Summary | |
---|---|
ITUtil()
|
Method Summary | |
---|---|
static String |
blanketApprovalCleanUpErrorText(String errorText)
|
protected static void |
checkForIncidentReport(String contents,
String linkLocator,
Failable failable,
String message)
|
static String |
deLinespace(String contents)
|
static boolean |
dontTearDownPropertyNotSet()
Setting the JVM arg remote.driver.dontTearDown to y or t leaves the browser window open when the test has completed. |
static void |
failOnInvalidUserName(String userName,
String contents,
Failable failable)
|
static void |
failOnMatchedJira(String contents,
Failable failable)
|
static String |
getBaseUrlString()
In order to run as a smoke test the ability to set the baseUrl via the JVM arg remote.public.url is required. |
static String |
getHTML(String urlToRead)
|
static String |
getHubUrlString()
In order to run as a smoke test under selenium grid the ability to set the hubUrl via the JVM arg remote.public.hub is required. |
static String |
prettyHttp(String baseUrl)
Append http:// if not present. |
protected static void |
processIncidentReport(String contents,
String linkLocator,
Failable failable,
String message)
|
static String |
stackTrace(Throwable throwable)
Write the given stack trace into a String |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_BASE_URL
public static final String PORTAL
public static final String PORTAL_URL
public static final String PORTAL_URL_ENCODED
public static final String DTS
public static final String DTS_TWO
public static final String DIV_ERROR_LOCATOR
public static final String DIV_EXCOL_LOCATOR
public static final int WAIT_DEFAULT_SECONDS
public static final String DEFAULT_WAIT_FOR_PAGE_TO_LOAD_TIMEOUT
public static final String REMOTE_PUBLIC_URL_PROPERTY
public static final String REMOTE_AUTOLOGIN_PROPERTY
public static final String HUB_PROPERTY
public static final String HUB_DRIVER_PROPERTY
public static final String HUB_URL_PROPERTY
public static final String DONT_TEAR_DOWN_PROPERTY
public static final String JIRA_BROWSE_URL
Constructor Detail |
---|
public ITUtil()
Method Detail |
---|
public static String blanketApprovalCleanUpErrorText(String errorText)
protected static void checkForIncidentReport(String contents, String linkLocator, Failable failable, String message)
public static String deLinespace(String contents)
public static boolean dontTearDownPropertyNotSet()
public static void failOnInvalidUserName(String userName, String contents, Failable failable)
public static void failOnMatchedJira(String contents, Failable failable)
public static String getBaseUrlString()
public static String getHTML(String urlToRead)
public static String getHubUrlString()
public static String prettyHttp(String baseUrl)
baseUrl
-
protected static void processIncidentReport(String contents, String linkLocator, Failable failable, String message)
public static String stackTrace(Throwable throwable)
throwable
- whose stack trace to return
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |