Posts Tagged ‘QuickTest-Pro-9.5’
Sunday, June 29th, 2008
One of the benefits of using Web Extensibility Add-ins is that you get a performance gain in running tests vs using the old WebElement method. For a demonstration, I wrote a basic WebExt add-in that only has one class defined: Div. Div is any object whose tagName is “DIV”, so it is the equivalent of WebElement(”tagName:=DIV”). You can download it here. All you have to do to use it in your QTP 9.5 environment is extract that zip file into “C:\progfiles\hp\QuickTest Professional\dat\Extensibility\Web” and restart QTP. Make sure to check the “rawElements” add-in on QTP’s splash screen.
(more…)
Tags: qtp, QTP-9.5, QuickTest-Pro-9.5, Web-Extensibility, WebExt
Posted in Uncategorized | No Comments »
Friday, June 27th, 2008
During the Web Extensibility talk at HP Software Universe, somebody asked me to post the code for childNodeByID. This is a javascript function that is useful in Web Extensibility projects. It lets you find the child of a DOM object that has a specific id attribute.
At the time, I said this function was only a few lines long. I was wrong. Somebody with more javascript experience could probably golf this down to a few lines, but my version is pretty long.
(more…)
Tags: Javascript, qtp, QTP-9.5, QuickTest Pro, QuickTest-Pro-9.5, Web-Extensibility, WebExt
Posted in Uncategorized | 2 Comments »
Wednesday, June 18th, 2008
Caleb Sima from SPI dynamics is presenting on the main stage. Demoing SQL injection. This is pretty common stuff, but his presentation is making it much more accessible than others I’ve seen.
He showed SPI’s SQL Injector tool, and I could feel the fear coming from part of the audience. I suspect he is going to ease their fear by telling them how they can buy his product.
Tags: HP-Software-Universe-2008, qtp, QuickTest-Pro-9.5, Security, SQL Injection
Posted in Uncategorized | No Comments »
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 »
Monday, February 11th, 2008
The QTP 9.5 evaluation is finally available for download on HP's site. I haven't downloaded this one yet, but if it is like the one I downloaded from HP a few weeks ago, you should be able to use it with the same license you used for 9.2.
Tags: QuickTest-Pro-9.5, Software-Test-Automation, Software-Testing
Posted in Uncategorized | 6 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 »