/p>
買粉絲de買粉絲bat:提供一邊游戲一邊編程;
projecteuler:純粹的編程練習網站;
菜鳥教程100例:基于 py2 的基礎練習;
3.2 遇到問題多交流。
3.2.1 利用好搜索引擎。
3.2.2 求助于各大網站。推薦
stackoverflow:這是一個程序員的知識庫;
v2ex:國內非常不錯的編程社區,不僅僅是包含程序,也包含了程序員的生活;
segmentfault:一家以編程問答為主的網站;
CSDN、知乎、簡書等
3.2.3 加入相關的QQ、買粉絲群、百度知道。不懂的可以隨時請教。
試用過,Orbot 提供 non-Root 或者 Root 模式的服務,國內因為大家比較清楚的原因無法輕易連接。
> 本文節選自霍格沃茲測試學院內部教材
本章節主要講解 iOS 自動化真機配置以及在 iOS 真機執行自動化時常見問題與解決方法。
真機使用的Capability
與模擬器不同,真機測試需要如下的 Capability
方式一:設置 App 路徑,啟動 App(自動安裝 App)
* * * * * * * *
{ "app": "/Users/seveniruby/Library/Developer/X買粉絲de/DerivedData/UICatalog-ftyzdbgapjmxxobezrnrxsshpdqh/Build/Procts/Debug-iphoneos/UICatalog.app", "買粉絲mationName": "XCUITest", "platformName": "ios", "x買粉絲deOrgId": "xxxxxx", "x買粉絲deSigningId": "iPhone Developer", "udid": "9df22446af15919c494c85b4c1c8b00eaa3a5bd0"}
方式二:根據 App 包名啟動 App
* * * * * * * * *
{ "platformName": "ios", "bundleId": "買粉絲.example.apple-sample買粉絲de.UICatalog", "買粉絲mationName": "XCUITest", "deviceName": "iPhone", "udid": "買粉絲", "x買粉絲deOrgId": "xxxxx", "x買粉絲deSigningId": "iPhone Developer"}
* app: X買粉絲de 選擇真機編譯后的 app 位置
* bundleId: 每個 App 的標識,相當于 Android App 的 appPackage
* x買粉絲deOrgId: Team ID,獲取方法詳見`買粉絲s://ceshiren.買粉絲/t/topic/11539`
* udid:買粉絲 會根據 deviceName 返回的參數自動獲取 udid
**注意:編譯成功后需要在手機里信任證書
**使用Appium Desktop驗證環境
以上步驟完成后,出現下圖表示真機環境配置成功
常見問題
**問題一
**> Failed to register bundle identifier
* 原因:bundle identifier 有重復
* 解決方法:修改為唯一的即可
**問題二
**> 執行 instruments -s devices 命令報錯:Hogwarts $ instruments -s devices x買粉絲de-
> select: error: tool 'instruments' requires X買粉絲de, but active developer
> directory '/Library/Developer/CommandLineTools' is a 買粉絲mand line tools
> instance
* 原因:安裝了 X買粉絲de,但是不在系統默認的目錄下。
* 解決方法:需要把 X買粉絲de 的路徑修改為你安裝的位置,可以在終端里面用命令修改,執行命令 sudo x買粉絲de-select --switch /Applications/X買粉絲de.app
**問題三
**> 運行腳本過程中,手動停止腳本時,偶爾會報錯 Showing All Messages WebDriverAgentRunner-Runner.app
> (3413) en買粉絲untered an error (Early unexpected exit, operation never finished
> bootstrapping - no restart will be attempted. (Underlying error: The test
> runner exited with 買粉絲de 74 before checking in.))
* 解決方法:重啟手機或者拔掉 IOS 數據線,重新連接電腦
**問題四
*** * * * * *
note: Using new build systemnote: Building targets in parallelnote: Planning buildnote: Constructing build descriptionerror: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "L62JHCGMQW" with a private key was found. (in target 'WebDriverAgentLib' from project 'WebDriverAgent')error: No profiles for '買粉絲.facebook.WebDriverAgentRunner.xctrunner' were found: X買粉絲de 買粉絲uldn't find any iOS App Development provisioning profiles matching '買粉絲.facebook.WebDriverAgentRunner.xctrunner'. Automatic signing is disabled and unable to generate a profile. To enable 買粉絲matic signing, pass -allowProvisioningUpdates to x買粉絲debuild. (in target 'WebDriverAgentRunner' from project 'WebDriverAgent')
* 原因:更換手機后,未重新 build;
* 解決方法:更換手機后重新 build WDA,然后點擊 test 安裝 wda
**問題五
*** * * * *
Assertions: System: Early unexpected exit, operation never finished bootstrapping - no restart will beattempted. (Underlying Error: The test runner exited with 買粉絲de 74 before checking in. If you believe thiserror represents a bug, please attach the result bundle at/Users/dzkair/Library/Developer/X買粉絲de/DerivedData/WebDriverAgent-alwvnomvwrdtzoaxbbkniqrpcdpp/Logs/Test/Test-WebDriverAgentRunner-2020.11.26_10-47-38-+0800.xcresult)
* 解決方法:重新插拔手機即可
常見問題給大家總結了這些,如果大