Posts Tagged ‘Web-Extensibility’

WebExt Performance Demo

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…)

childNodeByID function for Web Extensibility

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…)

HP Software Universe 2008

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.

QTP 9.5 feature review - Web Extensibility Add-ins

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…)