Posts Tagged ‘Automated-Testing’

Execute Javascript from QuickTest Pro

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:
  1. Public Function evalJS(oBrowser, sJavaScript)
  2.     Set JSEntry = oBrowser.object.document.documentelement.parentnode.parentwindow
  3.     On Error Resume Next
  4.     evalJS = JSEntry.eval(sJavaScript)
  5.     On Error Goto 0
  6. End Function
  7.  
  8. Set oBrowser = Browser("version:=inter.*")
  9. evalJS oBrowser, "alert('Hello, world');"

(more...)

It’s Curtains for WinRunner

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

Help for QTP Novices

Tuesday, February 5th, 2008

This month AdvancedQTP is running The Flight Reservation Project, which is a tutorial series based on the Flight Reservation example application that ships with QuickTest Pro. This series focuses on testing a Windows application, which is outside of the Inquisition's usual subject matter of web apps.
(more...)

QTP 9.5 - here’s a feature breakdown

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