public class AutomatedFunctionalTestUtils extends Object
WebDriverUtils
JiraAwareFailureUtils
or modified to be failed
in another classModifier and Type | Field and Description |
---|---|
static String |
DOC_FORM_KEY
&docFormKey=
|
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 |
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
WebDriverUtils.getBaseUrlString() + LABS
|
static String |
PORTAL
/portal.do
|
static String |
PORTAL_URL
WebDriverUtils.getBaseUrlString() + ITUtil.PORTAL
|
static String |
PORTAL_URL_ENCODED
URLEncoder.encode(PORTAL_URL)
|
static String |
REMOTE_UIF_KNS
KNS
|
static String |
REMOTE_UIF_KRAD
KRAD
|
static String |
SHOW_MAINTENANCE_LINKS
&showMaintenanceLinks=true
|
Constructor and Description |
---|
AutomatedFunctionalTestUtils() |
Modifier and Type | Method and Description |
---|---|
protected static void |
checkForIncidentReport(String contents,
String linkLocator,
String message,
JiraAwareFailable failable) |
static String |
createUniqueDtsPlusTwoRandomChars()
Creates a 13 digit time stamp with two random characters appended for use with fields that require unique values.
|
static String |
createUniqueDtsPlusTwoRandomCharsNot9Digits()
Creates a 13 digit time stamp with two random characters inserted into it to avoid the 9 continuous digit verification some fields use.
|
static String |
deLinespace(String contents) |
static void |
failOnInvalidUserName(String userName,
String contents,
JiraAwareFailable failable) |
protected static String |
freemarkerExceptionMessage(String contents,
String linkLocator,
String message) |
static String |
getHTML(String urlToRead) |
protected static String |
incidentReportMessage(String contents,
String linkLocator,
String message) |
static boolean |
isKradLogin()
Use the KRAD Login Screen or the old KNS Login Screen
|
static String |
prettyHttp(String baseUrl)
Append http:// if not present, remove trailing /.
|
protected static void |
processIncidentReport(String contents,
String linkLocator,
JiraAwareFailable failable,
String message) |
protected static String |
processIncidentReport(String contents,
String linkLocator,
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 DTS_TWO
public static final String HIDE_RETURN_LINK
public static final String HIDE_RETURN_LINK_FALSE
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_UIF_KRAD
public static final String REMOTE_UIF_KNS
public static final String DOC_FORM_KEY
public AutomatedFunctionalTestUtils()
public static String createUniqueDtsPlusTwoRandomChars()
createUniqueDtsPlusTwoRandomCharsNot9Digits()
public static String createUniqueDtsPlusTwoRandomCharsNot9Digits()
protected static void checkForIncidentReport(String contents, String linkLocator, String message, JiraAwareFailable failable)
protected static String incidentReportMessage(String contents, String linkLocator, String message)
public static String deLinespace(String contents)
public static void failOnInvalidUserName(String userName, String contents, JiraAwareFailable failable)
public static String prettyHttp(String baseUrl)
baseUrl
- protected static String freemarkerExceptionMessage(String contents, String linkLocator, String message)
protected static void processIncidentReport(String contents, String linkLocator, JiraAwareFailable failable, String message)
protected static String processIncidentReport(String contents, String linkLocator, String message)
public static String stackTrace(Throwable throwable)
throwable
- whose stack trace to returnpublic static boolean isKradLogin()
Use the KRAD Login Screen or the old KNS Login Screen
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.