好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

python+appium使用记录

? ?

? ?python+appium使用记录 ? ?

2015-11-08 22:31?狂师? 阅读(391)? 评论(0)?编辑?收藏 ? ?

最近在研究appium+appiumlibrary移动端的两个自动化测试库,特此将使用过程,粗略记录一下

?

1、环境搭建,略,自行百度。

2、查看apk包名及activity方法,自行百度。

3、基本步骤框架

?1?#coding=utf-8?2?from?appium?import?webdriver?3?import?os?4??5?desired_caps?=?{}?6?desired_caps['platformName']?=?'Android'?7?desired_caps['platformVersion']?=?'4.4.2'?8?desired_caps['deviceName']?=?'Android?Emulator'?9?desired_caps['appPackage']?=?'com.kugou.fanxing'10?desired_caps['appActivity']?=?'com.kugou.fanxing.splash.ui.SplashActivity'11?12?driver?=?webdriver.Remote('http://localhost:4723/wd/hub',?desired_caps)

?

4、元素定位.(未完待续)

?http://HdhCmsTestbaidu测试数据

分类 ? ? ? ? ? ?Appium ?

查看更多关于python+appium使用记录的详细内容...

  阅读:31次