Appium命令笔记之一

简介:

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










本文转自 知止内明 51CTO博客,原文链接:http://blog.51cto.com/357712148/1957817,如需转载请自行联系原作者
目录
相关文章
|
Android开发 Java iOS开发
|
移动开发 Android开发 iOS开发
|
4月前
|
XML Java 测试技术
『App自动化测试之Appium应用篇』| 元素定位工具Appium-Inspector从简介、安装、配置到使用的完整攻略
『App自动化测试之Appium应用篇』| 元素定位工具Appium-Inspector从简介、安装、配置到使用的完整攻略
174 3
|
4月前
|
JavaScript Java 测试技术
『App自动化测试之Appium基础篇』| 从定义、原理、环境搭建、安装问题排查等深入了解Appium
『App自动化测试之Appium基础篇』| 从定义、原理、环境搭建、安装问题排查等深入了解Appium
616 0
|
4月前
|
编解码 Java 测试技术
『App自动化测试之Appium应用篇』| uiautomator + accessibility_id定位方法完全使用攻略
『App自动化测试之Appium应用篇』| uiautomator + accessibility_id定位方法完全使用攻略
126 0
|
4月前
|
XML 测试技术 开发工具
『App自动化测试之Appium应用篇』| 元素定位工具uiautomatorviewer从简介、特点、启动到使用的完整过程
『App自动化测试之Appium应用篇』| 元素定位工具uiautomatorviewer从简介、特点、启动到使用的完整过程
77 4
|
4月前
|
移动开发 安全 测试技术
『App自动化测试之Appium应用篇』| 继承于selenium常用的元素定位方法有哪些?如何使用?
『App自动化测试之Appium应用篇』| 继承于selenium常用的元素定位方法有哪些?如何使用?
84 0
|
4月前
|
测试技术 Android开发 iOS开发
『App自动化测试之Appium基础篇』| Desired Capabilities详解与使用
『App自动化测试之Appium基础篇』| Desired Capabilities详解与使用
85 0