摘要: A.替换某一文件中的字符串<replace file ="base/testing.txt">token="@temp@" value="${newstring}"</replace>解释:token是需要替换的标记;value是新值,将testing.txt文件中的@temp@替换为新值。B.替换某个文件夹中存在特定标记的文件<replace dir="temp" token="@CHARSET@" value="${webapp.charset}&qu 阅读全文
posted @ 2012-03-06 15:49 balaamwe 阅读(3488) 评论(0) 推荐(0) 编辑
摘要: Ant的核心功能有两个基本概念:特性和datatypes。1、datatypes: 可以将datatype认为是类似于java自身内建的类,他可以分发并提供任务。datatype构成了ant的构建文件如build.xml的基本结构。path和文件集是ant的两个非常重要的datatype 1)path--类似于java的classpath。其定义的方式通常如下: <classpath> <pathelement location="lib1/some1.jar"/> <pathelement path="lib1\some2.jar; 阅读全文
posted @ 2012-03-06 15:36 balaamwe 阅读(507) 评论(0) 推荐(0) 编辑
摘要: http://code.google.com/p/xtoolkit/wiki/JTLParserIntroduction当把JMeter使用命令行运行后,JMeter会把结果保存到一个指定文件中(使用-l参数指定)。这个文件记录了每条Query的响应时间、状态等,如:<?xml version="1.0" encoding="UTF-8"?><testResultsversion="1.2"><httpSamplet="232"lt="232"ts="13 阅读全文
posted @ 2012-03-06 10:11 balaamwe 阅读(2542) 评论(2) 推荐(0) 编辑