简体   繁体   English

从 Mac 中的 Appium Inspector 启动 iOS Simulator 时,计算器应用程序不会在 Appium Inspector 中打开

[英]Calculator app does not open in Appium Inspector in Mac when launched iOS Simulator from it

I have been trying to launch Calculator app in Appium Inspector in my Mac Catalina using iOS Simulator but to no avail.我一直在尝试使用 iOS 模拟器在 Mac Catalina 的 Appium Inspector 中启动计算器应用程序,但无济于事。 I need to identify Calculator's actions/events to do some data driven testing.我需要确定计算器的操作/事件来进行一些数据驱动测试。 I was able to do so for Calendar using bundle ID com.apple.iCal but not so for Calculator with bundle ID com.apple.calculator.我能够使用捆绑 ID com.apple.iCal 对日历执行此操作,但对于捆绑 ID 为 com.apple.calculator 的 Calculator 则不行。 I am using below code: { "platformName": "iOS", "automationName": "XCUITest", "noReset": false, "deviceName": "iPhone 11 Pro", "platformVersion": "13.3", "App Category": "Utilities", "Bundle name": "Calculator", "bundleId": "com.apple.calculator", } I get below error in Inspector though Simulator loads(err attached enter image description here ):我正在使用以下代码:{ "platformName": "iOS", "automationName": "XCUITest", "noReset": false, "deviceName": "iPhone 11 Pro", "platformVersion": "13.3", "App Category ": "Utilities", "Bundle name": "Calculator", "bundleId": "com.apple.calculator", } 虽然模拟器加载,但我在检查器中遇到以下错误(错误附加在此处输入图像描述):

An unknown server-side error occurred while processing the command.处理命令时发生未知的服务器端错误。 Original error: App with bundle identifier 'com.apple.calculator' unknown I have tried putting "/Applications/Calculator.app" value in "app" key but it results in:原始错误:带有捆绑标识符“com.apple.calculator”的应用程序未知我曾尝试将“/Applications/Calculator.app”值放在“app”键中,但结果是:

An unknown server-side error occurred while processing the command.处理命令时发生未知的服务器端错误。 Original error: Bad app: /Applications/Calculator.app.原始错误:错误的应用程序:/Applications/Calculator.app。 App paths need to be absolute or an URL to a compressed app file: The application at '/Applications/Calculator.app' does not exist or is not accessible应用程序路径必须是绝对路径或压缩应用程序文件的 URL:“/Applications/Calculator.app”中的应用程序不存在或不可访问

Could somebody please look into this issue?有人可以看看这个问题吗?

I have MacBook Pro Mac OS Catalina我有 MacBook Pro Mac OS Catalina

Many Thanks!非常感谢!

The Calculator app is unavailable on iOS Simulator.计算器应用程序在 iOS 模拟器上不可用。

If you experiment with testing, try a different app like Settings or Shortcuts (you can create shortcuts to calculate things).如果您尝试进行测试,请尝试不同的应用程序,例如“设置”或“快捷方式”(您可以创建快捷方式来计算事物)。

If you need to test the Calculator app, switch to testing with real devices.如果您需要测试计算器应用程序,请切换到使用真实设备进行测试。

Good luck!祝你好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM