随笔分类 -  Mac&ios

安装spy-debugger查看前端日志
摘要:有时需要查看前端页面日志,但是前端同学有时忘记开启vConsole。为了调试方便,最好在本地可以查看前端日志,做到一劳永逸。 1.安装node 网上搜教程 2.安装spy debugger 3.启动spy debugger 4.手机安装证书,开启代理 ip:本机IP port:9888 5.操作查看 阅读全文
posted @ 2019-03-25 15:57 singleSpace 阅读(823) 评论(0) 推荐(0)
Mac网络连接问题
摘要:场景:同一个网络,其他电脑和手机可以访问远程网络端口为443的网站,如博客园,唯独我的电脑不能访问 解决方法:查看路由器的子网掩码和DNS地址,将IP设置为手动,输入ip、子网掩码和DNS即可 阅读全文
posted @ 2018-12-12 16:42 singleSpace 阅读(257) 评论(0) 推荐(0)
Mac部分软件安装教程
摘要:1.安装Office "Office破解版安装教程:https://www.jianshu.com/p/f45894b67ec7" 2.安装破解版ps 1.安装ps,最后开始试用 2.解压缩Adobe zii cc2017.zip,点击patch or drag,破解完成 3.Charles 1.安 阅读全文
posted @ 2018-11-28 11:15 singleSpace 阅读(446) 评论(0) 推荐(0)
Mac操作
摘要:1.查看U盘大小 选择,点击空格 2.截屏 全屏:shift+command+3 选择区域:shift+command+4 阅读全文
posted @ 2018-11-03 16:27 singleSpace 阅读(189) 评论(0) 推荐(0)
WebDriverAgent原理
摘要:传输层:HTTP/HTTPS/HSF/Socket 安全性:HTTP/HTTPS 功能、单元 性能 限流、加服务器 目的:稳定的服务的TPS摸高测试(短时间的极限,不可持续) API接口测试 施压 服务端监控(CPU百分比、内存、网络(带宽、请求队列)) 计算密集型关注CPU,80%之后,CPU由于 阅读全文
posted @ 2018-10-26 07:38 singleSpace 阅读(2360) 评论(0) 推荐(0)
Air test 基于屏幕比例实现滑动的方法
摘要:```#python # -*- encoding=utf8 -*- __author__ = "chenshanju" __docs__ = "基于iOS类实现滑动" from airtest.core.api import * from airtest.core.ios import IOS auto_setup(__file__) class Base(): def __init_... 阅读全文
posted @ 2018-10-25 22:01 singleSpace 阅读(6239) 评论(0) 推荐(0)
airtest IDE问题汇总
摘要:FAQ 1.同一个脚本,使用IDE可以运行,使用命令行运行报错 原因:曾经开启过anyproxy代理,添加过HTTP_PROXY环境变量,将其取消即可 https://www.cnblogs.com/csj2018/p/9739143.html 2.Air test生成report图片不可见,如下图 阅读全文
posted @ 2018-10-10 19:12 singleSpace 阅读(4514) 评论(0) 推荐(0)
Air test ios类使用
摘要:1.iOS手机的滑动 相关代码 1.1直接使用IOS类进行滑动 1.2编写一个类根据输入的比例值实现滑动 airtest ios类源代码 阅读全文
posted @ 2018-09-25 15:40 singleSpace 阅读(1496) 评论(0) 推荐(0)
WDA编译失败问题
摘要:1.放假回来,wda编译失败,报错如下 log 2018 09 25 10:03:09.020964+0800 WebDriverAgentRunner Runner[335:33309] +[CATransaction synchronize] called within transaction 阅读全文
posted @ 2018-09-25 10:32 singleSpace 阅读(866) 评论(0) 推荐(0)
ios libimobiledevice安装
摘要:1.安装步骤 1.1 安装brew 打开终端输入: 1.2 添加环境变量: sudo vi /etc/profile,修改如 1.3 安装node 1.4 开始安装ideviceinstaller环境 ideviceinstaller使用 u, udid UDID 根据设备的udid选择设备Targ 阅读全文
posted @ 2018-09-20 13:11 singleSpace 阅读(1821) 评论(0) 推荐(0)
6-3-3ios自动化-数据驱动
摘要:https://testerhome.com/topics/14247 python !/usr/bin/env python3 coding:utf 8 from appium import webdriver import time,selenium,openpyxl,unittest clas 阅读全文
posted @ 2018-09-18 20:41 singleSpace 阅读(219) 评论(0) 推荐(0)
6-3-2绕过appium的iOS测试
摘要:1.WDA自带的inspector + 1.1.启动WDA + Xcode启动:product test,适合个人调试 + 命令行启动:适合持续集成 + 1.2.iproxy 8100 8100 不启动iproxy,inspector不能访问 + 1.3.查看WDA自带的inspector 浏览器 阅读全文
posted @ 2018-09-18 18:29 singleSpace 阅读(1028) 评论(0) 推荐(0)
6-3-1appium iOS
摘要:环境准备 + brew install carthage + npm i g ios deploy + brew install libimobiledevice HEAD + brew install ideviceinstaller + 使用brew安装时,如果出现update home bre 阅读全文
posted @ 2018-09-18 15:04 singleSpace 阅读(395) 评论(0) 推荐(0)
xcode编译失败
摘要:iPhone自动化需要使用WDA。经过一段时间,再次编译,会出现WDA编译失败的问题,提示 The operation couldn’t be completed. Unable to log in with account '123456@qq.com'. The login details fo 阅读全文
posted @ 2018-09-13 10:10 singleSpace 阅读(479) 评论(0) 推荐(0)
testNG断言
摘要:https://junit.org/junit4/javadoc/latest/org/junit/Assert.html assertThat 断言:Hamcrest Matchers 对象: equalTo 测试对象相等使用Object.equals方法 hasToString 测试Object 阅读全文
posted @ 2018-08-09 23:38 singleSpace 阅读(957) 评论(0) 推荐(0)
查看iPhoneCPU、内存占用
摘要:使用Xcode可以查看iPhone cpu 内存 disk 网络占用读取 Xcode-Opem Developer Tool-Instruments, 在打开的窗口里选择Activity Minitor,进入Instrument,可以选择cpu、memory、disk,network,点击录制(红点 阅读全文
posted @ 2018-07-11 14:51 singleSpace 阅读(1185) 评论(0) 推荐(0)
ios关闭自动更新
摘要:iPhone系统更新超级烦人,避免测试机升级的方法 1. 设置禁用网络 设置-网线局域网-使用WLAN与蜂窝移动网的应用,将设置项设置为关闭 2. 一劳永逸,安装证书, 证书https://oldcat.me/web/NOOTA9.mobileconfig 使用说明https://semialpha 阅读全文
posted @ 2018-07-04 18:54 singleSpace 阅读(588) 评论(0) 推荐(0)