quicktest-pro

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

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

QTP_errObject

Hi All: May I request you to clarify the issue I have with QTP err object. I am trying to capture the screen shot of an object on which error occured. I use the code object.captureBitmap(filename) to achieve this. I would like to know if it is possible to get the screen shot of the entire page with the err object higlighted. Thank yo...

Mercury Quick Test Pro - Testing with a custom grid

Hi, We are trying to create some tests that reference an vendors custom grid. Unfortunatly QTP only recognises it as a WinObject which is quite useless. We need to be able to navigate the grid and change cell values, double click on a cell(without using X,Y co-ordinates) etc. Ideally we want to get QTP to understand that this object i...

creating generic file in generic folder using QTP

I created a generic folder by taking the name from DataTable: Dim fso Set fso = CreateObject("Scripting.FileSystemObject") strdata = Datatable.Value("Column name", "Sheet") fso.CreateFolder "C:\Documents and Settings\schoudar\Desktop\" & strdata Till this I am successful but now I want to save a file in this folder and the folder name...

QTP: Parameterize a Database Checkpoint

I have a database checkpoint in QTP (HP QuickTest Pro); this checkpoint works if I pass it a static query, but I need to be able to pass in parameters or build the query programatically. I also know how to query the database programatically from QTP, but don't see a way to create a checkpoint based on its results. Specifically, I want...

QTP: Get list of all links in an E-mail

I'm "developing" a test plan in Mercury/HP QuickTest Pro 9.1, in which I must extract a list of all links in an E-mail and perform logic against each of them. In this case, I am using Webmail, so the message will appear as a web page; though I hope to use Outlook later to replicate a more realistic UX. I am a Developer, not a Tester. C...

QTP: Object Required errors when Object is valid

I have the following VBScript in a reusable action: 'Gather links Browser("1").Navigate "http://InternalWebmail/something/inbox.nsf" set oDesc = Description.Create() oDesc("micclass").Value = "Link" set links = Browser("1").Page("Webmail").ChildObjects(oDesc) Dim links2 links2 = "" 'Filter out irrelevant links For i = 0 To links.Count-...

QTP/VBScript: How to remove all URLs from a string?

I have a string in my QTP test project. In some cases, this string is a plaintext E-mail's content; in other cases it's HTML. In both cases, I need to strip all URLs from the string to match it against an Expected case. How can this be done in QTP/VBScript? ...

Can I use a language other than VBScript to programmatically execute QTP Tests?

I have VBScript code which launches QuickTest Professional, executes a series of QTP tests, and emails the results. This works well, but I would prefer to use a language with better tools support (a good IDE for example). I am currently calling .Net libraries from the launch script, so I was wondering if it was possible to use a language...

Quicktest Pro - find first button after matching text.

I want to use dynamic object recognition (descriptive programming) to find the first button labeled "Delete" that occurs after some given text (eg, the first Delete button that appears after the text "Item XYZ-123"). I have a kludgy way to do it if both the text and the button are inside a single row of a webtable, but I was hoping for ...

Why do I get an InteropServices.COMException when attempting to launch QTP from C#?

This question is a follow-up to the one at http://stackoverflow.com/questions/895342/can-i-use-a-language-other-than-vbscript-to-programmatically-execute-qtp-tests. I have a C# (.Net 2.0) program which creates an instance of QuickTest.Application and launches QuickTest Professional (version 10.0). All my development testing worked well. ...

How to test labels in QTP

I'm using QTP 9.5 test my application written in Delphi. I got Delphi Add-in installed and QTP can identify Delphi controls. Most but not all, specially TLabel. QTP can not recognize this control and is being ignored by Object Spy. Any suggestion, tip, clues how to test labels ? cheers ! ...

How to capture and compare all object properties on a web page

I'm working on a web-based application. I would like to check properties for all objects on the page, but would rather not have to do them individually. I remember test-tools past that would allow you could capture the whole page and select which objects and properties you wanted to keep track of. Does QTP allow you to capture a whole ...

Document Not Saved Error in Excel.

This is my code snippet for comparing 2 excel files. I call this function from my QTP scripts. I get this error quite often which causes my test script to fail. Any pointers will be appreciated. Set objExcel = CreateObject("Excel.Application") objExcel.Application.Visible = False objExcel.DisplayAlerts = False Set objWorkbook1= objExcel...

Convert QuickTest Professional test results to an .xls file

how to send QuickTest Professional (QTP) test results to an .xls file through vb script ...

QTP, access to QC field by label

I want to update a custom user field in QC using the Label of field instead of the name At the moment we are doing it this way Set currentRun = QCUtil.CurrentRun currentRun.Field("RN_USER_03") = 1 currentRun.Post But I would like to do it this way Set currentRun = QCUtil.CurrentRun currentRun.Field("Data Rows Passed") = 4 currentRun...

Error in executing script in QuickTest Pro 10 on VMware Vitual Machine

I have installed the QTP 10.0 on a virtual Machine & trying to run a basic line of code through QTP i.e. MsgBox "ABC" However, when I try to execute the script on the VM, it fails at the very first line saying that: **"The test run cannot continue due to an irrecoverable error" Failed to run script. *Description: Invalid Syntax* Li...

Quick Test Pro Takes Long to Fill Out Forms

We've observed that for some test cases Quick Test Pro takes very long to fill out forms. The web page is rather complex from its layout and size (150kb). There are about 40 fields where a test case fills out about 10 with the Standard Browser.Page.WebEdit.set command. The filling takes about 10-15 seconds. The problem persist over diffe...