欢迎访问 拍子 的个人空间

收藏帖

  • QTP日志实践的几点总结

    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:\" .

我的资料

  • 用户组: 中级站友
  • 发帖数: 32
  • 发短消息
  • 注册日期: 2010-03-10
  • 更新日期: 2019-11-06
Open Toolbar