Class Artifact
- java.lang.Object
-
- com.amazonaws.services.devicefarm.model.Artifact
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Artifact extends Object implements Serializable, Cloneable
Represents the output of a test. Examples of artifacts include logs and screenshots.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Artifact()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Artifactclone()booleanequals(Object obj)StringgetArn()The artifact's ARN.StringgetExtension()The artifact's file extension.StringgetName()The artifact's name.StringgetType()The artifact's type.StringgetUrl()The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.inthashCode()voidsetArn(String arn)The artifact's ARN.voidsetExtension(String extension)The artifact's file extension.voidsetName(String name)The artifact's name.voidsetType(ArtifactType type)The artifact's type.voidsetType(String type)The artifact's type.voidsetUrl(String url)The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.StringtoString()Returns a string representation of this object; useful for testing and debugging.ArtifactwithArn(String arn)The artifact's ARN.ArtifactwithExtension(String extension)The artifact's file extension.ArtifactwithName(String name)The artifact's name.ArtifactwithType(ArtifactType type)The artifact's type.ArtifactwithType(String type)The artifact's type.ArtifactwithUrl(String url)The pre-signed Amazon S3 URL that can be used with a corresponding GET request to download the artifact's file.
-
-
-
Method Detail
-
setArn
public void setArn(String arn)
The artifact's ARN.
- Parameters:
arn- The artifact's ARN.
-
getArn
public String getArn()
The artifact's ARN.
- Returns:
- The artifact's ARN.
-
withArn
public Artifact withArn(String arn)
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
public void setName(String name)
The artifact's name.
- Parameters:
name- The artifact's name.
-
getName
public String getName()
The artifact's name.
- Returns:
- The artifact's name.
-
withName
public Artifact withName(String name)
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
public void setType(String 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.
- 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:
ArtifactType
-
-
getType
public String 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:
ArtifactType
-
-
withType
public Artifact withType(String 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.
- 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:
ArtifactType
-
-
setType
public void setType(ArtifactType 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.
- 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:
ArtifactType
-
-
withType
public Artifact withType(ArtifactType 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.
- 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:
ArtifactType
-
-
setExtension
public void setExtension(String extension)
The artifact's file extension.
- Parameters:
extension- The artifact's file extension.
-
getExtension
public String getExtension()
The artifact's file extension.
- Returns:
- The artifact's file extension.
-
withExtension
public Artifact withExtension(String extension)
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
public void setUrl(String url)
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
public String 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
public Artifact withUrl(String url)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-