QTP提示“General Error while saving the test”,腳本無(wú)法保存
今天在使用QTP的過(guò)程中出現上述錯誤.
保存QTP腳本,提示“General Error while saving the test”,腳本無(wú)法保存,解決方法如下:
1、先運行下段代碼:
Dim fso, MyFile
Set fso = CreateObject("scrīpting.FileSystemObject")
Set MyFile = fso.CreateTextFile("C:\testfile.txt", True)
MyFile.WriteLine ("This is a test")
MyFile.WriteLine ("This is another test")
MyFile.Close
2、看看有沒(méi)有報錯:
運行提示錯誤:ActiveX 部件不能創(chuàng )建對象: 'scrīpting.filesystemobject'
3、出現該錯誤的原因是操作系統的問(wèn)題。是你的activex有問(wèn)題!QTP是集成這個(gè)進(jìn)行文件保存的。
4、你的System32目錄下有個(gè)scrrun.dll的文件,看在不在,如果有,就regsvr32 scrrun.dll一下,沒(méi)有的話(huà),考一個(gè)過(guò)來(lái)。
相關(guān)閱讀:
- 軟件測試工具QTP經(jīng)驗總結 (墨竹, 2010-11-04)
- 軟件測試工具QTP參數化global和local的區別 (墨竹, 2010-11-08)
- 軟件測試工具中選擇QTP測試工具的一個(gè)可行性分析文檔 (墨竹, 2010-11-12)
- 功能測試自動(dòng)化工具QTP 11 ( QuickTest Professional 11)簡(jiǎn)單介紹 (seanhe, 2010-11-24)
- 如何在QTP Extensibility Accelerator 自定義Web Add-in對象添加識別屬性 (seanhe, 2010-11-24)
導入論壇 引用鏈接 收藏 分享給好友 推薦到圈子 管理 舉報
TAG: Error error General qtp QTP saving test Test TEST
-
引用 刪除 aiongold03 / 2011-03-17 09:11:49
-
支持一下
http://www.aiongold.org.uk
http://www.itemgarden.com
http://www.buywowgold.ws