标题: QTP保存不了脚本 提示 :general error while saving the test [打印本页] 作者: rider1989 时间: 2011-6-18 21:36 标题: QTP保存不了脚本 提示 :general error while saving the test 本帖最后由 rider1989 于 2011-6-18 21:37 编辑
1、新建一个test,粘贴如下代码:
Dim fso, MyFile
Set fso = CreateObject("scripting.FileSystemObject")
Set MyFile = fso.CreateTextFile("C:\testfile.txt", True)
MyFile.WriteLine ("This is a test")
MyFile.WriteLine ("This is another test")
MyFile.Close