QTP

UFT检查点类型

。_饼干妹妹 提交于 2019-12-09 15:24:11
QTP中的检查点类型 QTP支持在测试步骤中添加如下类型的检查点: 1。标准检查点(Standard Checkpoint):用于检查测试对象的属性 2。图像检查点(Image Checkpoint):用于检查被测应用程序的图像 3。位图检查点(Bitmap Checkpoint):把检查被测应用程序的某个区域当成位图来检查 4。表格检查点(Table Checkpoint):用于检查表格信息 5。文本检查点(Text Checkpoint):用于检查文本字符串是否在应用程序中的适当位置出现 6。文本区域检查点(Text Area Checkpoint):用于检查文本字符串是否按既定的标准出现在应用程序的预定区域 7。可访问性检查点(Accessibility checkpoint):用于检查网页是否满足W3C的网页内容可访问性指南的要求 8。页面检查点(Page Checkpoint):用于检查网页的属性 9。数据库检查点(DataBase Checkpoint):用于检查应用程序所访问的数据库 10。XML检查点(XML Checkpoint):用于检查XML文档 来源: oschina 链接: https://my.oschina.net/u/2391658/blog/704823

can we execute QTP script on remote machine by keeping session minimized

泪湿孤枕 提交于 2019-12-09 04:57:15
问题 I have couple of machines on which I wish to schedule exceutions. I need to access these machines remotely for exceution. Whenever I start exceution from these machines and minimize the session my script fails. So just curious to know whether QTP scripts can be executed while keeping sessions minimized. If yes what changes needs to be made in script. Thanks. 回答1: The problem you're facing is that if you minimize your display the remove machine knows that it doesn't have a display and ignores

move from QTP to selenium , can anyone help me to find a framework for reporting purposes [closed]

你。 提交于 2019-12-08 11:04:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . my company want to move from QTP to selenium , can anyone help me to find a framework for reporting purposes i just need to make sure when the step is failed there is a report to till me that :) thank you 回答1: Firstly you must understand that unlike QTP, Selenium is NOT a test tool. It is just a library to allow

VB Script: how to find whether a DIV tag contains specified text

别说谁变了你拦得住时间么 提交于 2019-12-08 05:36:17
myaddress= "Sk ks, Röntenstrasse 31, Wolle" I am writing VB script in QTP. how can I find out whether if any DIV tag contains this "myaddress"? if it exists msgbox "it exists" if not msgbox "it doesn't". Thanks in advance. Using QTP you can use the innertext property to find an element. If Browser("bb").Page("pp").WebElement("html tag:=div", "innertext:=" & myaddress).Exist ' Treat element End If BTW, if myaddress is just part of the inner text you should anchor it with wild cards on both sides: "innertext:=.*" & myaddress & ".*" 来源: https://stackoverflow.com/questions/9534989/vb-script-how-to

UFT 12.01 “.click” and “FireEvent” doesn't work

青春壹個敷衍的年華 提交于 2019-12-08 04:30:37
问题 I had an already successful running code but after some application maintenance/deployment. The same code doesn't work. Now the problem is that the same code works on different system. I have a code - Browser("").Page("").WebElement("").click - which used to run earlier but now it doesn't. The properties have remained the same and highlights when highlighted, while executing it goes to the application but doesn't click. The same is the case for FireEvent . I have tried different methods to

How can I import a function into my QTP test while it's running?

陌路散爱 提交于 2019-12-08 01:01:26
问题 I've built many functions for my QTP 10 tests, and many of those functions rely on other, related functions. I would like to have my functions import any other functions that they require. Currently, I have to go through each of my functions and associate each of their dependencies by hand. While I'm aware that ExecuteFile "C:\Functions\SampleFunction.vbs" would work, the downside is that QTP is unable to display any of the code it just imported. That means that debugging the code is a

HP QTP 11: Script execution fails when running in Firefox, but Debug Viewer shows result of operation

不问归期 提交于 2019-12-07 13:10:52
问题 I'm trying to run our automation, written for IE, on Firefox 3.6 and facing those frustrating problem: I have a code: Set cellDataItems = Browser().Page().WebElement().Object.getElementsByTagName("div") For i = 0 to cellDataItems.length -1 MsgBox (cellDataItems.item(i).innerHTML) Next When script goes to line with MsgBox if stops with error: TypeError: obj[FuncName] is undefined Then I press debug, see that i=0. I added cellDataItems.item(i).innerHTML into debug viewer, it shows it's value

QTP is Not able to Click on OK button of Window popup when the VM is minimised

时光总嘲笑我的痴心妄想 提交于 2019-12-07 09:30:18
问题 I am executing the QTP scripts from Virtual mechine. QTP is not able to click on OK button of Window pop-up when VM is minimised. below is the code If Browser("name:=.*").Dialog("text:=Message from webpage","nativeclass:=#32770").Exist(50) Then Browser("name:=.*").Dialog("text:=Message from webpage","nativeclass:=#32770").Activate Browser("name:=.*").Dialog("text:=Message from webpage","nativeclass:=#32770").WinButton("text:=OK").Click End If Virtual mechine OS Is -- Microsoft Windows XP

QuickTest Pro automated testing

一曲冷凌霜 提交于 2019-12-07 07:57:00
问题 I have three easy questions. Does anybody use QuickTest Pro for automated testing? Any other automated testing applications that you recommend? Is automated testing a good idea? Thanks 回答1: There are several threads on SO concerning test automation: Which is better for web testing? Record-Play automation or coding? User Interface Testing Automated testing of GUI I've never used Quick Test Pro, but I've been on several projects that have used different automated test tools; Silk Test, Rational

Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

社会主义新天地 提交于 2019-12-07 01:48:46
问题 I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script to test an application, written in VB.NET using the Infragistics library. If I access this virtual machine using my laptop (using Remote Desktop), everything works fine, the script completes without a problem. My laptop runs XP, with Windows Classic theme. If I access this virtual machine using another machine (using Remote Desktop), the script starts fine, but stops halfway through, without