软件 pt 测试,Log analysis Tool for PT

Log analysis Tool for PT:

1. PT data collection

2. log collection

'创建一个FileSystemObject对象的事例

Set   MyFileObject=CreateObject("Scripting.FileSystemObject")

'创建一个Folder对象

Set   MyFolder=MyFileObject.GetFolder("D:\HKSG2013_iCRM2\PT\UAT data preparation\log\log")'

'循环显示其中文件

dim   count

count=0   '计算文件个数

For   Each   thing   in   MyFolder.Files

outputline(thing)

count=count+1

Next

sub outputline(filename)

set fso=createobject("scripting.filesystemobject")

set file=fso.opentextfile(filename)

dim i

Const ForAppending=8

for i=0 to 2

i=i+1

'skipline 跳过一行

h=file.readline

'h=h&vbcrlf

Next

file.close

'set file=fso.createtextfile("Log_summary.txt")

Set file=fso.OpenTextFile("D:\HKSG2013_iCRM2\PT\UAT data preparation\log\Log_summary.txt",ForAppending)

'file.write h

file.WriteLine h

file.close

End sub

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值