![](/img/trans.png)
[英]Can iOS device automation be performed on a Windows machine using the Robot Framework?
[英]How can we automate already installed ios app on device using robot framework?
我有兩個主要問題。
我們目前使用的是帶有 OS X (10.9.5) 的 macbook,它確實很舊,但是可以在這個操作系統上使用機器人+appium+etc...嗎? 兼容的 XCode 應用程序是 v6.2。 我在互聯網上閱讀的內容沒有關於哪些版本運行良好的實際信息。
我們想自動化一個已經安裝在 iphone (OS 10.3.3) 上的內部應用程序,這可以通過知道它的 bundleid 來自動化嗎? 打開應用的參數之一是app(填寫位置)。 我們可以忽略這個值嗎?
如果有人能指出我可能的答案,那就太好了。
你的第一個問題回答:我認為 MAC OSX 版本對你來說不是問題,尤其是當你有一個兼容的 Xcode 應用程序時
第二個問題:您可以使用所需功能的信息自動化安裝在手機(ios/android)中的任何應用程序。 這是在 ios 中打開已安裝應用程序的示例代碼
*** Settings ***
Library AppiumLibrary #you need to install this
*** Variables ***
${APPIUM_SERVER1} http://0.0.0.0:4723/wd/hub
${APPIUM_SERVER2} http://0.0.0.0:4750/wd/hub
${app} com.apple.mobilephone #find package name of your app
${version} version=9.3
${platform} iOS
${deviceName} ${destdevice}
${udid} 81eddea4d7f5cea5b5da65b999369b52
${platformName} iOS
${name} My First Mobile Test
${automationName} XCUITest
${xcodeOrgId} 89E87VX
${xcodeSigningId} iPhone
${usePrebuiltWDA} True
*** Keywords ***
setup and open ios app
${iosdriver}= Open Application ${APPIUM_SERVER2} app=${app} version=${version} platform=${platform} deviceName=${deviceName} udid=${udid} platformName=${platformName} newCommandTimeout=2500
... name=${name} automationName=${automationName} xcodeOrgId=${xcodeOrgId} xcodeSigningId=${xcodeSigningId} usePrebuiltWDA=${usePrebuiltWDA}
Set Suite Variable ${iosdriver}
${app} 是您提供包名稱的所需功能,有關更多詳細信息,您可以搜索如何查找 ios 應用程序的包名稱。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.