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
1 answer

Evaluate JavaScript in QTP

Is there a way to evaluate a JavaScript function on a webpage in QTP, assigning the result to a QTP variable. I'm using QTP version 9.0.
Fergal
  • 5,213
  • 6
  • 35
  • 44
3
votes
1 answer

Connecting to IBM MQ from UFT

I have been trying to read and write messages to MQ from UFT. I am using the dotnet factory instance. i have reached till a point where i am able to connect to MQ while i am facing a problem in accessing the queue and read and write messages. The…
GVR
  • 320
  • 1
  • 3
  • 15
3
votes
1 answer

Coded UI - Keyboard.sendkeys - Sending path of a file containing special characters

I'm trying to send the path of a file (dynamically) containing special characters in it using keyboard.sendkeys in codedui: string filepath="I:\^abc\abc\filename.csv"; Keyboard.SendKeys(filepath); For some reason, ^abc in the filepath is treated as…
3
votes
3 answers

How to save workbook and handle TITUS (or any other document classification add-in) popup?

I'm creating a script in HP UFT 12 which performs grid data validation against a CSV file and saves the results in a Excel file with two worksheets. I'm using Excel for this because it is much more clear for the user, as it allows cell formatting,…
Victor Moraes
  • 964
  • 1
  • 11
  • 28
3
votes
1 answer

How to add zero to single digit in a string

I need to to append zero in my below string whenever I get date with single digit without changing Quantity digit (below string is system generated in my application not created by user), Data Added Quantity:1 on Dec 9 2015 modified on Jun 7…
J_Coder
  • 707
  • 5
  • 14
  • 32
3
votes
3 answers

Clicking on specific row in a WebTable using UFT/QTP

I am having hard time clicking specific row in a Web Table. My code finding proper row, but when I use Child Item method it complains that Object is not found. Here is my code: Desc = "Record to click" If…
K.G.
  • 33
  • 1
  • 1
  • 4
3
votes
3 answers

Press Enter Key in qtp

How to perform the Pressing of Enter Action in QTP. I'm selecting a cell and able to set a value ,now I want to press enter key and get the list from that Java Edit box. Which are the different ways I can achieve this?
Sam
  • 543
  • 3
  • 10
  • 27
3
votes
1 answer

How to get TestSet path with UFT12/ALM12?

I'm trying to get the Test Set path of a ALM12 test set with UFT12 OTA API. I've just upgrade from QTP11 to UFT12. On QTP11, we used to get the TestSet path like…
3
votes
2 answers

can we execute QTP script on remote machine by keeping session minimized

I have couple of machines on which I wish to schedule exceutions. I need to access these machines remotely for exceution. Whenever I start exceution from these machines and minimize the session my script fails. So just curious to know whether QTP…
NewAutoUser
  • 533
  • 2
  • 10
  • 26
3
votes
2 answers

How to initialize multiple variables together?

I need to initialize several variables with the same value in VBScript. The only way I can find is for example x = 5 : y = 5 : z = 5. Is there a way similar to x = y = z = 5?
AhmedWas
  • 1,205
  • 3
  • 23
  • 38
3
votes
1 answer

how to run Qtp from Jenkins

I am new to QTP. I want to trigger QTP from Jenkins.I have automated a website using QTP and have then obtained the vbscript by following file->settings.Now I want jenkins to trigger the vbscripts such that I am able to view the automation process.I…
RCBian
  • 1,080
  • 2
  • 20
  • 31
3
votes
1 answer

EmbedScriptFromFile & RunScriptFromFile - QTP/UFT

Please help me in using EmbedScriptFromFile & RunScriptFromFile for executing JS file in QTP/UFT. I'm trying to fetch N number of values using JS file, and receive the same in QTP/UFT in an array. For which, I have got to know about…
zeal
  • 475
  • 4
  • 11
  • 25
3
votes
2 answers

Is there any way to run asynchronous methos in Excel Macro?

I am having trouble while running excel macros as it causes my UI to freeze. Consider the following code: Call Run_Test() Sub Run_Test() Set oQTP= CreateObject("Quicktest.Application") oQTP.Open "" oQTP.Run"" End Sub The…
Jaskaran
  • 320
  • 5
  • 19
3
votes
2 answers

How do I use WScript.Shell SendKeys to send Number Pad key strokes?

I am trying to use WScript.Shell SendKeys method to emulate sending a key press from the Number Pad. I have an application that I am writing automated testing for using QTP. It is a Web Browser based application and the input is into a Java App…
Brent Henson
  • 33
  • 1
  • 1
  • 6
3
votes
2 answers

QTP - In web-addin extensibility, Can I use custom attributes for object identification

We developed a custom add-in for QTP to automate an Extjs application. Recently we came to know that the approach we took to develop the add-in is unreliable. We used the CSS classes displayed in the DOM tree to help QTP identify each object in the…