public class Job extends Object implements Serializable, Cloneable
Represents a device.
Constructor and Description |
---|
Job() |
Modifier and Type | Method and Description |
---|---|
Job |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The job's ARN.
|
Counters |
getCounters()
The job's result counters.
|
Date |
getCreated()
When the job was created.
|
Device |
getDevice()
Returns the value of the Device property for this object.
|
String |
getMessage()
A message about the job's result.
|
String |
getName()
The job's name.
|
String |
getResult()
The job's result.
|
Date |
getStarted()
The job's start time.
|
String |
getStatus()
The job's status.
|
Date |
getStopped()
The job's stop time.
|
String |
getType()
The job's type.
|
int |
hashCode() |
void |
setArn(String arn)
The job's ARN.
|
void |
setCounters(Counters counters)
The job's result counters.
|
void |
setCreated(Date created)
When the job was created.
|
void |
setDevice(Device device)
Sets the value of the Device property for this object.
|
void |
setMessage(String message)
A message about the job's result.
|
void |
setName(String name)
The job's name.
|
void |
setResult(ExecutionResult result)
The job's result.
|
void |
setResult(String result)
The job's result.
|
void |
setStarted(Date started)
The job's start time.
|
void |
setStatus(ExecutionStatus status)
The job's status.
|
void |
setStatus(String status)
The job's status.
|
void |
setStopped(Date stopped)
The job's stop time.
|
void |
setType(String type)
The job's type.
|
void |
setType(TestType type)
The job's type.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Job |
withArn(String arn)
The job's ARN.
|
Job |
withCounters(Counters counters)
The job's result counters.
|
Job |
withCreated(Date created)
When the job was created.
|
Job |
withDevice(Device device)
Sets the value of the Device property for this object.
|
Job |
withMessage(String message)
A message about the job's result.
|
Job |
withName(String name)
The job's name.
|
Job |
withResult(ExecutionResult result)
The job's result.
|
Job |
withResult(String result)
The job's result.
|
Job |
withStarted(Date started)
The job's start time.
|
Job |
withStatus(ExecutionStatus status)
The job's status.
|
Job |
withStatus(String status)
The job's status.
|
Job |
withStopped(Date stopped)
The job's stop time.
|
Job |
withType(String type)
The job's type.
|
Job |
withType(TestType type)
The job's type.
|
public void setArn(String arn)
The job's ARN.
arn
- The job's ARN.public String getArn()
The job's ARN.
public Job withArn(String arn)
The job's ARN.
arn
- The job's ARN.public void setName(String name)
The job's name.
name
- The job's name.public String getName()
The job's name.
public Job withName(String name)
The job's name.
name
- The job's name.public void setType(String type)
The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
type
- The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
TestType
public String getType()
The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
TestType
public Job withType(String type)
The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
type
- The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
TestType
public void setType(TestType type)
The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
type
- The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
TestType
public Job withType(TestType type)
The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
type
- The job's type.
Allowed values include the following:
APPIUM_JAVA_JUNIT: The Appium Java JUnit type.
APPIUM_JAVA_TESTNG: The Appium Java TestNG type.
BUILTIN_EXPLORER: An app explorer that will traverse an app, interacting with it and capturing screenshots at the same time.
BUILTIN_FUZZ: The built-in fuzz type.
CALABASH: The Calabash type.
INSTRUMENTATION: The Instrumentation type.
UIAUTOMATOR: The uiautomator type.
TestType
public void setCreated(Date created)
When the job was created.
created
- When the job was created.public Date getCreated()
When the job was created.
public Job withCreated(Date created)
When the job was created.
created
- When the job was created.public void setStatus(String status)
The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
status
- The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
ExecutionStatus
public String getStatus()
The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
ExecutionStatus
public Job withStatus(String status)
The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
status
- The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
ExecutionStatus
public void setStatus(ExecutionStatus status)
The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
status
- The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
ExecutionStatus
public Job withStatus(ExecutionStatus status)
The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
status
- The job's status.
Allowed values include:
COMPLETED: A completed status.
PENDING: A pending status.
PROCESSING: A processing status.
RUNNING: A running status.
SCHEDULING: A scheduling status.
ExecutionStatus
public void setResult(String result)
The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
result
- The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
ExecutionResult
public String getResult()
The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
ExecutionResult
public Job withResult(String result)
The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
result
- The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
ExecutionResult
public void setResult(ExecutionResult result)
The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
result
- The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
ExecutionResult
public Job withResult(ExecutionResult result)
The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
result
- The job's result.
Allowed values include:
ERRORED: An error condition.
FAILED: A failed condition.
SKIPPED: A skipped condition.
STOPPED: A stopped condition.
PASSED: A passing condition.
PENDING: A pending condition.
WARNED: A warning condition.
ExecutionResult
public void setStarted(Date started)
The job's start time.
started
- The job's start time.public Date getStarted()
The job's start time.
public Job withStarted(Date started)
The job's start time.
started
- The job's start time.public void setStopped(Date stopped)
The job's stop time.
stopped
- The job's stop time.public Date getStopped()
The job's stop time.
public Job withStopped(Date stopped)
The job's stop time.
stopped
- The job's stop time.public void setCounters(Counters counters)
The job's result counters.
counters
- The job's result counters.public Counters getCounters()
The job's result counters.
public Job withCounters(Counters counters)
The job's result counters.
counters
- The job's result counters.public void setMessage(String message)
A message about the job's result.
message
- A message about the job's result.public String getMessage()
A message about the job's result.
public Job withMessage(String message)
A message about the job's result.
message
- A message about the job's result.public void setDevice(Device device)
device
- The new value for the Device property for this object.public Device getDevice()
public Job withDevice(Device device)
device
- The new value for the Device property for this object.public String toString()
toString
in class Object
Object.toString()
Copyright © 2015. All rights reserved.