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

How can I run a QTP test from the command line?

There are a few situations where I need to launch and run a QTP test from the command prompt. For example, I'd like to use Windows Task Scheduler to run QTP tests at various times throughout the night, but there is (seemingly) no flag that I can use…
Michael Innes
  • 2,045
  • 5
  • 25
  • 41
4
votes
2 answers

ORA-2800: account is locked error in qtp

I am getting the following error while connecting to db for checking db timings through QTP scripts: "Cannot update system time with database time due to error: ERROR: [Oracle][ODBC][Ora]ORA-28000: the account is locked" But the database SID and…
3
votes
2 answers

QTP with Google Map

I am working on Web Application that uses Google map. I need to verify balloons present on map. After some Google, i came across this link Automating Google Earth .But this isn't helped lot.Does anybody has idea to work with maps in QTP? I want to…
Amol Chavan
  • 3,835
  • 1
  • 21
  • 32
3
votes
3 answers

Is it possible to call a function whose name is stored in a string in vbscript?

i am trying to write a script in qtp like this Public Function sayhi msgbox "hi" end Dim level0 dim count1 count1 = DataTable.GetSheet("Action1").GetRowCount msgBox count1 For counterVariable = 1 to count1 functionname = …
thndrkiss
  • 4,515
  • 8
  • 57
  • 96
3
votes
2 answers

UnauthorizedAccessException when using QTObjectModelLib.dll

I follow an example from SO answer how to run QTP script from C#. However during Application object creation I get UnauthorizedAccessException. Any clues what might be wrong? Here is a screenshot of the exception and the source code.
Greg Dan
  • 6,198
  • 3
  • 33
  • 53
3
votes
1 answer

HP QTP 11: Script execution fails when running in Firefox, but Debug Viewer shows result of operation

I'm trying to run our automation, written for IE, on Firefox 3.6 and facing those frustrating problem: I have a code: Set cellDataItems = Browser().Page().WebElement().Object.getElementsByTagName("div") For i = 0 to cellDataItems.length -1 …
vmg
  • 9,920
  • 13
  • 61
  • 90
3
votes
1 answer

Case-sensitivity in QTP 11 question: different results with different cases in VBScipt

I found strange behavior in QTP 11 today: expression Browser().Page().WebElement("PositionManagerContainer").WebElement("LoadingMessage").Object.ParentNode.ParentNode Gives error: Object Required ".Object.ParentNode" But expression…
vmg
  • 9,920
  • 13
  • 61
  • 90
3
votes
0 answers

Unable to select checkboxes from SwfTreeView

In my application there is a swfTreeView object which has 2 parent check boxes [Total, Systmatic] and both parent has 2 more child check boxes [ EQ, FX for Total and EX,IR for Systematic] . I am unable to select these checkboxes. I tried below way…
onkar
  • 249
  • 1
  • 4
  • 14
3
votes
4 answers

QTP datatable operations *extremely* slow (much better under MMDRV batch executor)?

Possibly a smashing story -- QTP seems to waste our worktime for no reason: Consider this script, having a datatable of exactly one global row with 26 columns named "A" to "Z" filled with any value: Print "Started" Services.StartTransaction…
TheBlastOne
  • 4,291
  • 3
  • 38
  • 72
3
votes
1 answer

QTP with JQuery Tree

We are using an application which make use of JQuery tree and were trying to automate the application. we find the following issues while automating the application, it would be great if anyone could help us for the following queries: To add any…
Kavitha
  • 31
  • 1
3
votes
3 answers

Selenium, Siebel and QTP

I am about to start work on a UI automation project for a client who is using Siebel 7.5. I have been looking around and it seems that there is not a lot of info out there on if it is possible to automate GUI tests in siebel using Selenium. The…
David Colwell
  • 2,450
  • 20
  • 31
3
votes
4 answers

How to deal with changing page names?

I am new to QTP and programming in general, but my current task is to create automated tests using QTP 9.2 for a multi-page web application. My script was working fine during an earlier build, but now it seems as if the programmers have renamed some…
GBinEG
  • 31
  • 1
  • 2
3
votes
3 answers

WCF Web Service Testing with QTP

I want to automate testing of WCF Web Services(over TCP) using QTP's WebServices Add-In. However when I specify path of WSDL it gives me errors. Has anyone tried using QTP? or any other tool that I can use for testing?
Unmesh Gundecha
  • 560
  • 5
  • 10
3
votes
2 answers

Pass a pointer in a win32 dll from vbscript (qtp)

I have a good old fashioned win32 dll with functions of the form void Foo1(int* value) void Foo2(char* string) void Foo3(MyType* data) //ect... I need to call this in QTP (vbscript) and retreive the data for use in the QTP application. Is this…
dFlat
  • 819
  • 7
  • 19
3
votes
1 answer

How to exit a test case in UFT

I have many tests that require certain preconditions to be met before continuing and thought I could write a simple function like: Function FailIfNot(condition, error_message) If Not condition Then WriteToALM FAILURE, error_message…
Samuele Pilleri
  • 734
  • 1
  • 7
  • 17