2007-06-18 14:48:22 / [QuickTest Professional]
背景:在日常使用QTP中,因为有QC的存在,导致了QTP的察看结果的功能并不是用的很顺手,所以笔者在脱离开QC的情况下,在工作实践中总结了QTP的日志实现的一些方法。1、生成txt文件。这是从开发那边得到的启示。首先定义一个sub:Public Sub WriteLineToFile(message)Const ForReading = 1, ForWriting = 2, ForAppending = 8Dim fileSystemObj, fileSpecDim currentTimecurrentDate = DatecurrentTime = TimetestName = "log"Set fileSystemObj = CreateObject("scrīpting.FileSystemObject")fileSpec ="C:\" .
查看(5969)
评论(24)