- 博客(100)
- 资源 (21)
- 收藏
- 关注
原创 培训计划
1 http协议2 抓包 、 linux抓包3 测试mock4 接口测试的重点2 requests 库的使用 http://cn.python-requests.org/zh_CN/latest/3、python unittest 使用 , 结果校验 自动化目标:1、 了解现有的python自动化架构设计2、 每个人都可以单独完成...
2018-10-17 10:50:17 184
原创 自动化用例层级名称标准
1 每个块功能设置为一个文件夹 ,文件夹加入tag标签标示模块2 每个接口设置为一个一个testsuie,加入标签标示接口3 每个接口的case加入用例等级tag, LV1 - LV3, 主流程为LV1,一般为参数校验LV2 其他异常为L3 (适请求而定,统一标准)4 case名称 格式 (模块_)接口缩写(或简写)_ID_用例名5 每个case之间没任何关联,预置数据-执行用例-校验结果...
2018-10-17 10:48:20 744
原创 robotFramework 与testlink集成
场景:robotframework 执行完用例之后,将执行结果报至testlink。方案1: 通过TestLink-API-Python-client中的RF关键字 每条用例执行完成之后根据状态进行上报结果方案2:python 通过 TestLink-API-Python-client 库操作testlink通过分析测试报告中的output.xml执行结果,通过testli
2017-08-17 17:36:25 2302
原创 dubbo泛化 不使用接口jar包调用接口
自动化测试 性能测试使用:java代码转载于http://www.tuicool.com/articles/yQnyIjuhttp://dubbo.io/Generic+Reference-zh.htmpackage com.alibaba.dubbo.demo.consumer;import com.alibaba.dubbo.config.ApplicationConfig
2016-11-01 10:26:51 3066
原创 robot framework python 自定义类库(二)
自定义类库 根据RequestsLibrary改的:1 创建MyLibrary文件夹 2 创建 __init__.py 此处的类名MyLibrary 要和文件夹名字相同 传入的类名是下个要写的类from MyKeywords import MyKeywordsfrom version import VERSION_version_ = VERSION
2016-10-12 18:25:12 777
转载 Robot Framework JAVA编写 keyword 远程调用 (一)
使用robot framework3.0 + ride python 做自动化测试时 遇到一些特殊的加密 或者其他 需要自己去实现keyword,之前使用java写的servelt,使用request进行调用返回结果,后来看到一篇文章,写的是java编写keyword如何实现远程调用,和servlet原理是一样的用的是RF自带的包实现的,这种比较方便简单。转载地址:https://blog.c
2016-10-10 14:37:54 1441
原创 重启tomcat shell
#!/bin/bash#1、判断服务是否可用 2、不可用重启tomcat#*/30 * * * * /home/wsm/restart.sh >> /home/wsm/restart.log#停止tomcatfunction killTomcat(){pid=`ps -ef | grep "/home/wsm/bin/tomcat" | grep -v grep | awk '{prin
2014-12-12 12:29:03 715
原创 C3P0链接池问题
--- Cause: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: The last communications with the server was 28811 seconds ago, which is longer than the server configured value of 'wait_timeout'.
2014-10-31 12:17:02 529
转载 PHP + •Apache
http://www.cnbhttp://www.cnblogs.com/pharen/archive/2012/02/06/2340628.htmllogs.com/pharen/archive/2012/02/06/2340628.html
2014-10-29 15:34:03 391
原创 shell 拿网站的httpcode
#!/bin/bashfor i in `cat url.txt`doSTATUS_CODE=`curl -o /dev/null -s -m 13 --connect-timeout 13 -w %{http_code} $i`echo -e "$i:\t$STATUS_CODE"if [ $STATUS_CODE -ne 200 ];then echo -e "$i
2014-09-23 10:04:07 575
原创 LoadRunner 发送请求
Action(){ lr_start_transaction("report"); //lr_think_time(0); web_add_header("Content-Type","application/json"); web_reg_save_param("result_str","LB=HTTP/1.1 ","RB= OK",LAST); //web_reg_
2014-08-18 14:23:18 697
原创 微型 Python Web 框架 Bottle
安装 http://heroin.so/python/2012/05/21/bottle-web-learn/http://heroin.so/python/2012/06/07/simple-python-web-bottle/
2014-07-02 08:48:13 547
转载 LINUX关闭防火墙
(1) 重启后永久性生效:开启:chkconfig iptables on关闭:chkconfig iptables off(2) 即时生效,重启后失效:开启:service iptables start关闭:service iptables stop需要说明的是对于Linux下的其它服务都可以用以上命令执行开启和关闭操作。
2014-05-21 15:34:15 419
原创 python 生成测试文件
#coding=utf-8import timeimport randomimport osimport sysimport datetime#sys.argv[1]#{"nodeID": "1001","url": "http://player.youku.com/player.php/Type/Folder/Fid/22230731/Ob/1/sid/XNzEwNzY5Njk2/
2014-05-20 20:02:10 651
转载 python中时间转换
使用之前import:import time,datetime下面的函数在python2.7里可以正常运行,但python2.4可能不支持某些方法。比如python2.4.3中报错:AttributeError: type object 'datetime.datetime' has no attribute 'strptime' 格式化当前时间则为:
2014-05-20 17:00:32 633
转载 开发中的特殊字符
web开发中的特殊字符 URL中的特殊字符 URL中的特殊字符是不能再URL中直接传递的,需要进行编码。编码的格式为:%加字符的ASCII码,即一个百分号%,后面跟对应字符的ASCII(16进制)码值。 字符 名称 16进制值+ URL中的+表示空格 %2B空格 URL中的空格可以用+号或者编码 %20/ 分割
2014-05-14 17:10:35 635
原创 lsyncd+rsync同步数据
rsync3.0.6-9直接yum可以安装lsyncd2.0.4-1http://pkgs.org/centos-6/repoforge-x86_64/lsyncd-2.0.4-1.el6.rf.x86_64.rpm.htmlftp://ftp.pbone.net/mirror/apt.sw.be/redhat/el6/en/
2014-04-28 15:16:05 529
原创 mysql 查询timestamp 问题
SELECT alarmId, alarmContent, alarmTime, taskId, taskType, alarmType FROM (SELECT alarmId, alarmContent, alarmTime, taskId, taskType, alarmType FROM alarm_data WHERE alarmType= 1 AND taskId ='1854')
2014-04-24 11:20:04 548
原创 linux 命令curl 发送post请求
echo '165912014-04-17 00:00:002014-04-17 23:59:59'|curl -X POST -H 'Content-type:text/xml' -d @- http://192.168.72.116:8080/axis2/services/xmfServices
2014-04-17 16:22:26 1100
原创 http Reponse
import java.io.*;import javax.servlet.*;import javax.servlet.http.*;import sun.misc.BASE64Decoder;public class rep extends HttpServlet { public void doHead(HttpServletRequest request, Htt
2014-03-31 17:40:45 516
转载 oracle sql 性能点
1:恰当控制事务大小,commit不要过于频繁。& 说明1. 要根据具体业务合理控制事务的大小,在需要提交时才提交事务,不要无目的减小事务;2. 事务过小,频繁commit会带来以下影响:Ø 程序性能降低,执行时间长,因为需要花费大量时间来等待log filesync事件;Ø 产生的总的redo、undo数量变大;Ø 系统总的栓锁数量变大,造成并发能力减弱;Ø
2014-03-29 10:45:45 412
转载 MySQL Cluster的常见问题
MySQL Cluster是MySQL适合于分布式计算环境的高实用、高冗余版本。它采用了NDB Cluster存储引擎,允许在1个Cluster中运行多个MySQL服务器。MySQL Cluster是一种技术,该技术允许在无共享的系统中部署“内存中”数据库的Cluster。通过无共享体系结构,系统能够使用廉价的硬件,而且对软硬件无特殊要求。此外,由于每个组件有自己的内存和磁盘,不存
2014-03-27 12:07:14 441
原创 Mysql 集群搭建
集群搭建 : http://blog.csdn.net/yang1982_0907/article/details/20716845遇到问题:A -SQL节点没有连接上:1、防火墙2、selinux关闭3、/etc/my.cnf 权限644 B-远程连接MysqlUPDATE user SET Password = PASSWORD('root')
2014-03-25 17:47:56 464
转载 查看 SELinux状态及关闭SELinux
查看SELinux状态:1、/usr/sbin/sestatus -v ##如果SELinux status参数为enabled即为开启状态SELinux status: enabled2、getenforce ##也可以用这个命令检查关闭SELinux:1、临时关闭(不用重启机器):
2014-03-25 14:48:55 378
原创 了解 HTTP 身份验证
http://technet.microsoft.com/zh-cn/magazine/ms789031(VS.110).aspxhttp://hi.baidu.com/zkheartboy/item/0de07f5134cf8c958c12ed54
2014-03-18 18:17:35 462
原创 FTP匿名登录
FTP的匿名登录一般有三种:1、 用户名:anonymous 密码:Email或者为空2、 用户名:FTP 密码:FTP或者为空3、 用户名:USER 密码:pass
2014-03-17 16:35:53 1754
转载 XML中的转义字符
HTML中的转义字符 HTML中,&等有特别含义,(前两个字符用于链接签,&用于转义),不能直接使用。使用这三个字符时,应使用他们的转义序列,如下所示:& 或 &&和< 或 小于号> 或 >>大于号"
2014-03-17 16:20:12 435
原创 【转】linux 下的UDP client/server 示例
http://www.cnblogs.com/lidan/archive/2012/05/04/2482877.html
2014-03-17 10:22:30 571
转载 MySQL Database Error: Row size too large.
目前在搞一个自定义数据结构的查询项目,使用的数据库的字段较多,出现了"MySQL Database Error: Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. You have to change some columns to TEXT or BLO
2014-03-13 16:45:27 640
原创 查询IP地理位置、身份证所在地、手机归属地的接口
新浪的IP查询接口:新浪的:http://counter.sina.com.cn/ip?ip=IP地址返回Js数据,感觉不是很精确,可以把问号后面的去掉,直接返回本机对应的IP所在地有道的IP查询接口:返回XML数据:http://www.yodao.com/smartresult-xml/search.s?type=ip&q=0.0.0.0返回
2014-03-04 09:25:47 674
原创 snmp oid I/O监测
[root@MN3 mn]# snmpwalk -v 2c -c public localhost 1.3.6.1.2.1.25.2.3.1HOST-RESOURCES-MIB::hrStorageIndex.1 = INTEGER: 1HOST-RESOURCES-MIB::hrStorageIndex.3 = INTEGER: 3HOST-RESOURCES-MIB::hrStor
2014-01-04 18:23:21 930
原创 hadoop 配置文件
hadoop-env.sh 设置环境变量,运行用的core-site.xml hadoop core的配置项,例如HDFS mapreduce常用的I/Ohdfs-site.xml hadoop守护进程的配置项,包括namenode,辅助manenode 和datanode等mapred-site.xml MapReduce守护进程配置项,包括jobtracker和taskt
2013-12-19 09:53:48 525 5
jsp网上书城
2013-06-02
JSP财务系统|Mysql
2013-06-02
软件测试理论
2013-06-02
simple-tags
2013-06-02
采集侠2.7破解版
2013-06-02
wp-robots-txt.1.0 WP插件
2013-06-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人