Class Job
- All Implemented Interfaces:
Serializable
,Cloneable
Represents a device.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The job's ARN.The job's result counters.When the job was created.Represents the total (metered or unmetered) minutes used by the job.A message about the job's result.getName()
The job's name.The job's result.The job's start time.The job's status.The job's stop time.getType()
The job's type.int
hashCode()
void
The job's ARN.void
setCounters
(Counters counters) The job's result counters.void
setCreated
(Date created) When the job was created.void
void
setDeviceMinutes
(DeviceMinutes deviceMinutes) Represents the total (metered or unmetered) minutes used by the job.void
setMessage
(String message) A message about the job's result.void
The job's name.void
setResult
(ExecutionResult result) The job's result.void
The job's result.void
setStarted
(Date started) The job's start time.void
setStatus
(ExecutionStatus status) The job's status.void
The job's status.void
setStopped
(Date stopped) The job's stop time.void
The job's type.void
The job's type.toString()
Returns a string representation of this object; useful for testing and debugging.The job's ARN.withCounters
(Counters counters) The job's result counters.withCreated
(Date created) When the job was created.withDevice
(Device device) withDeviceMinutes
(DeviceMinutes deviceMinutes) Represents the total (metered or unmetered) minutes used by the job.withMessage
(String message) A message about the job's result.The job's name.withResult
(ExecutionResult result) The job's result.withResult
(String result) The job's result.withStarted
(Date started) The job's start time.withStatus
(ExecutionStatus status) The job's status.withStatus
(String status) The job's status.withStopped
(Date stopped) The job's stop time.The job's type.The job's type.
-
Constructor Details
-
Job
public Job()
-
-
Method Details
-
setArn
The job's ARN.
- Parameters:
arn
- The job's ARN.
-
getArn
The job's ARN.
- Returns:
- The job's ARN.
-
withArn
The job's ARN.
- Parameters:
arn
- The job's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The job's name.
- Parameters:
name
- The job's name.
-
getName
The job's name.
- Returns:
- The job's name.
-
withName
The job's name.
- Parameters:
name
- The job's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The job's type.
Allowed values include the following:
-
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 job's type.Allowed values include the following:
-
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 job's type.
Allowed values include the following:
-
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 job's type.
Allowed values include the following:
-
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 job's type.
Allowed values include the following:
-
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 job's type.Allowed values include the following:
-
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 job's type.
Allowed values include the following:
-
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 job's type.Allowed values include the following:
-
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 job's type.
Allowed values include the following:
-
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 job's type.Allowed values include the following:
-
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 job was created.
- Parameters:
created
- When the job was created.
-
getCreated
When the job was created.
- Returns:
- When the job was created.
-
withCreated
When the job was created.
- Parameters:
created
- When the job was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
The job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job'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 job's start time.
- Parameters:
started
- The job's start time.
-
getStarted
The job's start time.
- Returns:
- The job's start time.
-
withStarted
The job's start time.
- Parameters:
started
- The job's start time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStopped
The job's stop time.
- Parameters:
stopped
- The job's stop time.
-
getStopped
The job's stop time.
- Returns:
- The job's stop time.
-
withStopped
The job's stop time.
- Parameters:
stopped
- The job's stop time.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setCounters
The job's result counters.
- Parameters:
counters
- The job's result counters.
-
getCounters
The job's result counters.
- Returns:
- The job's result counters.
-
withCounters
The job's result counters.
- Parameters:
counters
- The job's result counters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setMessage
A message about the job's result.
- Parameters:
message
- A message about the job's result.
-
getMessage
A message about the job's result.
- Returns:
- A message about the job's result.
-
withMessage
A message about the job's result.
- Parameters:
message
- A message about the job's result.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDevice
- Parameters:
device
-
-
getDevice
- Returns:
-
withDevice
- Parameters:
device
-- 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 job.
- Parameters:
deviceMinutes
- Represents the total (metered or unmetered) minutes used by the job.
-
getDeviceMinutes
Represents the total (metered or unmetered) minutes used by the job.
- Returns:
- Represents the total (metered or unmetered) minutes used by the job.
-
withDeviceMinutes
Represents the total (metered or unmetered) minutes used by the job.
- Parameters:
deviceMinutes
- Represents the total (metered or unmetered) minutes used by the job.- 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
-