博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2014年4月15日

摘要: Eclipse安装插件经常使用的是直接安装的方式,就是将插件中包含的plugins和features文件夹中的内容直接复制到了Eclipse的plugins和features文件夹内,这样很容易导致插件混乱,无法精确的判断哪些是Eclipse默认的插件,哪些是后来扩展的插件,如果通过扩展安装的方式就可以更好的管理插件 阅读全文

posted @ 2014-04-15 15:22 凌风孤鸿 阅读(246) 评论(0) 推荐(0) 编辑

摘要: 拷贝MySQL的JDBC驱动到Tomcat的lib路径下 配置全局数据源或者单个Web应用的局部数据源 在Tomcat4.x或者之前的版本中需要在web.xml中添加 在Java代码中使用 阅读全文

posted @ 2014-04-15 15:05 凌风孤鸿 阅读(1520) 评论(0) 推荐(0) 编辑

2013年9月26日

摘要: Java本身提供了一个集合的帮助类java.util.Collections,提供了对集合操作一些方法,借助于此类提供的sort方法可以实现对List进行排序操作import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;import java.util.List;public class CollectionsTest { public static void main(String[] args) { List list=new ArrayList(); //向List中添加3个.. 阅读全文

posted @ 2013-09-26 12:56 凌风孤鸿 阅读(2905) 评论(2) 推荐(1) 编辑

2013年7月23日

摘要: 在Recording Controller中添加一个HTTP Cookie ManagerRecording Controller右键-->add-->config element-->HTTP Cookie Manager就可以保存登录状态。 阅读全文

posted @ 2013-07-23 16:31 凌风孤鸿 阅读(705) 评论(0) 推荐(0) 编辑

摘要: 一、JMeter有一个内置的代理服务器,主要用户使用浏览器录制脚本,在左侧的WorkBench中添加HTTP Proxy Server即可,其中port表示代理服务器段口号,URL Patterns to Exclude表示需要过滤得文件,录制脚本时不进行捕捉方式是".*\.css",引号内的内容。可以用于过滤gif、png、ico等文件设置完之后需要改变浏览器代理这样设置之后就能够正常地使用浏览器进行脚本的录制。二、对JMeter通过代理服务器进行压力测试在命令行中进入JMeter的bin目录运行jmeter -H 代理服务器域名或IP -P 代理服务器段口号 -u [用 阅读全文

posted @ 2013-07-23 16:26 凌风孤鸿 阅读(1112) 评论(0) 推荐(0) 编辑

摘要: 1、将用户名密码保存在cvs或txt文件中格式为username1,password1username2,password2username3,password4一行一个,用户名和密码之间使用逗号隔开2、在JMeter中点击Options-->Function Helper Dialog-->Choose a function中选择__CVSReadCSV file to get values from | *alias的value值为保存的cvs或txt的文件路径和文件名、CSV文件列号| next| *alias 表示当前读的行,填0-->点击Generate就能生成函数 阅读全文

posted @ 2013-07-23 16:12 凌风孤鸿 阅读(2141) 评论(0) 推荐(0) 编辑

摘要: 从前一个页面(含有服务器段返回给客户端的参数,用于在下一次请求时验证)中添加后置处理器中的Regular Expression Extractor,使用正则表达式对参数进行提取。在用到这些变量时可以使用${t}这种方式来代替。 阅读全文

posted @ 2013-07-23 16:04 凌风孤鸿 阅读(2209) 评论(0) 推荐(0) 编辑

2013年5月3日

摘要: {field:'assertEntity',title:'资产名称',editor:{ type:'validatebox', options:{ required:true } },formatter:function(value,rowData,rowIndex){ return rowData.assertEntity.assertName; },width:30}, 把上面红色部分保持一致后$('#tt').datagrid('insertRow',{ index:0,row:{ fa... 阅读全文

posted @ 2013-05-03 09:13 凌风孤鸿 阅读(1000) 评论(0) 推荐(0) 编辑

2011年10月30日

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;using System.IO;namespace Bina... 阅读全文

posted @ 2011-10-30 14:39 凌风孤鸿 阅读(141) 评论(0) 推荐(0) 编辑

摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Runtime.Serialization;using System.Runtime.Serialization.Formatters.Binary;using System.IO;namespace Bina... 阅读全文

posted @ 2011-10-30 14:34 凌风孤鸿 阅读(162) 评论(0) 推荐(0) 编辑