Appium(一)---

來源:互聯網
上載者:User

標籤:官方   txt   class   cli   命令   iba   資源   sys   執行   

Appium環境搭建

1.安裝Oracle VirtualBox >= 4.1(版本越高越好)

:https://www.virtualbox.org/wiki/Downloads官方下載安裝,

以及打上相應的補丁,如VirtualBox 4.2.16 Oracle VM VirtualBox Extension Pack

 

2.安裝Android開發環境:SDK,Eclipse+ADT

:http://www.android-doc.com/sdk/index.html

 

3.安裝genymotion

:https://www.genymotion.com

按圖形介面提示,一直點擊下一步就可以完成安裝了

需要注意幾點:

a.genymotion和VirtualBox版本要一致

b.genymotion中adb設定,不能使用預設sdk,否則會報錯

c.虛擬器都安裝成功後,需要在虛擬器中安裝Genymotion-ARM-Translation外掛程式,所有關於  arm報錯都是因為外掛程式沒有安裝

:資源很多,自己搜吧

adb基本命令

 

adb shell dumpsys activity | grep Focuse >/Libary/log.txt                      查詢當前開啟的活動名稱並輸出到/Libary/log.txt目錄

adb shell dumpsys activity | findstr Focuse                                           查詢當前開啟的活動名稱(windows cmd下執行)

adb shell pm list package                                                                    列出所有已安裝的包名

adb shell am start -W -n p(包名)/p(包名)+a(活動名)                      強行用adb啟動一個活動

adb shell am force-stop                                                                      強制退出

adb shell pm clear                                                                              清除緩衝

install                                   安裝卸載

unstall                                  卸載

push

pull

adb shell getprop ro.serialno                                                                查詢裝置串號

 

eclipse封裝adb命令

1.執行adb命令的類及方法調用

 

Runtime.getRuntime().exec("adb devices");

 

Appium(一)---

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.