Appium命令笔记之一

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

创新互联建站公司2013年成立,先为惠安等服务建站,惠安等地企业,进行企业商务咨询服务。为惠安企业网站制作PC+手机+微官网三网同步一站式服务解决您的所有建站问题。

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、场景切换使用

新闻标题:Appium命令笔记之一
分享链接:https://www.cdcxhl.com/article18/jgsgdp.html

成都网站建设公司_创新互联,为您提供微信公众号网站导航App设计网站建设关键词优化网站营销

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

成都app开发公司