qtp

odd recording qtp

when i was creating text chepoing in qtp the recording results getting odd recording results the scanned input is and i get output like this insted of secs it display sees and i made change in text like this sees to secs but when i run the test the test result will be I captured many times but it display same as above. I do...

is there a method in qtp to check whether the item exists in Combo box?

I have written the following code to get all the elements in the combo and check with my required value, but i think there may be a better way. Whats the better method to check if any item is there in a combobox? couldnt get from the QTP help. For check_index=0 to Window(window_name).Dialog(dialog_name).WinComboBox(control_name).GetItem...

when to standard and text checkpoint in qtp

hi everyone, i am new to qtp, i confused with standard checkpoint and text checkpoint, some times standard checkpoint reads all text content in the window, but text doesn't read text content. so please help me in what situation the standard and text checkpoint are used ...

how to get actual data in checkpoint in qtp?

hi, i am new to qtp, i want get the data in chekpoint, i am not asking about checkpoint return value, what ever checkpoint capture data, that data put display in msgbox. ...

Ambiguous Objects in Quick Test Pro

I'm just wondering if it's possible to uniquely identify a given object in an application through Quick Test Pro. For example, if there are 10 Ok buttons on a web page, with no HTML or Javascript giving them unique identifiers, how would I choose the 3rd button? Thanks for your help. ...

What is the best way to wait until a frame is loaded in QTP?

In Web addin QTP provides Sync function for Browser and Page objects in order to wait until the correposponding navigation is complete. Although, there is no such a function for a Frame. What is the best way to wait until the frame content is loaded? ...

QTP narrow a list of ChildObjects

[The description is a bit fudged to obfuscate my real work for confidentiality reasons] I'm working on a QTP test for a web page where there are multiple HTML tables of items. Items that are available have a clickable item#, while those that aren't active have an item# as plain text. So if I have a set of ChildObjects like this: //Th...

QTP: JavaScript synchronization

There is a frame which content is loaded by a javascript. <iframe ... onload="pageLoaded();"> A QTP test needs to wait until it finishes loading. The frame content can differ basing on user settings, so checking for existense of an element in the frame is not an option. Is there a way to wait in QTP until all content is loaded withou...

QTP set dynamic action and repository path

Hello, I'm working on QTP avec web add-in. I would like to know if there is a way to set the action and repository path dynamically. Because when I copy all the test in different machines, if the paths of the repository or reuse actions are not the same, I have to open each test to reset the path in missing resources. If this idea cann...

QTP Using Regular Expressions to match object text dynamically

Let's say we're trying to match SSNs, so the regular expression would be: d{9}. But what if, at run time, I wanted to have, say, the third digit match to 3? So the regex would be d{2}3d{6}. I know that in QTP, you can use regex to match the text property of an object in the Object Repository, but how do I change that regex in QTP code...

In QTP, is it possible to have an anti-description?

What I have is a table of dollar amounts, some of which are links. Example: $0.00 $1,000.00 $1.00 How do I say this most succinctly in QTP-land? Set desCurrencyString = Description.Create desCurrencyString("micclass").value = NOT "Link" I suppose I could just use a boolean value to see where the link is and somehow capture the ot...

Question related to QTP

Hi, Can anybody tell me ,how to parameterize link elements in QTP. As i have an order number in my application. I click on that number to find its detail..QTP save this as a link..Now i want to see deatil of another order...I have perameterize the oredr number..Now QTP pick new number from datasheet...But as the link saved is for the pr...

counting a string in pdf file using QTP

Hi all, I am trying to count the number of times a string exists in a pdf file. I used the below code, but it is going in infinite loop. The problem is after finding the string after the last page,it comes back to 1st page and repeats all the steps again. Does anyone have a solution for this problem. Any help will be appreciated. Thank...

QTP: How can I return multiple Values from a Function.

Hi , I'm trying to write a function which can return multiple values from a Function which is having 2 arguments. eg: function sample_function(arg1,arg2) ''#Some code................. passenger = list1(0) name1 = list1(1) age1 = list1(2) seatNumber = list1(3) ''#This is an Incomplete function... end funct...

QTP: Set relative Path in QTP during the run time.

using the menu bar of QTP, I can set my folder path and than use the relative path in the action scripts. firstly, If i want to achieve the same with in a Script, how can i do this? secondly, if i want to set the system environment variables named "TEST_ROOT_PATH", than how can i achieve this during the run time of every test? ...

Can anybody tell me, How should be Folder Structure in Coded UI.

I want to create specific folders stucture for my Coded Ui tests. Please guide me, How it should be? As like QTP Framework. Can we keep specific files to specific folders, if yes then can anybody share format. ...

Will there be any support for OO languages in HP-QTP ?

It seem to be a pain to stick to procedural kind of programming in Quick Test Professional. Often large no of lines of code need to be written which otherwise can be not required with OO langiages. What do you say? ...

Retrive the child items from JList

I'm trying to retrieve the child Items from Jlist within a Jtable. I'm facing this difficulty. 1) Jlist is present within a Jtable. Jlist is not able to get Identified. How can i add the properties of the Jlist into the Repositories during that time. I can see "No" properties present when Used Object-spy. 2) How can i retrieve the chil...

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

Recovery Scenarios or handle most of them in the functions itself.

There are few scenarios which i can expect during my execution, I would like to understand the best practices of handles such run time errors. One more question, is it worth to load all the recovery scenarios during the load of the functions or handle the exception with in the functions itself. Kindly suggest the best practices and why...