public class ITUtil extends Object
WebDriverUtil
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_BASE_URL
http://localhost:8080/kr-dev
|
static String |
DEFAULT_BASE_URL_KRAD
http://localhost:8080/krad-dev
|
static String |
DIV_ERROR_LOCATOR
//div[@class='error']"
|
static String |
DIV_EXCOL_LOCATOR
//div[@class='msg-excol']
|
static String |
DOC_FORM_KEY
&docFormKey=
|
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 |
HIDE_RETURN_LINK
&hideReturnLink=true
|
static String |
HIDE_RETURN_LINK_FALSE
&hideReturnLink=false
|
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 |
KNS_LOOKUP_METHOD
/kr/lookup.do?methodToCall=start&businessObjectClassName=
|
static String |
KRAD_LOOKUP_METHOD
/kr-krad/lookup?methodToCall=start&dataObjectClassName=
|
static String |
KRAD_PORTAL
/kr-krad/kradsampleapp?viewId=KradSampleAppHome
|
static String |
KRAD_PORTAL_URL
/kr-krad/kradsampleapp?viewId=KradSampleAppHome
|
static String |
LABS
/kr-krad/labs?viewId=LabsMenuView
|
static String |
LABS_URL
ITUtil.getBaseUrlString() + LABS
|
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 String |
REMOTE_UIF_KNS
KNS
|
static String |
REMOTE_UIF_KRAD
KRAD
|
static String |
SHOW_MAINTENANCE_LINKS
&showMaintenanceLinks=true
|
Constructor and Description |
---|
ITUtil() |
Modifier and Type | Method and Description |
---|---|
static String |
blanketApprovalCleanUpErrorText(String errorText) |
protected static void |
checkForIncidentReport(String contents,
String linkLocator,
Failable failable,
String message) |
static String |
createUniqueDtsPlusTwoRandomChars() |
static String |
createUniqueDtsPlusTwoRandomCharsNot9Digits() |
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 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 remove the ats in an attempt to not cause Jenkins problems.
|
public static final String DEFAULT_BASE_URL
public static final String DEFAULT_BASE_URL_KRAD
public static final String DIV_ERROR_LOCATOR
public static final String DIV_EXCOL_LOCATOR
public static final String DONT_TEAR_DOWN_PROPERTY
public static final String DTS_TWO
public static final String HIDE_RETURN_LINK
public static final String HIDE_RETURN_LINK_FALSE
public static final String HUB_PROPERTY
public static final String HUB_DRIVER_PROPERTY
public static final String HUB_URL_PROPERTY
public static final String KRAD_LOOKUP_METHOD
public static final String KNS_LOOKUP_METHOD
public static final String KRAD_PORTAL
public static final String KRAD_PORTAL_URL
public static final String LABS
public static final String PORTAL
public static final String PORTAL_URL
public static final String PORTAL_URL_ENCODED
public static final String SHOW_MAINTENANCE_LINKS
public static final String REMOTE_PUBLIC_URL_PROPERTY
public static final String REMOTE_AUTOLOGIN_PROPERTY
public static final String REMOTE_UIF_KRAD
public static final String REMOTE_UIF_KNS
public static final String DOC_FORM_KEY
public ITUtil()
public static String blanketApprovalCleanUpErrorText(String errorText)
public static String createUniqueDtsPlusTwoRandomChars()
public static String createUniqueDtsPlusTwoRandomCharsNot9Digits()
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 String getBaseUrlString()
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 returnCopyright © 2005–2016 The Kuali Foundation. All rights reserved.