摘要: 这里以Get Element Size为例,Selenium2Library返回的是列表,AppiumLibrary返回的是字典。 列表用 ${width}获取;字典用 &{ui}[width] 获取。 具体测试代码及结果如下: 1、Selenium2Library 2、AppiumLibrary 阅读全文
posted @ 2017-05-10 12:07 andy_chan 阅读(8049) 评论(0) 推荐(0) 编辑
摘要: 最近把左边的传统模式,换成了右边通过js直接调api拿数据并渲染,于是变出现了ajax的跨域问题:XMLHttpRequest cannot load http://api.abc.com/?s=user/account_log&v=1.0. No 'Access-Control-Allow-Ori 阅读全文
posted @ 2017-05-05 14:00 andy_chan 阅读(11257) 评论(0) 推荐(0) 编辑
摘要: 测试背景 bg.jpg 测试图片 a.jpg 结果示例 代码demo 阅读全文
posted @ 2017-03-20 20:15 andy_chan 阅读(870) 评论(0) 推荐(1) 编辑
摘要: 一、服务器分布 1、LVS负载均衡 2、多台danmu server 3、Redis(集群)用于存储数据和夸服务器订阅通知 4、Cli server用于读取缓存数据并存到mysql,以及清空缓存 二、弹幕服务端 1、danmu-server使用swoole_websocket_server,中间是子 阅读全文
posted @ 2017-02-27 20:00 andy_chan 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 测试代码 测试结果 文档 阅读全文
posted @ 2016-12-30 14:31 andy_chan 阅读(2256) 评论(0) 推荐(0) 编辑
摘要: 转自: http://blog.csdn.net/cdy102688/article/details/21395835 阅读全文
posted @ 2016-11-24 12:51 andy_chan 阅读(4237) 评论(0) 推荐(0) 编辑
摘要: 近期项目需要在聊天的基础上新增红包功能,需求:仿微信(不含留言),但只能使用余额发红包。于是多次使用微信红包,了解各种交互界面及业务需求,如展示信息、分类(个人,群普通,群拼手气)、个数限制(100)、金额限制(200)、过期时间(24小时)等等,然后着手开发,下面提及的基本全是提供给app端的接口 阅读全文
posted @ 2016-10-30 16:01 andy_chan 阅读(4690) 评论(6) 推荐(4) 编辑
摘要: 1 <?php 2 header("Content-type:text/csv;charset=utf-8"); 3 header("Content-Disposition:attachment;filename=aa.csv"); 4 header('Cache-Control:must-revalidate,post-check=0,pre-check=0'); 5 header('Expi... 阅读全文
posted @ 2016-09-24 14:35 andy_chan 阅读(4108) 评论(0) 推荐(0) 编辑
摘要: http://www.zhihu.com/question/20446741 阅读全文
posted @ 2016-09-02 18:38 andy_chan 阅读(1579) 评论(0) 推荐(0) 编辑
摘要: 零、resource http://pan.baidu.com/s/1o83r3S2 一、centos 6.4、VirtualBox 5.0.14 二、nginx 1.9.9 安装 [root@pc ~]# cd /usr/local/src/ [root@pc src]# yum install 阅读全文
posted @ 2016-05-17 22:56 andy_chan 阅读(1287) 评论(0) 推荐(0) 编辑