public class Messages extends Object
Constructor and Description |
---|
Messages() |
Modifier and Type | Method and Description |
---|---|
static String |
format(String templateMessage,
Object... args)
Format given message with provided arguments
|
static String |
getMessage(String key)
Gets a message by key using the default resources bundle ('i18n/messages').
|
static String |
getMessage(String key,
String bundle)
Gets a message by key using the resources bundle given in parameters.
|
public static final String SUCCESS_MESSAGE
public static final String FAIL_MESSAGE_DEFAULT
public static final String WARNING_MESSAGE_DEFAULT
public static final String SUCCESS_MESSAGE_WITH_RESERVE
public static final String NOT_RUN_MESSAGE
public static final String SCENARIO_ERROR_MESSAGE_TYPE_NOT_IMPLEMENTED
public static final String SCENARIO_ERROR_MESSAGE_ILLEGAL_TAB_FORMAT
public static final String SCENARIO_ERROR_MESSAGE_SCENARIO_OUTLINE_IS_MANDATORY
public static final String CLI_YOU_MUST_CREATE_AN_APPLICATION_FIRST
public static final String THANK_YOU_FOR_YOUR_CONTRIBUTION
public static final String FAIL_MESSAGE_UNKNOWN_CREDENTIALS
public static final String FAIL_MESSAGE_HOME_PAGE_NOT_FOUND
public static final String FAIL_MESSAGE_LOGOUT
public static final String FAIL_MESSAGE_LIST
public static final String FAIL_MESSAGE_TEXT
public static final String FAIL_MESSAGE_UNABLE_TO_FIND_ELEMENT
public static final String FAIL_MESSAGE_ELEMENT_STILL_VISIBLE
public static final String FAIL_MESSAGE_UNABLE_TO_OPEN_A_NEW_WINDOW
public static final String FAIL_MESSAGE_UNABLE_TO_CALL_API_REST
public static final String FAIL_MESSAGE_UNABLE_TO_CALL_METICS_API_REST
public static final String FAIL_MESSAGE_UNABLE_TO_FIND_TEXT_IN_ELEMENT
public static final String FAIL_MESSAGE_UNABLE_TO_OPEN_APPLICATION
public static final String FAIL_MESSAGE_UNABLE_TO_OPEN_PAGE
public static final String FAIL_MESSAGE_ERROR_ON_INPUT
public static final String FAIL_MESSAGE_ERROR_CLEAR_ON_INPUT
public static final String FAIL_MESSAGE_UNEXPECTED_DATE
public static final String DATE_GREATER_THAN_TODAY
public static final String FAIL_MESSAGE_UNABLE_TO_OPEN_ON_CLICK
public static final String FAIL_MESSAGE_UNABLE_TO_PASS_OVER_ELEMENT
public static final String FAIL_MESSAGE_UNDEFINED_PAGE
public static final String FAIL_MESSAGE_EMPTY_MANDATORY_FIELD
public static final String FAIL_MESSAGE_WRONG_DATE_FORMAT
public static final String FAIL_MESSAGE_UNABLE_TO_SWITCH_WINDOW
public static final String FAIL_MESSAGE_UNABLE_TO_SWITCH_FRAME
public static final String FAIL_MESSAGE_UNABLE_TO_RETRIEVE_VALUE
public static final String FAIL_MESSAGE_UNABLE_TO_SELECT_RADIO_BUTTON
public static final String FAIL_MESSAGE_UNABLE_TO_CLOSE_APP
public static final String FAIL_MESSAGE_VALUE_NOT_AVAILABLE_IN_THE_LIST
public static final String FAIL_MESSAGE_WRONG_PAGE
public static final String FAIL_MESSAGE_EMPTY_DATA
public static final String FAIL_MESSAGE_EMPTY_DATAS
public static final String FAIL_MESSAGE_WRONG_EXPECTED_VALUE
public static final String FAIL_MESSAGE_UNABLE_TO_EVALUATE_XPATH
public static final String FAIL_MESSAGE_UNABLE_TO_CHECK_ELEMENT
public static final String FAIL_MESSAGE_EMPTY_FIELD
public static final String FAIL_MESSAGE_NOT_FOUND_ON_ALERT
public static final String FAIL_MESSAGE_ALERT_NOT_FOUND
public static final String FAIL_MESSAGE_ALERT_FOUND
public static final String FAIL_MESSAGE_UNABLE_TO_WRITE_MESSAGE_IN_RESULT_FILE
public static final String FAIL_MESSAGE_DOWNLOADED_FILE_NOT_FOUND
public static final String FAIL_MESSAGE_FILE_NOT_FOUND
public static final String FAIL_MESSAGE_FILE_NOT_MATCHES
public static final String FAIL_MESSAGE_UPLOADING_FILE
public static final String FAIL_MESSAGE_MAIL_ACTIVATION
public static final String FAIL_MESSAGE_CONTEXT_NOT_EQUALS
public static final String FAIL_MESSAGE_CONTEXT_NOT_EQUALS_IGNORE_CASE
public static final String FAIL_MESSAGE_CONTEXT_NOT_CONTAINS
public static final String FAIL_MESSAGE_DATE_FORMATTER
public static final String FAIL_MESSAGE_UNABLE_TO_GENERATE_RANDOM_VALUE
public static final String FAIL_MESSAGE_UNABLE_TO_COPY_VALUE
public static final String FAIL_MESSAGE_UNABLE_TO_CHANGE_VALUE
public static final String FAIL_MESSAGE_FORMAT
public static final String FAIL_MESSAGE_MATERIAL_UNABLE_TO_CHECK_ELEMENT
public static final String FAIL_MESSAGE_MATERIAL_UNABLE_TO_SELECT_RADIO_BUTTON
public static String format(String templateMessage, Object... args) throws TechnicalException
templateMessage
- Message to display before formattingargs
- ArgumentsTechnicalException
- if data input is wrong.public static String getMessage(String key)
key
- The key of the message to retrieve.Copyright © 2023 NoraUi. All rights reserved.