qtp

How to access data using VBSCRIPT from a stored procedure which contains values in Temp table ?

Hi , for testing purpose I wrote a VBscript which will fetch values from Sybase by executing a stored procedure which contains values in temp table. When I run the script I get the following errors , "Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record." or "Item cannot b...

How to access SysListView32 elements in QTP?

We are having a table of elements in SysListView32. Actually they are a table arranged under 5 columns. How to access 3rd column in the table in SysListView32? ...

How to capture the whole web page using QTP?

How to capture the Whole web page when using QTP? I am aware of 'CaptureBitmap' method for the screenshot. But how to capture the Whole page? Help !! ...

Convert QuickTest Professional test results to an .xls file

how to send QuickTest Professional (QTP) test results to an .xls file through vb script ...

QTP 10 - A function return deifferent results for same data in run and debug modes

Hi, I would extremely appreciate if anyone can suggest a solution for this. I have a simple function that is is expecting for a browser to be opened on a page containing a web list that each value of it represents an account. When an account is selected it's products (if any) are displayed. The functions goal is to retrieve an index ...

how to access objects in run-time in qtp?

We have a function which accesses two types of controls like button and list box in standard windows app. The function uses only the control name as arguments, so there is no way qtp could understand what type of control it is. how to resolve this? Write 2 separate functions- 1 for button & another for list box? ...

“Object not visible” error is displayed during qtp automation

“Object not visible” errors displayed for some controls like “WinMenu” in the first time & it requires manual effort for 1st time to access these controls. then it runs correctly. ...

Project change makes qtp to fail

We are using 2 or more projects in an application to be opened. For e.g. HT1000 & HT1200 will be opened by the application, objects are the same(or common) for both the projects. Code uses the values in excel framework for running the test cases as parent to identify the child objects for e.g. Window("HT1000").Dialog("parts").Click("OK")...

QTP ftpgetfile question

Hello, I encountered a problem in QTP, all the tests have been passed before, but recently, the FtpGetFile function doesn't work any more (other similar functions like delete, put.. neither). In fact, I have observed through the log of proftpd that the connection is well created, and the parameters of that function are just like befor...

QTP read webtable content

Hello guys, I have a WebTable in QTP like: <TBODY> <TR></TR> <TR> <TD> <TABLE> <TR> <TD> <DIV class=divRow id=divRow_d_0> <DIV class=divFirst>1</DIV> <DIV class=divData>toto</DIV> <DIV class=divData>fofo</DIV> </DIV> <DIV class...

Wait till application has started responding - how to code this in qtp?

We have an application where some files are being loaded and the application stops responding for some time during the loading of the file. during test automation, we are having the scenario where the file loading is automated, but qtp has to wait until the application starts responding again. How to code this? Any property is there like...

How to convert many thousands of lines of VBScript to C#?

I have a collection of about 10,000 small VBScript programs (50-100 lines each) and a small collection of larger ones, and I'm looking for a way to convert them to C# without resorting to by-hand transliteration. The programs are automated test cases for a web application, written for HP/Mercury's QuickTest Pro, and I'm trying to turn t...

Qtp, export datatable to Quality Center

I have my QTP Scripts in Test Scripts Tab and datasheets in the Attachment Tab of TestPlan of QC. I import these datasheets to Datatable (Global) of QTP and use the data in my application using the QTP Script Parameterization and then Script updates this Global Datatable with auto generated values from application. Now, the issue is whe...

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 way Set currentRun = QCUtil.CurrentRun currentRun.Field("Data Rows Passed") = 4 currentRun...

Executing QTP automations from a .NET class, without starting an instance of QTP

Does anyone have experience building a .NET test execution harness that can execute the logic in existing QuickTest Professional VBScript automation scripts, but without starting an instance of QTP? We are in the process of transitioning to Visual Studio 2010 and the related test management tools, but we can't (justifiably) throw away o...

in QTP, how to check whether a dialog is already open?

I have been using the following code to check whether a dialog is already open If Window(window_name).Dialog(dialog_name).Exist = False Then '' //here qtp waits.. Window(window_name).WinMenu("Menu").Select menu_name End If This code is to avoid reopening the same dialog during each run of the code. But the qtp run waits abou...

Problem with multi conversion into array elements

We are using a code as follows split(Window(window_name).Dialog(dialog_name).WinList(control_name).GetSelection which returns the values as F2 F3 F5 However when i try to split the same, to store the values in the array selected_values as follows, selected_values = split(Window(window_name).Dialog(dialog_name).WinList(control_name).Ge...

VBScript: how to find the difference between two strings that look identical

There are two strings "test_name" that are compared in a VB script. They have to be identical, and they look identical in debug viewer, but StrCompare(string1, string2) returns 1. History. This is a test in QTP. The first string is read from Excel. The second one is from a windows application. QTP reads a value from Excel, enters it to ...

Toolbar button doesnt get accessed at all

I am using the following code but the toolbar button doesnt get accessed at all. The error is "unknown error" Window(window_name).WinToolBar("Example Toolbar").Press "Print" Here Example Toolbar is added to the object repo, and gets highlighted correctly. ...

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 scripts can be executed while keeping sessions minimized. If yes what changes needs to be ma...