使用Appium检查时出错

时间:2015-07-10 07:21:19

标签: ios iphone appium

我正在尝试使用Appium测试我的iOS应用。这是我第一次使用该应用。我在对话框中得到了以下文字。请帮助我,提前谢谢。

Could not start a new session

Be sure the Appium server is running with an application opened by using the "App Path" parameter in Appium.app (along with package and activity for Android) or by connecting with selenium client and supplying this in the desired capabilities object.

这是我在控制台中获得的错误

error: Failed to start an Appium session, err was: Error: Could not find a device to launch. You requested 'iPad Retina (8.2 Simulator)', but the available devices were: ["iPad 2 (8.4 Simulator) [69E9798C-BF67-441F-BE0F-BB422C329381]","iPad Air (8.4 Simulator) [10794BA7-C352-4E63-B884-F740E572A626]","iPad Retina (8.4 Simulator) [3C4AE8CC-4EF3-43F0-A2DA-218E1A2021A2]","iPhone 4s (8.4 Simulator) [D54D1665-01A2-4A4E-BA4F-F6F3C74C0B89]","iPhone 5 (8.4 Simulator) [330EDD0C-2B9B-44AE-9F46-3CFE88FB7D6A]","iPhone 5s (8.4 Simulator) [64BDE543-7DFA-448C-A5EE-05A0292A640B]","iPhone 6 (8.4 Simulator) [6A928AA3-2624-429E-AC15-CA2F61483504]","iPhone 6 Plus (8.4 Simulator) [C1F83F38-7846-4C98-97C1-4B663C5D7A8E]"]

2 个答案:

答案 0 :(得分:2)

所以看起来您请求的设备不是受支持的设备。只有它可以根据错误支持的是iOS 8.4

答案 1 :(得分:2)

这可以通过将Appium的平台版本和模拟器的版本设置为相同来解决。我使用8.4模拟器,而Appium接受8.3。