使用Appium的Android UI自动化测试

使用Appium的Android UI自动化测试,第1张

概述我只是在几周内从事androidUI自动化测试.我曾经尝试过使用robotium,现在我想更改为appium框架.我的问题是:>我读到appium是测试webview应用程序的测试工具.那么不是Webview应用程序的其他应用程序呢?>我可以在genymotion上从appium运行测试吗?>我需要与appium(硒或其他东西)一起安

我只是在几周内从事android UI自动化测试.我曾经尝试过使用robotium,现在我想更改为appium框架.我的问题是:

>我读到appium是测试webvIEw应用程序的测试工具.那么不是WebvIEw应用程序的其他应用程序呢?
>我可以在genymotion上从appium运行测试吗?
>我需要与appium(硒或其他东西)一起安装其他工具吗?

编辑
当我尝试在没有sudo的情况下安装appium时出现此错误

ERR! Error: EACCES, unlink
‘/Users//appium/node_modules/.bin/instruments-clIEnt.Js’

npm ERR! { [Error: EACCES, unlink
‘/Users//appium/node_modules/.bin/instruments-clIEnt.Js’]

npm ERR! errno: 3,

npm ERR! code: ‘EACCES’,

npm ERR! path:
‘/Users//appium/node_modules/.bin/instruments-clIEnt.Js’ }

npm ERR!

npm ERR! Please try running this command again as root/administrator.

npm ERR! System Darwin 13.1.0

npm ERR! command “/usr/local/Cellar/node/0.10.26/bin/node”
“/usr/local/bin/npm” “link” “appium-uiauto”

npm ERR! cwd /Users/yaphatak/appium

npm ERR! node -v v0.10.26

npm ERR! npm -v 1.4.3

npm ERR! path
/Users//appium/node_modules/.bin/instruments-clIEnt.Js

npm ERR! code EACCES

npm ERR! errno 3

npm ERR! stack Error: EACCES, unlink
‘/Users//appium/node_modules/.bin/instruments-clIEnt.Js’

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR! /Users//appium/npm-deBUG.log

npm ERR! not ok code 0

然后我尝试使用sudo然后运行appium我收到此错误

error: Appium will not work if used or installed with sudo. Please
rerun/install as a non-root user. If you had to install Appium using
sudo npm install -g appium, the solution is to reinstall Node using
a method (Homebrew, for example) that doesn’t require sudo to install
global npm packages.”

有什么帮助吗?

解决方法:

1-是的,Appium可以测试非WebvIEw应用程序. Appium introduction page的第一行显示:

Appium is an open-source tool you can use to automate mobile native, mobile web, and mobile hybrID applications on iOS and AndroID platforms.

2-是的,Appium应该与Genymotion一起使用.有关示例,请参见here.

3-您的测试需要参考Selenium libraries才能与Appium通信.

总结

以上是内存溢出为你收集整理的使用Appium的Android UI自动化测试全部内容,希望文章能够帮你解决使用Appium的Android UI自动化测试所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/web/1078255.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-27
下一篇 2022-05-27

发表评论

登录后才能评论

评论列表(0条)

保存