文章分类 -  QTP技巧-其他

摘要:Possible fixOpen a command prompt (Start > Run > type "cmd" > "Ok")Navigate to "/bin" directory (for example: "cd C:\Program Files\HP\QuickTest Professional")Run the following command:nt_tr.exe -removeReboot the machine. 阅读全文
posted @ 2013-01-10 15:50 dushuai 阅读(118) 评论(0) 推荐(0)
摘要:Public Function QTP_Release_Memory(hwnd) Extern.Declare micVoid,"SendMessageA","user32.dll","SendMessageA",micHwnd,micInteger,micInteger,micInteger SC_MINIMIZE = &HF020& SC_MAXIMIZE = &HF030& WM_SYSCOMMAND = &H112 Extern.SendMessageA hwnd,WM_SYSCOMMA 阅读全文
posted @ 2012-12-25 17:05 dushuai 阅读(480) 评论(0) 推荐(0)
摘要:Index - Indicates the order in which the object appears in the application coderelative to other objects. Location - Indicates the order in which the object appears on the screen. Values areassigned from top to bottom, and then left to right. CreationTime - Indicates the order in which the Brows... 阅读全文
posted @ 2012-09-26 16:32 dushuai 阅读(191) 评论(0) 推荐(0)
摘要:The SIEBEL add-in uses SIEBEL Automation API, so if a SIEBEL application islaunched before QTP, QTP will still be able to identify the Siebel objects. This isbecause even though Siebel runs inside a web Browser, QTP will not identify theBrowser properly but rather identify it as a normal native wind 阅读全文
posted @ 2012-09-26 09:56 dushuai 阅读(193) 评论(0) 推荐(0)
摘要:这里举例批量将脚本名的"_"替换成"-"'************************************************************************************************************************ 'Description: ' 'Assumptions: ' There is no unsaved test currently open in QuickTest. ' For more information, see 阅读全文
posted @ 2012-09-13 17:26 dushuai 阅读(335) 评论(0) 推荐(0)
摘要:Print Setting("executionline") + 1 阅读全文
posted @ 2012-09-07 14:15 dushuai 阅读(120) 评论(0) 推荐(0)
摘要:部分可以, 需要注意以下几点:1.QTP may not be able to identify objects. Though it would still be able to identify all web objects.2.Any screenshots capture using CaptureBitmap will give a black screen.3.QTP will fail on performing actions on non-web object.4.It will also fail on web objects if the ReplayType sett 阅读全文
posted @ 2012-09-02 21:41 dushuai 阅读(115) 评论(0) 推荐(0)