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

Deleting a Excel file from QTP

I have a following code in QTP: Dim objexcel Set objexcel = createobject("Excel.application") objexcel.Visible = True objexcel.Workbooks.Add objexcel.Cells(1,1).Value = "ABCDE" objexcel.ActiveWorkBook.SaveAs("J:\Test.xls") How do I close the…
Uska
  • 65
  • 1
  • 6
  • 14
0
votes
1 answer

How to retrieve an xml column from a db2 database in VBScript in QTP

I'm trying to retrieve an XML column from a table in a DB2 database. Using the code below, I can retrieve any column that does not have xml as the data-type: query = "some query" strConn = "my connection string" set dbConn =…
0
votes
1 answer

QTP How to count number of Window objects in a Browser

I hve a web app that can open several windows, not new browser windows, but windows overlapping the main window, like pop up windows. At one place I have to verify if I am on the main app window. My first idea was to get the number of windows in a…
tom
  • 1,223
  • 6
  • 16
  • 26
0
votes
2 answers

QTP: How to find the action name programatically?

There's Datatable.getsheet.getparameter ... etc and things for the data table. Is there something for actions? I thought it would be something like Test.Actions("Name_of_action").name. It talks about this in the object model reference in the help...…
brehon1104
  • 53
  • 2
  • 11
0
votes
2 answers

AJAX not getting invoked through QTP

I am working on QTP 11. I my current project I am trying to automate a website with AJAX fields. I my project I have a text field on which if we try to enter characters then AJAX table appears and we have select a suitable value from the below…
0
votes
3 answers

How to create create check point for "Flight Reservation" window in QTP 10.0

I am trying to insert an standard check point in my below script for last step / for Flight Reservation window.But when i trying to do so i am getting error message like that "cannot identify" window. My Script:: SystemUtil.Run("C:\Program Files…
Arnab
  • 271
  • 2
  • 7
  • 18
0
votes
1 answer

ExitAction V/s Exit Function

I want to know the difference between following code: Function foo() 'Do something ExitAction(1) 'Do something 2 Exit Function End Function I wonder if the do Something code 2 would be executed or not and reason behind.
codeomnitrix
  • 4,179
  • 19
  • 66
  • 102
0
votes
2 answers

In QTP, Facing error in "Call to existing action"

In QTP, I have called many actions using Call to existing action and it is working fine in the same machine. If i use different client machine to run the scripts, only the first test runs and the rest of the action is not running. When i opened the…
0
votes
1 answer

Need to generate excel using vb script?

I am trying to run test cases using driver script, which i had developed in vb script.(below is some part of code that launches QTP), and lanuched qtp script generate XLS reports. now issue is that when i invoke test suite using vb driver script, it…
Priyank Shah
  • 609
  • 3
  • 9
  • 25
0
votes
1 answer

Dialog box differs on different browsers version (IE7 and IE9) for same application

Dialog box differs on different browsers version (IE7 and IE9) for same application. Please suggest me how to handle this issue. As I need to run the script in different browser version. It’s hard to use separate script for different browser…
Visitjaga
  • 45
  • 1
  • 5
  • 9
0
votes
3 answers

How to uniquly identify an two objects in same page having same url

I Have two objects in same page but with different locations(tabs), I want to verify those objects each a part ... i cant uniquely any of objects because the have same properties.
Manaysah
  • 375
  • 5
  • 15
  • 29
0
votes
1 answer

quick test pro 10.0 javascript control?

is there any plugin that will work with javascript controls like slidebars and dropdown lists? My qtp recognize only them as WebElement and if i wanna select something from dropdownlist i simply can't. The javascript framework is Prototype…
vivid
  • 1,115
  • 2
  • 14
  • 34
0
votes
1 answer

While inserting the text checkpoint for time by clicking on it(say 12:50 pm) and running it,its giving the result as failed?

It does give the result as passed when i click on it and give ok to run test, But when i gave the value for it as (1[012]|[1-9]):[0-5][0-9] (am|pm) and checked regular expression and saved it. while running it the test is getting failed.(I tried it…
user1747116
0
votes
1 answer

Automating installations in Windows using Apache ANT

I am carrying out a POC to find a way to refresh a testing server. Refreshing involves Deletion of several files Uninstalling some programs from Windows Add/Remove programs Installing fresh copy of the program (It uses installshield which involves…
Eisen Jack
  • 179
  • 3
  • 12
0
votes
2 answers

When i select "Record and run test on any open browser" and click Ok , IE is getting stuck and shows"Stopped working" Why so?

I re-registered the BHO manager,But its not Working. Note: I'm using IE 9, QTP : 11.0 Trial version. In manage add-ons option: It shows Name:("Not verified" HP Developement ltd) Is there any ways we can use other browsers but IE to test in…
user1747116