【发布时间】:2016-04-08 23:30:47
【问题描述】:
我正在尝试在 Amazon Device Farm 上运行 Py.Test,我得到了上传应用程序的步骤,选择了一个正常工作的设备池。然而,在它尝试上传和运行测试的最后一步它失败了,我不知道为什么。任何见解都会有所帮助。
我要运行的 repo 是 https://github.com/dlai0001/appium-spike-running-tests-oncloud
这是我的 Jenkins 日志:
Copied 1 artifact from "mock-ios-build" build number 3
[AWSDeviceFarm] Using Project 'appium-poc'
[AWSDeviceFarm] Using DevicePool 'iPhone6 only'
[AWSDeviceFarm] Using App 'staging/TapIt.ipa'
[AWSDeviceFarm] Archiving artifact 'TapIt.ipa'
[AWSDeviceFarm] Uploading TapIt.ipa to S3
[AWSDeviceFarm] Waiting for upload TapIt.ipa to be ready (current status: INITIALIZED)
[AWSDeviceFarm] Upload TapIt.ipa succeeded
[AWSDeviceFarm] Getting test to schedule.
[AWSDeviceFarm] Archiving artifact 'test_examply.py'
[AWSDeviceFarm] Uploading test_examply.py to S3
[AWSDeviceFarm] Waiting for upload test_examply.py to be ready (current status: INITIALIZED)
[AWSDeviceFarm] Upload test_examply.py failed!
Build step 'Run Tests on AWS Device Farm' marked build as failure
Finished: FAILURE
【问题讨论】:
-
注意,使用 shovel 任务打包 zip 文件并通过 Amazon device farm web console 上传运行测试即可。
标签: amazon-web-services jenkins pytest python-appium aws-device-farm