Questions tagged [qtp]

QuickTest Professional (QTP) is a functional and regression test automation tool for software applications and environments.

QuickTest Professional (QTP) is a test automation tool by Micro Focus designed for testing software applications and environments. It performs functional and regression testing by manipulating a user interface such as a native GUI or web browser. It works by identifying the objects in the application user interface or a web page and performing desired operations (such as mouse clicks or keyboard events); it can also capture object properties like name or handler ID. QTP uses the VBScript scripting language to write the tests and to manipulate the objects and controls of the application under test.

In its latest versions it has been renamed to UFT (Unified Functional Testing) tagged as .

1590 questions
3
votes
2 answers

QTP: is it possible to create a function that will be executed before/after each test runs

Is it possible to create a function to be executed before/after each test runs? Maybe something like this. For example, it is needed to revert to a clean db before each test clear application cache or registry settings after each test Of course,…
katmoon
  • 1,014
  • 1
  • 10
  • 18
3
votes
1 answer

Is it possible to automate applications on virtual desktop using software like QTP?

I am not speaking on virtual machines,but Virtual desktops. Softwares like Desktops from microsoft provide functionality to create virtual screens and group windows onto them. Is is possible to use Automation software like QTP on some application in…
Deepan Prabhu Babu
  • 862
  • 11
  • 18
3
votes
0 answers

Using QTP/UFT's DotNetFactory.dll in VBScript

I am trying to use QTP/UFT's DotNetFactory utility in standalone vbs files. I believe UFT is using DotNetFactory.dll found in the C:\Program Files (x86)\HP\Unified Functional Testing\bin to implement the feature. I have checked and found that the…
Pankaj Jaju
  • 5,371
  • 2
  • 25
  • 41
3
votes
2 answers

Get a reference to Quality Center API Interface ISupportCopyPaste using QuickTest Pro

Quality Center OTA API provides interfaces like ISupportCopyPaste (copy/paste data using clipboard). The documented way to get a reference to an implemented interface is: 'Declare a variable to hold the reference for the interface Dim bf As…
Manas
  • 113
  • 1
  • 7
3
votes
0 answers

Unable to identify object uniquely using UFT

I tried to automate the https://www.redbus.in website and book a seat. I need to fetch the seat details of the top left corner seat of the upper deck. UFT recognizes the entire seat layout as a webelement and not the individual seats. I tried to get…
Umang Agrawal
  • 43
  • 1
  • 8
3
votes
1 answer

Regex Positive Lookbehind alternative in VBScript

So, VBScript apparently doesn't support Lookbehind at all. I am looking for an alternative valid Regex that I can use with VBScript. FYI, I will use this in HP UFT, so I've no choice but to use VBScript (If there is no other simplest way, I might…
ManishChristian
  • 3,759
  • 3
  • 22
  • 50
3
votes
1 answer

How to implement Cruise Control with QTP

I would like to integrate QTP with Cruise Control.net and dont know how to do that so can any one please let me know step by step how to do it or if any url that says about it. I have a qtp and cc.net on my local machine. Do I require anything else…
Nilesh
  • 31
  • 1
3
votes
1 answer

How to read memory values using VBScript?

I want to use VBScript to read values directly out of memory of another running application. I can't seem to find information on using ReadProcessMemory() in VBScript. I intend to use this in Quick Test Pro to do screen scraping of an application…
Michael Galos
  • 1,065
  • 3
  • 13
  • 27
3
votes
3 answers

How to perform Right Click on an object using SendKeys in UFT?

I want to perform a Right Click on an object in my Application Under Test but I am not able to perform this action. Is there any way to do it using sendkeys?
Nitish Aggarwal
  • 557
  • 4
  • 15
3
votes
1 answer

Parameterization of object's properties in UFT?

I need to dynamically handle the object properties through code in my project as many of the object values are changing dynamically. So is there any way to parameterize object's properties in UFT?
3
votes
2 answers

How to rearrange Action's execution in a Test in UFT?

I am facing a problem while executing multiple Actions in a single Test in UFT. I have 3 Actions namely Action1, Action2 and Action3 and I need to run Action3 first then Action1 and lastly the Action2. But the problem is when I execute my test UFT…
Nitish Aggarwal
  • 557
  • 4
  • 15
3
votes
1 answer

UFT Image used as button

I am trying to run the below code, but it throws and error when executing the last line of code. Browser("name:=401K Calculator").Page("title:=401K Calculator").WebEdit("name:=age").Set 26 Browser("name:=401K Calculator").Page("title:=401K…
3
votes
1 answer

Identifying content displayed inside QTP

I am trying to identify the content displayed inside a frame using QTP. I am asking from the Page all the frames that match the description and get a collection of frames. I take the first frame from the collection but from some reason it seems that…
Nathan
  • 41
  • 3
3
votes
2 answers

UFT descriptive programming Browser("creationtime:=-1") not always working

I am using the following code to highlight browser instance (only 1 browser instance exists) Browser("CreationTime:=-1").highlight Sometimes the code is highlighting the only browser instance available while sometimes it is showing "No object…
3
votes
1 answer

handle chrome alerts through UFT

I am trying to handle chrome alerts through UFT(Unified Funtional Testing)/QTP(Quick Test Professional). There are only a few options such as Insight objects, sendkeys or by coordinate values. I need more robust way to handle these alerts. Like how…
Revathi S
  • 31
  • 1
  • 2