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
6
votes
4 answers

How can I get the logical name of a test object (that exists in the associated shared OR)?

Let´s say I pass a Browser("MyBrowser").Page("MyPage").WebCheckBox("MyBox") to a function: MyFunction (Browser("MyBrowser").Page("MyPage").WebCheckBox("MyBox")) Later, the function wants to log the logical name of the received test object (which in…
TheBlastOne
  • 4,291
  • 3
  • 38
  • 72
6
votes
2 answers

How to call a function (with parameters) which is in function library, taking the function name from a variable?

I'm trying to use getref to call a function from the function library associated with the test. My code - In action1 str = "sample" msg = "hi" x = GetRef("Function_"&str)(msg) msgbox x In the function Library, Function Function_sample(strMsg) …
Saranya
  • 111
  • 2
  • 2
  • 6
6
votes
3 answers

Calling C# dll in vbscript

I am trying to call a C# dll from QTP (uses vbscript). I have tried a number of things with no success: Visual Studio 2010 Create C# class libary (st.dll) code: using System; using System.Collections.Generic; using System.Text; namespace…
Edward Leno
  • 6,257
  • 3
  • 33
  • 49
5
votes
1 answer

Is there a dictionary of dictionaries in QTP version of VBS?

Something similar to Set> in Java?
akapulko2020
  • 1,079
  • 2
  • 22
  • 36
5
votes
1 answer

VB: What is missing in scripting host while it is present in "full" VB?

When programming (scripting) in VB scripting host, how can I learn what is implemented and what not? For example, records (or: the structure keyword) are not implemented, but classes (or: the class keyword) isn't. Dim as is not allowed, as…
TheBlastOne
  • 4,291
  • 3
  • 38
  • 72
5
votes
2 answers

Trigger a Link Click When an Object is Not Visible

I am using UFT 12.51 to automate a Web based application on IE11. Here is my scenario: I have to go through a few pages to complete the process I'm trying to automate (9 pages to be precise). On page 4, I click on a link which opens a Frame (as a…
Zac
  • 1,924
  • 1
  • 8
  • 21
5
votes
6 answers

iPhone test automation - benchmark tools?

Hi we are expanding one of our projects in a major bank to include access via mobile devices. We are evaluating a few tools - inc. perfecto mobile, experitest and deviceanywhere. From our initial evaluation perfecto and device anywhere cover a…
John
  • 121
  • 1
  • 10
5
votes
2 answers

How getObject Function internally works?

I'm Automating Inventor 2013 using UFT as follows:- Set oApp = GetObject(,"Inventor.Application") Set oDoc = oApp.ActiveDocument Here I'm using GetObject() function to get reference of running Inventor Application. but I have a questions about…
sujit
  • 82
  • 6
5
votes
2 answers

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…
Jonas Söderström
  • 4,856
  • 2
  • 36
  • 45
5
votes
1 answer

how to Implement Cruise Control with QTP?

I would like to integrate QTP with Cruise Control, which I have done so far, i'm stuck at the reporting part. I would like to somehow report back to Cruise Control with the results, how can I accomplish this? Please help?
user312046
  • 51
  • 1
5
votes
6 answers

How does QTP wait till the page loads dynamic data?

I have a scenario where the browzer status =done but still the page is not loaded. Is there a common procedure where the qtp can wait till the page is fully loaded? I tried with objBrowzer.sync,objPage.Sync,objPage.waitproperty…
user90
  • 141
  • 1
  • 4
  • 11
5
votes
2 answers

Is it possible to get code coverage data for a GWT web app running tests from the web browser?

I am not sure if this is possible but I would like some way to get code coverage information for tests that are written in Quick Test for our GWT based web app. It does not seem like there is any solution because the Quick Test Pro tests are testing…
user301765
5
votes
2 answers

Launching UFT ( QTP ) Tests remotely through a batch file.

I have created a bunch of UFT 12 (ex QTP) tests and I have also created a batch file in order to run theses tests. When I run the batch file in local the tests are running fine. Here is the script I use : Set qtpApp =…
Ziwdigforbugs
  • 1,185
  • 8
  • 24
  • 41
5
votes
4 answers

What alternatives exist for running QTP tests in batch?

We are in the process of implementing automated regression testing for our applications, and are looking for a solid batch-testing utility. We have QuickTest Professional 10.0, and it comes bundled with 'Test Batch Runner' which appears to be…
Whytespot
  • 921
  • 12
  • 18
5
votes
5 answers

How does the .Exist timeout work within QTP?

I've worked with the .Exist method quite a bit, but I recently moved to a new project (now using a WPF application) with QTP 11 (whereas previously I had QTP 10). Now I'd like to check that a message does not exist by using object.Exist(2). Weirdly,…
Michael Innes
  • 2,045
  • 5
  • 25
  • 41