摘要: 以联通卡为例: 1.关闭手机wifi 2.开启数据流量 3.apn选择3gwap(选择3gnet会连接不到10.0.0.172:80,具体原因还不清楚) 阅读全文
posted @ 2018-06-05 14:34 rose_jeff 阅读(197) 评论(0) 推荐(0) 编辑
摘要: 项目 res/ 目录内支持的资源目录。 位图文件(.png、.9.png、.jpg、.gif)或编译为以下可绘制对象资源子类型的 XML 文件: 位图文件 九宫格(可调整大小的位图) 状态列表 形状 动画可绘制对象 其他可绘制对象 请参阅 可绘制对象资源。 要以原始形式保存的任意文件。要使用原始 I 阅读全文
posted @ 2018-05-29 15:33 rose_jeff 阅读(486) 评论(0) 推荐(0) 编辑
摘要: executeShellCommand("pm grant packageName permissionName"); 阅读全文
posted @ 2018-05-29 11:33 rose_jeff 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Method method = null;IBinder binder = null;try { method = Class.forName("android.os.ServiceManager").getMethod("getService", String.class); binder = ( 阅读全文
posted @ 2018-05-24 17:06 rose_jeff 阅读(102) 评论(0) 推荐(0) 编辑
摘要: From: https://stackoverflow.com/questions/40881680/whats-is-the-difference-between-uiobject-and-uiobject2-other-than-uiautomator-2/45336756#45336756 W 阅读全文
posted @ 2017-11-27 16:31 rose_jeff 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 之前遇到一个问题,使用, Jedis jedis = new Jedis(redisHost, redisPort); 这种方式连接Redis DB时,始终连接不上,后面发现是redisPort的原因,因为Redis数据库的端口是6379,我在 使用Docker开启Redis时,使用的如下方式: r 阅读全文
posted @ 2017-08-24 18:46 rose_jeff 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1.精确抛出异常 package com.rose.test.testng;import org.testng.annotations.AfterMethod;import org.testng.annotations.Test;public class LocalTest { @AfterMeth 阅读全文
posted @ 2017-08-24 18:35 rose_jeff 阅读(1025) 评论(0) 推荐(0) 编辑
摘要: 环境准备: Ubuntu 16.04 系统,配置TestNG环境,安装ant,jenkins,我是使用命令方式安装的: 安装ant: sudo apt install ant 安装Jenkins: wget -q -O - https://jenkins-ci.org/debian/jenkins- 阅读全文
posted @ 2016-11-10 15:25 rose_jeff 阅读(848) 评论(0) 推荐(0) 编辑