/** * The driver to use for the ParameterisedDriver for the given test class. * * @param testClassName the name of the current test class. * @return the parameter value, or the global default if not set. */ public static String getTestSeleniumParameterisedDriver(final String testClassName) { String driver = get().getString(TEST_SELENIUM_PARAMETERISED_DRIVER + "." + testClassName); return driver == null ? getTestSeleniumParameterisedDriver() : driver; }
/** * The default mime type for a file. * * @return the parameter value or application/octet-stream if not set. */ public static String getDefaultMimeType() { return get().getString(DEFAULT_MIME_TYPE, "application/octet-stream"); }
/** * Get the Html Icon class for the success icon. * * @return the parameter value, or "fa-check-circle" if not set. */ public static String getHtmlIconClassSuccess() { return get().getString(HTML_ICON_CLASS_SUCCESS, "fa-check-circle"); }
/** * Get the Html Icon class for the delete icon. * * @return the parameter value, or "fa-minus-square" if not set. */ public static String getHtmlIconClassDelete() { return get().getString(HTML_ICON_CLASS_DELETE, "fa-minus-square"); }
/** * Get the Html Icon class for the edit icon. * * @return the parameter value, or "fa-pencil" if not set. */ public static String getHtmlIconClassEdit() { return get().getString(HTML_ICON_CLASS_EDIT, "fa-pencil"); }
/** * The tracking cookie domain. * * @return the parameter value if set, or null if not set. */ public static String getTrackingCookieDomain() { return get().getString(TRACKING_COOKIE_DOMAIN); }
/** * The tracking data collection domain. * * @return the parameter value if set, or null if not set. */ public static String getTrackingDataCollectionDomain() { return get().getString(TRACKING_DATA_COLLECTION_DOMAIN); }
/** * The component for the PlainLauncher to launch. * * @return the parameter value if set, or null if not set. */ public static String getLdePlainLauncherComponentToLaunch() { return get().getString(LDE_PLAINLAUNCHER_COMPONENT_TO_LAUNCH); }
/** * The HTML body tag indicating the page is ready. * * @return the parameter value, or "data-wc-domready" if not set. */ public static String getTestSeleniumDataReadyTag() { return get().getString(TEST_SELENIUM_DATA_READY_TAG, "data-wc-domready"); }
/** * Get the Html Icon class for the help icon. * * @return the parameter value, or "fa-question-circle" if not set. */ public static String getHtmlIconClassHelp() { return get().getString(HTML_ICON_CLASS_HELP, "fa-question-circle"); }
/** * Whether to allow corrupt characters for XSLT processing. * * @return the parameter value, or false if not set. */ public static boolean getXsltAllowCorruptCharacters() { return get().getBoolean(XSLT_ALLOW_CORRUPT_CHARACTER, false); }
/** * The flag indicating whether developer debug is enabled. * * @return the parameter value if set, or false if not set. */ public static boolean getDeveloperDebugEnabled() { return get().getBoolean(DEVELOPER_DEBUG_ENABLED, false); }
/** * The LDE server port. * * @return the parameter value if set, or 8080 if not set. */ public static int getLdeServerPort() { return get().getInt(LDE_SERVER_PORT, 8080); }
/** * The flag indicating whether the Selenium Tests are running in parallel methods. * * @return the parameter value, or false if not set. */ public static boolean getTestSeleniumParallelMethods() { return get().getBoolean(TEST_SELENIUM_PARALLEL_METHODS, false); }
/** * Flag for which bean logic will be used. * * @return whether to use the 'correct' bean logic, or true if null. * @deprecated Will be removed and correct logic always used. Projects should set this parameter to true. */ @Deprecated public static boolean getCorrectBeanLogic() { return get().getBoolean("bordertech.wcomponents.bean.logic.correct", true); }
/** * The response cache header settings for the given contentType. * * @param contentType the content type in the format 'type.[cache | nocache]', e.g. 'page.nocache'. * @return the parameter value if set, or null if not set. */ public static String getResponseCacheHeaderSettings(final String contentType) { String parameter = MessageFormat.format(RESPONSE_CACHE_HEADER_SETTINGS, contentType); return get().getString(parameter); }
/** * The LDE server Resource Web Docs Dir. * * @return the parameter value if set, or null if not set. */ public static String[] getLdeServerWebDocsResourcesDir() { return get().getStringArray(LDE_SERVER_WEBDOCS_RESOURCE_DIR); }
/** * The system properties to be set in the ParameterisedDriver. * * @return the parameter value, or empty Properties if null. */ public static Properties getTestSeleniumParameterisedDriverSysProperties() { return get().getProperties(TEST_SELENIUM_PARAMETERISED_DRIVER_SYS_PROPERTIES); }
/** * The LDE server Web Docs Dir. * * @return the parameter value if set, or null if not set. */ public static String[] getLdeServerWebDocsDir() { return get().getStringArray(LDE_SERVER_WEBDOCS_DIR); }
/** * The WebDriver capabilities for the given driver type. * * @param driverType the driver type. * @return the parameter value if set, or empty properties if not set. */ public static Properties getTestSeleniumDriverCapabilities(final String driverType) { String paramName = MessageFormat.format(TEST_SELENIUM_DRIVER_CAPABILITIES, driverType); return get().getProperties(paramName); }