def test_fairy(registry, xml_parent, data):
 platform = data.get('platform')
 valid_platforms = ['android', 'ios']
 if ('platform' not in data):
  raise MissingAttributeError('platform')
 if (platform == 'android'):
  root = XML.SubElement(xml_parent, 'org.jenkinsci.plugins.testfairy.TestFairyAndroidRecorder')
  helpers.test_fairy_common(root, data)
  mappings = [('proguard-file', 'mappingFile', ''), ('keystorepath', 'keystorePath', None), ('storepass', 'storepass', 'android'), ('alias', 'alias', 'androiddebugkey'), ('keypass', 'keypass', '')]
  helpers.convert_mapping_to_xml(root, data, mappings, fail_required=True)
 elif (platform == 'ios'):
  root = XML.SubElement(xml_parent, 'org.jenkinsci.plugins.testfairy.TestFairyIosRecorder')
  helpers.test_fairy_common(root, data)
  mappings = [('dSYM-file', 'mappingFile', '')]
  helpers.convert_mapping_to_xml(root, data, mappings, fail_required=True)
 else:
  raise InvalidAttributeError('platform', platform, valid_platforms)

def test_fairy ( registry , xml_parent , data ) : platform = data . get ( 'platform' ) valid_platforms = [ 'android' , 'ios' ] if ( 'platform' not in data ) : raise MissingAttributeError ( 'platform' ) if ( platform == 'android' ) : root = XML . SubElement ( xml_parent , 'org.jenkinsci.plugins.testfairy.TestFairyAndroidRecorder' ) helpers . test_fairy_common ( root , data ) mappings = [ ( 'proguard-file' , 'mappingFile' , '' ) , ( 'keystorepath' , 'keystorePath' , None ) , ( 'storepass' , 'storepass' , 'android' ) , ( 'alias' , 'alias' , 'androiddebugkey' ) , ( 'keypass' , 'keypass' , '' ) ] helpers . convert_mapping_to_xml ( root , data , mappings , fail_required = True ) elif ( platform == 'ios' ) : root = XML . SubElement ( xml_parent , 'org.jenkinsci.plugins.testfairy.TestFairyIosRecorder' ) helpers . test_fairy_common ( root , data ) mappings = [ ( 'dSYM-file' , 'mappingFile' , '' ) ] helpers . convert_mapping_to_xml ( root , data , mappings , fail_required = True ) else : raise InvalidAttributeError ( 'platform' , platform , valid_platforms )
yaml: test-fairy this plugin helps you to upload android apks or ios ipa files to www .