Posts Tagged ‘HP-Functional-Testing’
Thursday, May 22nd, 2008
One limitation of QTP that has always bothered me is the inability to reuse its web objects after the browser reloads. I spend countless cpu cycles parsing the DOM to find an element, grab enough properties to make it unique, build a description with those properties and finally get the right micobject. Then I perform some action and that reloads the page, and my object is useless. If I want to use it, I have to start the process all over again.
After years of struggle to find an answer, I packed some gear, hired a Sherpa and set off to find a guru who could give me an answer.
(more…)
Tags: Functions, HP, HP-Functional-Testing, Init, QTP-9.2, QTP-9.5, QuickTest Pro, QuickTest-Pro-9.2, QuickTest-Pro-9.5
Posted in Uncategorized | 2 Comments »
Tuesday, May 20th, 2008
In case anybody wants to come by, I will be presenting at HP Software Universe this year on Thursday 6/19 at 8:30a.
The session is Automating Web 2.0 using HP QuickTest Professional 9.5 Web Extensibility.
This should be a good session. I’ve become a big fan of QTP’s Web Extensibility. I will show you how we are using it to create classes for our custom web controls.
Also, Patterson Consulting is donating a Test Design Studio license to be given away at this presentation. I have been testing WebExt support for an upcoming version of Test Design Studio, and the difference between TDS and manually editing the WebExt XML and Javascript files is amazing.
Tags: HP, HP-Functional-Testing, HP-Software-Universe-2008, Mercury-World, QTP-9.5, QuickTest-Pro-9.5, Test-Design-Studio, Web-Extensibility, WebExt
Posted in Uncategorized | No Comments »
Tuesday, May 20th, 2008
Despite persistent the rumors to the contrary, you really can execute Javascript from QTP, and not just using Web Extensibility. Here is a simple function that will run some javascript in IE and return the result.
Visual Basic:
-
Public Function evalJS(oBrowser, sJavaScript)
-
Set JSEntry = oBrowser.object.document.documentelement.parentnode.parentwindow
-
On Error Resume Next
-
evalJS = JSEntry.eval(sJavaScript)
-
On Error Goto 0
-
End Function
-
-
Set oBrowser = Browser("version:=inter.*")
-
evalJS oBrowser, "alert('Hello, world');"
(more...)
Tags: Automated-Testing, Functions, HP-Functional-Testing, Javascript, qtp, QTP-9.2, QTP-9.5, QuickTest Pro, QuickTest-Pro-9.2, QuickTest-Pro-9.5
Posted in Uncategorized | 13 Comments »
Wednesday, February 20th, 2008
I just got this email from HP:
HP Software is announcing end-of-support for HP WinRunner software, all versions (7.5, 7.6, 8.0, 8.2, 9.2). This end-of-support is based on our decision to consolidate and focus our functional testing offerings (HP WinRunner and HP QuickTest Professional) to maximize value to our customers. For migration options, support end dates and a list of FAQs, read the entire announcement here.
(more...)
Tags: Automated-Testing, HP-Functional-Testing, QTP-9.5, winrunner
Posted in Uncategorized | No Comments »
Tuesday, January 29th, 2008
I've now had a few days with Quicktest Pro 9.5, and most of that time has been spent with the new Web Extensibility feature. This feature has huge potential. I look forward to seeing how it is accepted by QTP programmers.
The basic idea is that you can create your own QTP add-in. When your add-in is loaded, Quicktest will recognize objects you defined in your add-in and make your custom methods available for them.
After I went through the tutorial in the QuickTest 9.5 documentation, I jumped into creating a Web add-in for a simple DIV in the product I am testing. I called the extension auLogin and the object auLoginForm. The first method I added was SubmitLogin. All it does is click the Login button. This seemed to be an unambitious task, but it proved more difficult than I counted on because I didn't learn as much as I thought through the tutorial. It is also something much easier done with the single line Browser().Link("html id:=Submit1_a").click, but this exercise is about learning, not being efficient.
(more...)
Tags: Add-Ins, HP, HP-Functional-Testing, Javascript, qtp, QTP-9.5, QuickTest Pro, QuickTest-Pro-9.5, Review, VBScript, Web-Extensibility
Posted in Uncategorized | 4 Comments »
Thursday, January 24th, 2008
I managed to get my hands on a copy of Quicktest Pro 9.5, and it appears to not be as big of a change as I expected. At least the portions of QTP that I use are mostly unchanged. It looks like most of the updates happened in the area of Object Repository and various n00b features.
The first thing that struck me as soon as I saw the default font is that HP doesn't consider QTP a tool for programmers. Rule number one for every IDE should be that nobody wants a proportional font. At least it only took about 15 seconds to change the font to Consolas.
(more...)
Tags: HP, HP-Functional-Testing, IDE, Object Repository, QTP-9.5, QuickTest-Pro-9.5, Review
Posted in Uncategorized | 6 Comments »
Wednesday, January 23rd, 2008
This was big news for us, but as usual, we're keeping our skeptical hat on. We've done a lot in the past 2+ years to get around the high-maintenance foibles you get with QTP, and at first glance it doesn't look like they've gone in the same direction. That doesn't mean it won't be good, it just means we won't be able to use many of the features as a result of how we've built our framework.
(more...)
Tags: Automated-Testing, HP-Functional-Testing, QTP-10, QTP-9.5, QuickTest-Pro-10, QuickTest-Pro-9.5, Test-Design-Studio
Posted in Uncategorized | 5 Comments »