上一页 1 ··· 4 5 6 7 8 9 10 11 下一页
打算使用 Python 语言编写 appium 自动化测试脚本 一、前提: 1.安装Python语言 到Python官网下载最新版本:https://www.python.org/ 2.安装Python编辑器PyCharm 二、安装 Appium-Python-Client 打开CMD窗口,输入pi Read More
posted @ 2018-01-27 08:47 happy_xiaoxiao Views(234) Comments(0) Diggs(0) Edit
安装Appium 1.下载并安装:https://bitbucket.org/appium/appium.app/downloads/ 2. 系统变量PATH 增加 C:\Program Files (x86)\Appium\node_modules\.bin 3.检查appium是否OK Read More
posted @ 2018-01-26 17:18 happy_xiaoxiao Views(160) Comments(0) Diggs(0) Edit
参见《Android学习》->《Android SDK环境搭建》 Read More
posted @ 2018-01-26 17:12 happy_xiaoxiao Views(130) Comments(0) Diggs(0) Edit
摘自:http://www.testclass.net/appium/appium-base-summary/ 1、特点 appium 是一个自动化测试开源工具,支持 iOS 平台和 Android 平台上的原生应用,web应用和混合应用。 “移动原生应用”是指那些用iOS或者 Android SD Read More
posted @ 2018-01-26 16:10 happy_xiaoxiao Views(350) Comments(0) Diggs(0) Edit
1.因为在Notepad默认编码为Ascll,所以在首行加入编码注释(必须放在第一行或者第二行),# -*- coding:utf-8 -*- 2.因为是按坐标执行,代码只支持对应的分辨率,手机分辨率可在设置中查看或者画图软件中查看最大坐标值,#手机分辨率为1080*1920 3. 每个用例可以封装 Read More
posted @ 2018-01-11 15:00 happy_xiaoxiao Views(209) Comments(0) Diggs(0) Edit
if __name__ == '__main__' 我们简单的理解就是: 如果模块是被直接运行的,则代码块被运行,如果模块是被导入的,则代码块不被运行。 Read More
posted @ 2018-01-11 13:56 happy_xiaoxiao Views(183) Comments(0) Diggs(0) Edit
新建bat文件,使用call调用monkeyrunner执行py脚本 @echo off echo begin testcase001 %time% %date%call monkeyrunner d:\mk\install.pyecho end testcase001 %time% %date% Read More
posted @ 2018-01-09 17:17 happy_xiaoxiao Views(357) Comments(0) Diggs(0) Edit
坐标单位为像素,获取方式包括手机自带、画图软件和photoshop软件。 方式一、android4.0以上系统手机自带坐标功能,在设置->开发者选项->显示指针位置 方式二、画图或photoshop软件获取 1.手机截屏(一般为home+power键) 2.将手机与电脑通过USB线相连,直接拷贝手机 Read More
posted @ 2018-01-05 15:33 happy_xiaoxiao Views(1931) Comments(0) Diggs(0) Edit
1.打开创建好的Android模拟机 (使用AVD Manager.exe打开,或者使用cmd窗口 emulator -avd test2打开) 2.打开cmd窗口,输入monkeyrunner,然后输入相应的脚本执行 3.安装apk result=device.installPackage('d: Read More
posted @ 2018-01-04 14:20 happy_xiaoxiao Views(318) Comments(0) Diggs(0) Edit
1.cmd窗口中输入emulator -avd test 启动AVD时报错: Running an x86 based Android Virtual Device (AVD) is 10x faster. We strongly recommend creating a new AVD. 这个说的 Read More
posted @ 2018-01-02 14:07 happy_xiaoxiao Views(11880) Comments(1) Diggs(1) Edit
上一页 1 ··· 4 5 6 7 8 9 10 11 下一页