Skip to content

Instantly share code, notes, and snippets.

@horie1024
Created October 14, 2015 02:01
Show Gist options
  • Save horie1024/fcc7f08da61e020bb462 to your computer and use it in GitHub Desktop.
Save horie1024/fcc7f08da61e020bb462 to your computer and use it in GitHub Desktop.
10.times do
resp_apk = devicefarm.get_upload({
arn: apk_arn
})
resp_test_package = devicefarm.get_upload({
arn: calabash_package_arn
})
if resp_apk.upload.status == "SUCCEEDED" &&
resp_test_package.upload.status == "SUCCEEDED"
devicefarm.schedule_run({
project_arn: "プロジェクトのARN",
app_arn: apk_arn,
device_pool_arn: device_pool_arn,
test: {
type: 'CALABASH',
test_package_arn: calabash_package_arn
}
})
exit
end
sleep(1)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment