溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Appium命令筆記之一

發布時間:2020-08-05 20:14:53 來源:網絡 閱讀:785 作者:知止內明 欄目:軟件技術

    查看APK包名與其他信息命令:

aapt l <你的apk文件>,這個命令就是查看apk內容


下面詳細說下 aapt dump 這個查詢命令

基本格式為   aapt dump [] <apk文件>

這里[ ]選擇可以有以下幾種:

badging              Print the label and icon for the app declared in APK
permissions      Print the permissions from the APK.
resources           Print the resource table from the APK.
configurations   Print the configurations in the APK.
xmltree              Print the compiled xmls in the given assets.
xmlstrings         Print the strings of the given compiled xml assets.


例如:

C:\Users\lw>aapt d badging Desktop\zhihu.apk |findstr "package launchable-activity"

package: name='com.zhihu.android' versionCode='507' versionName='4.54.1' platformBuildVersionName='7.1.1'

launchable-activity: name='com.zhihu.android.app.ui.activity.MainActivity'  label='鐭ヤ箮' icon=''


//啟動另外一個APP

public void startapp()

{

//啟動該apt

driver.startActivity("com.zhihu.android","'com.zhihu.android.app.ui.activity.MainActivity");

}


使用場景:

1、用例之前的切換

2、場景切換使用

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女