appium

Mac下安装appium

…衆ロ難τιáo~ 提交于 2019-12-18 21:50:29
1. 安装node: 进入node官网下载页http://nodejs.cn/download/ 选择合适的版本进行下载及安装。 2. 安装brew: 在终端输入下面的命令: curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 如果出现错误: (7) Failed to connect to raw.githubusercontent.com port 443: Connection refused 请尝试这个解决方法,亲测有效: sudo gem install redis 3. npm安装appium: 使用npm安装appium,继续在终端输入命令 npm install -g appium --registry=https://registry.npm.taobao.org cnpm安装方式后续会有坑,请参考 https://blog.csdn.net/weixin_44710258/article/details/103602834 来源: CSDN 作者: 小K~ 链接: https://blog.csdn.net/weixin_44710258/article/details/103374215

appium---app输入中文

本小妞迷上赌 提交于 2019-12-18 16:43:34
  在app自动化的过程中,都会遇到输入中文的问题,今天总结下app自动化如何输入中文 app输入中文 在启动app的时候在参数里面添加unicodeKeyboard和resetKeyboard后,运行代码 unicodeKeyboard:True resetKeyboard:True # coding:utf-8 from appium import webdriver import time desired_caps = { 'platformName': 'Android', # 测试版本 'deviceName': 'emulator-5554', # 设备名 'platformVersion': '5.1.1', # 系统版本 "appPackage": "com.taobao.taobao", # app包名 "appActivity": "com.taobao.tao.welcome.Welcome", # 启动launch Activity "noReset": True, # 不清空数据 "unicodeKeyboard": True, # 使用Unicode编码方式发送字符串 "resetKeyboard": True, # 键盘隐藏起来 } driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub',

Appium only shows NATIVE_APP context on a Cordova App

丶灬走出姿态 提交于 2019-12-18 12:41:49
问题 I'm running Appium on Windows to test a Cordova app directly on an Android device. However, when I try to fetch the contexts and switch to the one containing WEBVIEW (basically, the recommended process), it only returns one context, NATIVE_APP . When I use the inspector, I'm able to see a WebView child and a lot of View children appended to it, which relate to each one of the elements inside the app. So, despite it doesn't show the element tree in Webview mode, I'm able to see it's using a

Appium, Instruments crashed on startup

对着背影说爱祢 提交于 2019-12-18 09:27:53
问题 When I updated Xcode from 6.4 to 7.2 my Appium UI Automation stopped working, with instruments crashing. Appium: 1.4.13 Xcode: 7.2 Here are the error logs: info: Launching instruments info: [debug] Attempting to run app on iPhone 6 (8.4) info: [debug] Spawning instruments with command: /Applications/Xcode.app/Contents/Developer/usr/bin/instruments -t /Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/PlugIns/AutomationInstrument.xrplugin/Contents/Resources/Automation

Appium [iOS] Instruments crashed on startup

家住魔仙堡 提交于 2019-12-18 09:14:18
问题 Maybe somebody can help me. When appium tries to run application, the screen flashes with app splash screen, as if appium tries to launch app multiple times. This behaviour happens both on simulator and real device. I set enable on my iOS devices UI Autimation, but when i try start inspector i have this problem: info: [debug] [INST STDERR] 2015-11-05 15:11:05.082 instruments[1495:39489] WebKit Threading Violation - initial use of WebKit from a secondary thread. info: [debug] [INST STDERR]

Is there any framework which supports Behaviour driven approch (bdd) for selenium-webdriver with driver managment?

大兔子大兔子 提交于 2019-12-18 05:13:08
问题 I want to start my automation project from scratch, as per requirements I have to use Behavior Driven Approach for testcase authoring and selenium for Automation. please suggest best suited framework. 回答1: You can check open source QMetry Automation Framework for web (selenium-webdriver) and mobile (appium) automation. It has all the features driver management, parallel execution, run configuration you want and many more like data-driven testing, data-bean, locator repository, integration

Android自动化测试学习路线

Deadly 提交于 2019-12-18 02:12:18
最近在整理Android自动化测试的相关资料,大体上把一些知识点梳理了,这里做一个简单的分享! Android里面测试相关的工具和框架太多了。你应该从以下几个方面入手。 编程语言的选择 如果你要学习的是Appium的话,当然它是移动自动化测试领域最流主流的工具之一,同时支持iOS和Android两大平台,最主要是还支持多种编程语言(Java/Python/C#/JavaScript…等),这是它能得到广泛使用的原因之一。如果你只想做APP UI层的自动化测试,那么,你完全可以使用自己熟悉的编程语言来做Appium自动化测试。 我发现用Python + Appium的人非常多。这主要是因为Python简单,在测试圈有广泛的应用基础。不过,这里我推荐使用Java,虽然我个人最熟悉的是Python。这里选择Java的主要原因是因为,我对Android自动化测试的学习不想只停留在UI层,我还想知道Android的单元测试怎么做,怎么调用接口?甚至是CPU,内存的调度是怎样的。 所以,我需要知道Android应用是怎么被开发出来的。Android应用的开发目前只能用Java,这就是我选择Java的理由。 从哪里开始入手 知道了我的选择,肯定也知道我会从哪里下手了。先不要着急去搭建Appium/Robotium这样的自动化能测试环境。建议先把Android开发环境搭建起来

How to setup Appium on Mac OS to run automated tests from JAVA classes on Android and iOS devices

旧时模样 提交于 2019-12-17 22:31:28
问题 Problem I was facing with Appium that I decided myself below. I could not find a way to install required components for Appium without using SUDO. After installing it all with SUDO, then trying to run Appium, I was getting error that Appium and NODE should have been installed without SUDO. Trying to search online for solution took me quite a while since there are almost no tutorials exist online for Appium to run on MAC while developing tests using JAVA. Below is the step by step instruction

org.openqa.selenium.SessionNotCreatedException: A new session could not be created. (Original error: Requested a new session but one was in progress)

故事扮演 提交于 2019-12-17 20:55:38
问题 I am using Appium 1.4.8 for iOS . I have build the code in simulator using xcode and successfully able to launch the server as well as Appium Inspector. But while running my code it is throwing the below error. My capabilities are @BeforeMethod public void setUp() throws MalformedURLException{ DesiredCapabilities capabilities = new DesiredCapabilities(); capabilities.setCapability("appium-version", "1.0"); capabilities.setCapability("platformName", "iOS"); capabilities.setCapability(

Error in using UIAutomatorviewer for testing Android app in Appium

限于喜欢 提交于 2019-12-17 16:16:45
问题 I have to automate an Android application, I am doing the same through Appium. The problem I am facing is after launching the Appium server, the app is getting installed in the emulator 4.4.2 and to inspect the element I am using UIAutomatorviewer which comes default with SDK. But while inspecting the element of the app, I am getting the error![enter image description here][1] Error obtaining UI hierarchy Reason:Error while obtaining UI hierarchy XML file.com.android.ddmlb.SynchException