toArtifactType method
Implementation
ArtifactType toArtifactType() {
switch (this) {
case 'UNKNOWN':
return ArtifactType.unknown;
case 'SCREENSHOT':
return ArtifactType.screenshot;
case 'DEVICE_LOG':
return ArtifactType.deviceLog;
case 'MESSAGE_LOG':
return ArtifactType.messageLog;
case 'VIDEO_LOG':
return ArtifactType.videoLog;
case 'RESULT_LOG':
return ArtifactType.resultLog;
case 'SERVICE_LOG':
return ArtifactType.serviceLog;
case 'WEBKIT_LOG':
return ArtifactType.webkitLog;
case 'INSTRUMENTATION_OUTPUT':
return ArtifactType.instrumentationOutput;
case 'EXERCISER_MONKEY_OUTPUT':
return ArtifactType.exerciserMonkeyOutput;
case 'CALABASH_JSON_OUTPUT':
return ArtifactType.calabashJsonOutput;
case 'CALABASH_PRETTY_OUTPUT':
return ArtifactType.calabashPrettyOutput;
case 'CALABASH_STANDARD_OUTPUT':
return ArtifactType.calabashStandardOutput;
case 'CALABASH_JAVA_XML_OUTPUT':
return ArtifactType.calabashJavaXmlOutput;
case 'AUTOMATION_OUTPUT':
return ArtifactType.automationOutput;
case 'APPIUM_SERVER_OUTPUT':
return ArtifactType.appiumServerOutput;
case 'APPIUM_JAVA_OUTPUT':
return ArtifactType.appiumJavaOutput;
case 'APPIUM_JAVA_XML_OUTPUT':
return ArtifactType.appiumJavaXmlOutput;
case 'APPIUM_PYTHON_OUTPUT':
return ArtifactType.appiumPythonOutput;
case 'APPIUM_PYTHON_XML_OUTPUT':
return ArtifactType.appiumPythonXmlOutput;
case 'EXPLORER_EVENT_LOG':
return ArtifactType.explorerEventLog;
case 'EXPLORER_SUMMARY_LOG':
return ArtifactType.explorerSummaryLog;
case 'APPLICATION_CRASH_REPORT':
return ArtifactType.applicationCrashReport;
case 'XCTEST_LOG':
return ArtifactType.xctestLog;
case 'VIDEO':
return ArtifactType.video;
case 'CUSTOMER_ARTIFACT':
return ArtifactType.customerArtifact;
case 'CUSTOMER_ARTIFACT_LOG':
return ArtifactType.customerArtifactLog;
case 'TESTSPEC_OUTPUT':
return ArtifactType.testspecOutput;
}
throw Exception('$this is not known in enum ArtifactType');
}