随笔分类 - appium
摘要:简单介绍 需求场景是:当测试安卓应用的脚本得到失败结果时,对当前手机屏幕截图,便于查找问题。 实现方式是:1)定义一个父类UITest,作为所有测试类的父类。在父类中UITest中定义一个截图的方法,所有的子类就都可以使用这个方法了。2)实现testng的ITestListener接口,参考这里,在
阅读全文
摘要:简单介绍 使用下面方法可以定位webview中的元素,无法定位view中的元素。 原文地址:http://mp.weixin.qq.com/s/y_UfdgjT_pkKgYivJmqt7Q webview定位 如下图,Hybrid APP有webview,在定位webview element的时候,
阅读全文
摘要:简单介绍 讲解一个appium测试脚本需要导入哪些java模块。 导入的java模块 明确两点信息: 一个脚本需要讲清楚测试环境:1、自动化平台方面,测试的平台是什么(appium或者selendroid,selendroid用于测试低版本的Android系统的app);2、被测试设备方面,被测试设
阅读全文
摘要:区分:AndroidDriver, iOSDriver, AppiumDriver and Remote WebDriver 原文地址:https://discuss.appium.io/t/what-is-the-use-or-difference-between-androiddriver-io
阅读全文
摘要:区分:WebElement, MobileElement, AndroidElement, and iosElement 原文地址:https://discuss.appium.io/t/difference-between-webelement-mobileelement-androideleme
阅读全文
摘要://appium java-client-api 介绍 原文地址:http://appium.github.io/java-client/index-all.html#_S_ A B C D E F G H I J K L M N O P Q R S T U V W Y Z A About Andr
阅读全文
摘要://本文讲解:启动server时,如何配置capabilities 和 flag。可以将不同client端需要的通用的capabilities都放到server端配置。 Requirements Installed Node.js 0.12 or greater. At least an appiu
阅读全文
摘要:Steps: you have to prepare environment for Android. Details are provided here: http://appium.io/slate/en/master/?java#setup-(android)//准备安卓环境。 you hav
阅读全文
摘要:原文地址:https://github.com/appium/java-client/blob/master/docs/The-event_firing.md since 4.1.0 The purpose This feature allows end user to organize the e
阅读全文
摘要:Appium Java client has facilities which components to Page Object design pattern and Selenium PageFactory.//appium的java客户端支持PageObject和PageFactory。读本文
阅读全文
摘要:Welcome to the Appium Java client wiki! This framework is an extension of the Selenium Java client. It has all the functionalities of the regular Sele
阅读全文
摘要:A Windows GUI for Appium If you are new to Appium then please see the Getting started guide for more information about the project. Pre-req: * Need .N
阅读全文
摘要:Settings Settings are a new concept introduced by appium. They are currently not a part of the Mobile JSON Wire Protocol, or the Webdriver spec. Setti
阅读全文
摘要:Automating hybrid apps One of the core principles of Appium is that you shouldn’t have to change your app to test it. In line with that methodology, i
阅读全文
摘要:Selenium Grid You are able to register your appium server with a local Selenium grid (setup docs) by using the --nodeconfig server parameter.//将appium
阅读全文
摘要:UIAutomator 2 While the API remains almost the same, the internal implementation has changed and we see the introduction of UIObject2//UIAutomator2简介。
阅读全文
摘要:Multi-lingual Support One problem with dealing with non-Latin characters programmatically is that, for characters with accents, there can be multiple
阅读全文
摘要:uiautomator UiSelector Appium enables searching using UiSelectors. UiScrollable is also supported.//Uiselector和UiScrollable两种定位方式。 Note that the index
阅读全文
摘要:Adjusting Network Connection The Selenium Mobile JSON Wire Protocol Specification supports an API for getting and setting the network connection for a
阅读全文
摘要:iOS predictate It is worth looking at ’-ios uiautomation’ search strategy with Predicates. UIAutomation JavaScript API has following methods which can
阅读全文