Class Artifact
- All Implemented Interfaces:
Serializable
,Cloneable
Represents the output of a test. Examples of artifacts include logs and screenshots.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getArn()
The artifact's ARN.The artifact's file extension.getName()
The artifact's name.getType()
The artifact's type.getUrl()
The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.int
hashCode()
void
The artifact's ARN.void
setExtension
(String extension) The artifact's file extension.void
The artifact's name.void
setType
(ArtifactType type) The artifact's type.void
The artifact's type.void
The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.toString()
Returns a string representation of this object; useful for testing and debugging.The artifact's ARN.withExtension
(String extension) The artifact's file extension.The artifact's name.withType
(ArtifactType type) The artifact's type.The artifact's type.The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
-
Constructor Details
-
Artifact
public Artifact()
-
-
Method Details
-
setArn
The artifact's ARN.
- Parameters:
arn
- The artifact's ARN.
-
getArn
The artifact's ARN.
- Returns:
- The artifact's ARN.
-
withArn
The artifact's ARN.
- Parameters:
arn
- The artifact's ARN.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setName
The artifact's name.
- Parameters:
name
- The artifact's name.
-
getName
The artifact's name.
- Returns:
- The artifact's name.
-
withName
The artifact's name.
- Parameters:
name
- The artifact's name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setType
The artifact's type.
Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
- Parameters:
type
- The artifact's type.Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
-
- See Also:
-
-
getType
The artifact's type.
Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
- Returns:
- The artifact's type.
Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
-
- See Also:
-
-
withType
The artifact's type.
Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
- Parameters:
type
- The artifact's type.Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setType
The artifact's type.
Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
- Parameters:
type
- The artifact's type.Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
-
- See Also:
-
-
withType
The artifact's type.
Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
- Parameters:
type
- The artifact's type.Allowed values include the following:
-
UNKNOWN: An unknown type.
-
SCREENSHOT: The screenshot type.
-
DEVICE_LOG: The device log type.
-
MESSAGE_LOG: The message log type.
-
RESULT_LOG: The result log type.
-
SERVICE_LOG: The service log type.
-
WEBKIT_LOG: The web kit log type.
-
INSTRUMENTATION_OUTPUT: The instrumentation type.
-
EXERCISER_MONKEY_OUTPUT: For Android, the artifact (log) generated by an Android fuzz test.
-
CALABASH_JSON_OUTPUT: The Calabash JSON output type.
-
CALABASH_PRETTY_OUTPUT: The Calabash pretty output type.
-
CALABASH_STANDARD_OUTPUT: The Calabash standard output type.
-
CALABASH_JAVA_XML_OUTPUT: The Calabash Java XML output type.
-
AUTOMATION_OUTPUT: The automation output type.
-
APPIUM_SERVER_OUTPUT: The Appium server output type.
-
APPIUM_JAVA_OUTPUT: The Appium Java output type.
-
APPIUM_JAVA_XML_OUTPUT: The Appium Java XML output type.
-
APPIUM_PYTHON_OUTPUT: The Appium Python output type.
-
APPIUM_PYTHON_XML_OUTPUT: The Appium Python XML output type.
-
EXPLORER_EVENT_LOG: The Explorer event log output type.
-
EXPLORER_SUMMARY_LOG: The Explorer summary log output type.
-
APPLICATION_CRASH_REPORT: The application crash report output type.
-
XCTEST_LOG: The XCode test output type.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
setExtension
The artifact's file extension.
- Parameters:
extension
- The artifact's file extension.
-
getExtension
The artifact's file extension.
- Returns:
- The artifact's file extension.
-
withExtension
The artifact's file extension.
- Parameters:
extension
- The artifact's file extension.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setUrl
The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
- Parameters:
url
- The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
-
getUrl
The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
- Returns:
- The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
-
withUrl
The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
- Parameters:
url
- The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.- 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
-