Appium Server 传递Android参数
Appium
server Capabilities
传递参数 Android 特定
Android Only
| Capability | Description | Values |
|---|---|---|
appActivity |
Activity name for the Android activity you want to launch from your package. This often needs to be preceded by a. (e.g., .MainActivity instead ofMainActivity) |
MainActivity, .Settings |
appPackage |
Java package of the Android app you want to run | com.example.android.myApp, |
appWaitActivity |
Activity name for the Android activity you want to wait for | SplashActivity |
appWaitPackage |
Java package of the Android app you want to wait for | com.example.android.myApp, |
deviceReadyTimeout |
Timeout in seconds while waiting for device to become ready | 5 |
androidCoverage |
Fully qualified instrumentation class. Passed to -w in adb shell am instrument -e coverage true -w | com.my.Pkg/com.my.Pkg.instrumentation.MyInstrumentation |
enablePerformanceLogging |
(Chrome and webview only) Enable Chromedriver’s performance logging (default ) |
true, false |
androidDeviceReadyTimeout |
Timeout in seconds used to wait for a device to become ready after booting | e.g., 30 |
androidDeviceSocket |
Devtools socket name. Needed only when tested app is a Chromium embedding browser. The socket is open by the browser and Chromedriver connects to it as a devtools client. | e.g., chrome_devtools_remote |
avd |
Name of avd to launch | e.g., api19 |
avdLaunchTimeout |
How long to wait in milliseconds for an avd to launch and connect to ADB (default120000) |
300000 |
avdReadyTimeout |
How long to wait in milliseconds for an avd to finish its boot animations (default120000) |
300000 |
avdArgs |
Additional emulator arguments used when launching an avd | e.g., -netfast |
useKeystore |
Use a custom keystore to sign apks, default false |
true or false |
keystorePath |
Path to custom keystore, default ~/.android/debug.keystore | e.g., /path/to.keystore |
keystorePassword |
Password for custom keystore | e.g., foo |
keyAlias |
Alias for key | e.g., androiddebugkey |
keyPassword |
Password for key | e.g., foo |
chromedriverExecutable |
The absolute local path to webdriver executable (if Chromium embedder provides its own webdriver, it should be used instead of original chromedriver bundled with Appium) | /abs/path/to/webdriver |
autoWebviewTimeout |
Amount of time to wait for Webview context to become active, in ms. Defaults to2000 |
e.g. 4 |
intentAction |
Intent action which will be used to start activity (default ) |
e.g.android.intent.action.MAIN, |
intentCategory |
Intent category which will be used to start activity (default ) |
e.g. android.intent.category.LAUNCHER, |
intentFlags |
Flags that will be used to start activity (default ) |
e.g. 0x10200000 |
optionalIntentArguments |
Additional intent arguments that will be used to start activity. See Intent arguments | e.g. --esn <EXTRA_KEY>, , etc. |
stopAppOnReset |
Stops the process of the app under test, before starting the app using adb. If the app under test is created by another anchor app, setting this false, allows the process of the anchor app to be still alive, during the start of the test app using adb, defaulttrue |
true or false |
unicodeKeyboard |
Enable Unicode input, default false |
true or false |
resetKeyboard |
Reset keyboard to its original state, after running Unicode tests with capability. Ignored if used alone. Default |
true or false |
noSign |
Skip checking and signing of app with debug keys, will work only with UiAutomator and not with selendroid, defaultfalse |
true or false |
ignoreUnimportantViews |
Calls the setCompressedLayoutHierarchy() uiautomator function. This capability can speed up test execution, since Accessibility commands will run faster ignoring some elements. The ignored elements will not be findable,which is why this capability has also been implemented as a toggle-able setting as well as a capability. Defaults to false |
true or false |
Appium Server 传递Android参数的更多相关文章
- Appium Server 传递iOS参数
Appium server iOS Capabilities 参数 iOS Only Capability Description Values calendarFormat (Sim-only) ...
- Appium Server 传递的基本参数
Appium Server 传递的基本参数 官方列表 Appium server capabilities Capability Description Values automationName ...
- asp.net URL传递中文参数System.Web.HttpUtility.UrlEncode与Server.UrlEncode的区别
asp.net URL传递中文参数System.Web.HttpUtility.UrlEncode与Server.UrlEncode的区别(一) HttpUtility.UrlEncode 方法: 对 ...
- Appium Server源码分析之作为Bootstrap客户端
Appium Server拥有两个主要的功能: 它是个http服务器,它专门接收从客户端通过基于http的REST协议发送过来的命令 他是bootstrap客户端:它接收到客户端的命令后,需要想办法把 ...
- Appium Server 源码分析之启动运行Express http服务器
通过上一个系列Appium Android Bootstrap源码分析我们了解到了appium在安卓目标机器上是如何通过bootstrap这个服务来接收appium从pc端发送过来的命令,并最终使用u ...
- appium启动APP配置参数:
一.Android启动app python启动脚本如下: from appium import webdriver desired_caps = {} desired_caps['plat ...
- Appium——详解Appium server capabilities
appium server capabilities来告诉appium,如何运行自动化测试,因此需要详细了解. 官方文档:http://appium.io/slate/en/master/?rub ...
- python appium server代码启动和关闭遇到的坑
第一次使用博客,小白级,互相交流,有说的不对的地方欢迎来喷!!! 自动化的目的就是减少人工成本,如果每次跑自动化用例时都要手动起appium客户端,太费事了~~故,将appium server的调起和 ...
- Win10系统下基于Docker构建Appium容器连接Android模拟器Genymotion完成移动端Python自动化测试
原文转载自「刘悦的技术博客」https://v3u.cn/a_id_196 Python自动化,大概也许或者是今年最具热度的话题之一了.七月流火,招聘市场上对于Python自动化的追捧热度仍未消减,那 ...
随机推荐
- junit4笔记
这两天在复习hibernate,看的小峰的视频,觉得很不错. 现在把里面的junit4的一些使用方法记下来.方便以后的差用.代码如下. package com.java1234.service; im ...
- 安装帝国CMS遇到“修改php.ini,将:short_open_tag 设为 On”的解决方法+“建立目录不成功!请检查目录权限”问题
想用安装个帝国CMS来做个网站,于是下载了程序,上传到服务器上,但是在输入安装路径的时候却给出了如下图示: 您的PHP配置文件php.ini配置有问题,请按下面操作即可解决: 1.修改php.ini, ...
- 0x3f3f3f3f...编程中无穷大常量的设置技巧
转自 http://aikilis.tk/ 如果问题中各数据的范围明确,那么无穷大的设定不是问题,在不明确的情况下,很多程序员都取0x7fffffff作为无穷大,因为这是32-bit int的最大值. ...
- iOS 获取字符串中的单个字符
要取到单个字符,就要知道字符串的编码方式,这样才能够定位每个字符在内存中的位置.但是,iOS的字符串编码是不固定的,因此,需要设置一个统一的编码格式,将所有其他格式的字符串都转化为统一的格式,然后就可 ...
- Android使用HttpClient向服务器传输文件
HttpClient是Apache Jakarta Common下的子项目,可以用来提供功能丰富的支持HTTP协议的客户端编程工具包,这几天写客户端的时候遇到个问题,“客户端需要向服务器发送Post请 ...
- UE-9260使用说明1
UE-9260使用说明 序号 版本号 日期 备注 1 V0.1 2015-03-21 原始版本号.作者:xiaobin 2 3 4 5 主机环境 1.烧写操作 仿真器和FTP烧写 OS: Win XP ...
- Swift实战-QQ在线音乐(第一版)
//一.*项目准备 1.QQ音乐App 界面素材:(我使用PP助手,将QQ音乐App备份,解压ipa文件 即可得到里面的图片素材) 2.豆瓣电台接口:"http://douban.fm/j/ ...
- ViewPager控件的Demo
1.主视图 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:to ...
- Excel VBA ——批量工作表重命名
虽然平常在用excel 2010重命名工作表的时候,一般可能会用"双击工作表"的方法来重名,但是遇到大批量重名的时候就很麻烦. 我的方法,先建一张新表,然后在第一列写好要命名的表名 ...
- Jsp分页实例---假分页
今天总结一个JSP假分页的实例,由基本功能由js实现. 相较前一篇真分页中程序的功能,丰富了一些.具备首页尾页,和页面跳转功能. 首先还是来总结一下真假分页的优缺点和特性吧. 假分页:从数据库中取出所 ...