Class: DatadogAPIClient::V1::SyntheticsBrowserTestFailureCode

Inherits:
Object
  • Object
show all
Includes:
BaseEnumModel
Defined in:
lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb,
lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb

Overview

Error code that can be returned by a Synthetic test.

Constant Summary collapse

API_REQUEST_FAILURE =
"API_REQUEST_FAILURE".freeze
ASSERTION_FAILURE =
"ASSERTION_FAILURE".freeze
DOWNLOAD_FILE_TOO_LARGE =
"DOWNLOAD_FILE_TOO_LARGE".freeze
ELEMENT_NOT_INTERACTABLE =
"ELEMENT_NOT_INTERACTABLE".freeze
EMAIL_VARIABLE_NOT_DEFINED =
"EMAIL_VARIABLE_NOT_DEFINED".freeze
EVALUATE_JAVASCRIPT =
"EVALUATE_JAVASCRIPT".freeze
EVALUATE_JAVASCRIPT_CONTEXT =
"EVALUATE_JAVASCRIPT_CONTEXT".freeze
EXTRACT_VARIABLE =
"EXTRACT_VARIABLE".freeze
FORBIDDEN_URL =
"FORBIDDEN_URL".freeze
FRAME_DETACHED =
"FRAME_DETACHED".freeze
INCONSISTENCIES =
"INCONSISTENCIES".freeze
INTERNAL_ERROR =
"INTERNAL_ERROR".freeze
INVALID_TYPE_TEXT_DELAY =
"INVALID_TYPE_TEXT_DELAY".freeze
INVALID_URL =
"INVALID_URL".freeze
INVALID_VARIABLE_PATTERN =
"INVALID_VARIABLE_PATTERN".freeze
INVISIBLE_ELEMENT =
"INVISIBLE_ELEMENT".freeze
LOCATE_ELEMENT =
"LOCATE_ELEMENT".freeze
"NAVIGATE_TO_LINK".freeze
OPEN_URL =
"OPEN_URL".freeze
PRESS_KEY =
"PRESS_KEY".freeze
SERVER_CERTIFICATE =
"SERVER_CERTIFICATE".freeze
SELECT_OPTION =
"SELECT_OPTION".freeze
STEP_TIMEOUT =
"STEP_TIMEOUT".freeze
SUB_TEST_NOT_PASSED =
"SUB_TEST_NOT_PASSED".freeze
TEST_TIMEOUT =
"TEST_TIMEOUT".freeze
TOO_MANY_HTTP_REQUESTS =
"TOO_MANY_HTTP_REQUESTS".freeze
UNAVAILABLE_BROWSER =
"UNAVAILABLE_BROWSER".freeze
UNKNOWN =
"UNKNOWN".freeze
UNSUPPORTED_AUTH_SCHEMA =
"UNSUPPORTED_AUTH_SCHEMA".freeze
UPLOAD_FILES_ELEMENT_TYPE =
"UPLOAD_FILES_ELEMENT_TYPE".freeze
UPLOAD_FILES_DIALOG =
"UPLOAD_FILES_DIALOG".freeze
UPLOAD_FILES_DYNAMIC_ELEMENT =
"UPLOAD_FILES_DYNAMIC_ELEMENT".freeze
UPLOAD_FILES_NAME =
"UPLOAD_FILES_NAME".freeze

Class Method Summary collapse

Instance Method Summary collapse

Methods included from BaseEnumModel

included

Class Method Details

.build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



58
59
60
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb', line 58

def self.build_from_hash(value)
  new.build_from_hash(value)
end

Instance Method Details

#build_from_hash(value) ⇒ String

Builds the enum from string

Parameters:

  • The (String)

    enum value in the form of the string

Returns:

  • (String)

    The enum value



65
66
67
68
# File 'lib/datadog_api_client/v1/models/synthetics_browser_test_failure_code.rb', line 65

def build_from_hash(value)
  constantValues = SyntheticsBrowserTestFailureCode.constants.select { |c| SyntheticsBrowserTestFailureCode::const_get(c) == value }
  constantValues.empty? ? DatadogAPIClient::V1::UnparsedObject.new(value) : value
end