Class Test
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a condition that is evaluated.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The test's ARN.The test's result counters.When the test was created.Represents the total (metered or unmetered) minutes used by the test.A message about the test's result.getName()
The test's name.The test's result.The test's start time.The test's status.The test's stop time.getType()
The test's type.int
hashCode()
void
The test's ARN.void
setCounters
(Counters counters) The test's result counters.void
setCreated
(Date created) When the test was created.void
setDeviceMinutes
(DeviceMinutes deviceMinutes) Represents the total (metered or unmetered) minutes used by the test.void
setMessage
(String message) A message about the test's result.void
The test's name.void
setResult
(ExecutionResult result) The test's result.void
The test's result.void
setStarted
(Date started) The test's start time.void
setStatus
(ExecutionStatus status) The test's status.void
The test's status.void
setStopped
(Date stopped) The test's stop time.void
The test's type.void
The test's type.toString()
Returns a string representation of this object; useful for testing and debugging.The test's ARN.withCounters
(Counters counters) The test's result counters.withCreated
(Date created) When the test was created.withDeviceMinutes
(DeviceMinutes deviceMinutes) Represents the total (metered or unmetered) minutes used by the test.withMessage
(String message) A message about the test's result.The test's name.withResult
(ExecutionResult result) The test's result.withResult
(String result) The test's result.withStarted
(Date started) The test's start time.withStatus
(ExecutionStatus status) The test's status.withStatus
(String status) The test's status.withStopped
(Date stopped) The test's stop time.The test's type.The test's type.
-
Constructor Details
-
Test
public Test()
-
-
Method Details
-
setArn
The test's ARN.
- Parameters:
arn
- The test's ARN.
-
getArn
The test's ARN.
- Returns:
- The test's ARN.
-
withArn
The test's ARN.
- Parameters:
arn
- The test's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The test's name.
- Parameters:
name
- The test's name.
-
getName
The test's name.
- Returns:
- The test's name.
-
withName
The test's name.
- Parameters:
name
- The test's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The test's type.
Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
- Parameters:
type
- The test's type.Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
-
- See Also:
-
-
getType
The test's type.
Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
- Returns:
- The test's type.
Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
-
- See Also:
-
-
withType
The test's type.
Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
- Parameters:
type
- The test's type.Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setType
The test's type.
Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
- Parameters:
type
- The test's type.Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
-
- See Also:
-
-
withType
The test's type.
Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
- Parameters:
type
- The test's type.Must be one of the following values:
-
BUILTIN_FUZZ: The built-in fuzz type.
-
BUILTIN_EXPLORER: For Android, an app explorer that will traverse an Android app, interacting with it and capturing screenshots at the same time.
-
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
-
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
-
APPIUM_PYTHON: The Appium Python type.
-
APPIUM_WEB_JAVA_JUNIT: The Appium Java JUnit type for Web apps.
-
APPIUM_WEB_JAVA_TESTNG: The Appium Java TestNG type for Web apps.
-
APPIUM_WEB_PYTHON: The Appium Python type for Web apps.
-
CALABASH: The Calabash type.
-
INSTRUMENTATION: The Instrumentation type.
-
UIAUTOMATION: The uiautomation type.
-
UIAUTOMATOR: The uiautomator type.
-
XCTEST: The XCode test type.
-
XCTEST_UI: The XCode UI test type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setCreated
When the test was created.
- Parameters:
created
- When the test was created.
-
getCreated
When the test was created.
- Returns:
- When the test was created.
-
withCreated
When the test was created.
- Parameters:
created
- When the test was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The test's status.
Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
- Parameters:
status
- The test's status.Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
-
- See Also:
-
-
getStatus
The test's status.
Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
- Returns:
- The test's status.
Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
-
- See Also:
-
-
withStatus
The test's status.
Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
- Parameters:
status
- The test's status.Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setStatus
The test's status.
Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
- Parameters:
status
- The test's status.Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
-
- See Also:
-
-
withStatus
The test's status.
Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
- Parameters:
status
- The test's status.Allowed values include:
-
PENDING: A pending status.
-
PENDING_CONCURRENCY: A pending concurrency status.
-
PENDING_DEVICE: A pending device status.
-
PROCESSING: A processing status.
-
SCHEDULING: A scheduling status.
-
PREPARING: A preparing status.
-
RUNNING: A running status.
-
COMPLETED: A completed status.
-
STOPPING: A stopping status.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setResult
The test's result.
Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
- Parameters:
result
- The test's result.Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
-
- See Also:
-
-
getResult
The test's result.
Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
- Returns:
- The test's result.
Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
-
- See Also:
-
-
withResult
The test's result.
Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
- Parameters:
result
- The test's result.Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setResult
The test's result.
Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
- Parameters:
result
- The test's result.Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
-
- See Also:
-
-
withResult
The test's result.
Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
- Parameters:
result
- The test's result.Allowed values include:
-
PENDING: A pending condition.
-
PASSED: A passing condition.
-
WARNED: A warning condition.
-
FAILED: A failed condition.
-
SKIPPED: A skipped condition.
-
ERRORED: An error condition.
-
STOPPED: A stopped condition.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setStarted
The test's start time.
- Parameters:
started
- The test's start time.
-
getStarted
The test's start time.
- Returns:
- The test's start time.
-
withStarted
The test's start time.
- Parameters:
started
- The test's start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStopped
The test's stop time.
- Parameters:
stopped
- The test's stop time.
-
getStopped
The test's stop time.
- Returns:
- The test's stop time.
-
withStopped
The test's stop time.
- Parameters:
stopped
- The test's stop time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCounters
The test's result counters.
- Parameters:
counters
- The test's result counters.
-
getCounters
The test's result counters.
- Returns:
- The test's result counters.
-
withCounters
The test's result counters.
- Parameters:
counters
- The test's result counters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
A message about the test's result.
- Parameters:
message
- A message about the test's result.
-
getMessage
A message about the test's result.
- Returns:
- A message about the test's result.
-
withMessage
A message about the test's result.
- Parameters:
message
- A message about the test's result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDeviceMinutes
Represents the total (metered or unmetered) minutes used by the test.
- Parameters:
deviceMinutes
- Represents the total (metered or unmetered) minutes used by the test.
-
getDeviceMinutes
Represents the total (metered or unmetered) minutes used by the test.
- Returns:
- Represents the total (metered or unmetered) minutes used by the test.
-
withDeviceMinutes
Represents the total (metered or unmetered) minutes used by the test.
- Parameters:
deviceMinutes
- Represents the total (metered or unmetered) minutes used by the test.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-