2015年5月28日
摘要: 随着html5的广泛应用,基于websocket协议的即时通讯有了越来越多的使用场景,本文使用python中的websocket-client模块来做相关的接口测试 1 import webclient 2 3 def creatWS(user,password):#生成ws链接的函数 4 ... 阅读全文
posted @ 2015-05-28 16:25 sean-sun 阅读(5481) 评论(0) 推荐(0) 编辑
  2015年4月28日
摘要: post方法提交的是表单,要用data放dictget方法请求的是参数,要用params放dictHTTP头部是大小写不敏感的 阅读全文
posted @ 2015-04-28 11:37 sean-sun 阅读(151) 评论(0) 推荐(0) 编辑
  2015年4月25日
摘要: python模块requests返回值用json()["h"][key]可以取出下面的value 阅读全文
posted @ 2015-04-25 13:58 sean-sun 阅读(1075) 评论(0) 推荐(0) 编辑
  2015年3月14日
摘要: 最近在virtualbox中安装了Ubuntu 14,配置了一个mysql server,设置的桥接网络模式。在其他电脑连接的时候,总是报2003错误。开始以为是localhost没有置换为%,运行update语句将其置换,依然不行。后来发现是因为mysql的默认配置文件/etc/mysql/my.... 阅读全文
posted @ 2015-03-14 22:22 sean-sun 阅读(403) 评论(0) 推荐(0) 编辑
  2015年3月13日
摘要: win7系统,在python中调用ChromeDriver 一直报错“selenium.common.exceptions.WebDriverException: Message: 'ChromeDriver executable needs to be available in the path.... 阅读全文
posted @ 2015-03-13 14:42 sean-sun 阅读(1481) 评论(2) 推荐(0) 编辑