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

Xpath syntax for "and not contains"

Here is the XPath I'm trying to use: //div[contains(@class='xyz ng-binding ng-scope') and not(contains(@class = 'ng-hide'))] I'm not sure what the correct syntax for this is. Basically the HTML looks like like: class="xyz ng-binding ng-scope typeA…
Matt
  • 225
  • 2
  • 3
  • 7
13
votes
5 answers

QTP vs Selenium - Compare

I have an application/product which is created using .net technologies. This product has a GUI, which connects to a DB using a Web API (SOAP on an application server). Majority of the tests are executed for the values in the DB, while the others may…
gagneet
  • 35,729
  • 29
  • 78
  • 113
11
votes
4 answers

Can I use a language other than VBScript to programmatically execute QTP Tests?

I have VBScript code which launches QuickTest Professional, executes a series of QTP tests, and emails the results. This works well, but I would prefer to use a language with better tools support (a good IDE for example). I am currently calling .Net…
ssakl
  • 700
  • 2
  • 10
  • 23
10
votes
5 answers

Adding ids to HTML tags for QA automation

I have a query In our application we have lots of HTML tags. During development many tags were not given any id because of no requirement.Now the QA team wants to automate the test cases using QTP. In most of the cases this tool doesn't recognizes…
GustyWind
  • 3,026
  • 3
  • 41
  • 50
9
votes
11 answers

QTP: How can I return multiple Values from a Function

I'm trying to write a function which can return multiple values from a Function which is having 2 arguments. eg: function sample_function(arg1,arg2) ''#Some code................. passenger = list1(0) name1 = list1(1) age1 =…
Sam
  • 543
  • 3
  • 10
  • 27
8
votes
3 answers

oracle connection open error

I use QTP/UFT for my application testing. I had to access my oracle DB (11g) to do some DB setup (to update records). I use oracle.manageddataaccess.dll (referenced to myDBWrapper class library project). I have below dlls (myDBWrapper is the one I…
KitKarson
  • 5,211
  • 10
  • 51
  • 73
7
votes
1 answer

How can I define a ControlTemplate for my TabControl without breaking automated testing?

Summary In my WPF application, I needed a TabControl with buttons on the left, so I defined a ControlTemplate with the layout I wanted and it worked fine. However, my tester's automated testing tool can't see any of the content of the tabs,…
Daryn
  • 4,791
  • 4
  • 39
  • 52
7
votes
1 answer

Item cannot be found in the collection corresponding to the requested name or ordinal in qtp

in a certain scenario, i was trying to use the select query inside QTP (More specifically QTP Using VB script) But the code is not working. Option Explicit Dim con,rs Set con=createobject("adodb.connection") Set…
Girish
  • 157
  • 1
  • 1
  • 16
7
votes
1 answer

How to Call VSTS Coded Ui Scripts to QTP?

I am trying to execute my Coded UI Scripts on QTP. First I created a dll for my Coded UI Project later I am able to access the methods from that dll but i am not able to access Coded UI testing methods. Example: the below script is in C# in…
Sravan
  • 71
  • 2
7
votes
4 answers

QTP: Checking If an array of strings contains a value

I am having trouble getting my test case to run correctly. The problem is in the code below, the first if statement to be exact. QTP complains that an object is required For j=Lbound(options) to Ubound(options) If options(j).Contains(choice)…
Daniel Flannery
  • 1,166
  • 8
  • 23
  • 51
6
votes
5 answers

Mercury Quick Test Pro and Virtual machines: Works from one client machine but not another

I have a virtual machine (VMware) with Mercury Quick Test Professional 9.2 installed. I have a script to test an application, written in VB.NET using the Infragistics library. If I access this virtual machine using my laptop (using Remote Desktop),…
Matthew Farwell
  • 60,889
  • 18
  • 128
  • 171
6
votes
8 answers

Can we automate Application available under Citrix Program Neighbourhood?

I tried to automate an application available under Citrixl Program Neightbourhood using QTP 9.5, but QTP does not identify the objects inside the application. Can we automate citrix application using QTP? What are different tools available to…
Anand
  • 11
  • 1
  • 2
  • 4
6
votes
3 answers

Code documentation in QTP / UFT

I am looking into ways of documenting my code in a JavaDocs kinda way. Any ideas? I use UFT 11.52 So far I have seen NaturalDocs + Perl. Any other ideas? Thanks in advance.
Pixie
  • 412
  • 1
  • 8
  • 26
6
votes
2 answers

How do you write your QTP Tests?

I am experimenting with using QTP for some webapp ui automation testing and I was wondering how people usually write their QTP tests. Do you use the object map, descriptive programming, a combination or some other way all together? Any little code…
Josh Harris
  • 177
  • 4
  • 15
6
votes
3 answers

How can I get the run result status according to the current report node?

For example, suppose a test calls two actions, A and B. A performs a "failed" step by calling "Reporter.ReportEvent micFail, ...", and B performs a "passed" step by calling "Reporter.ReportEvent micpass, ..." Reporter.RunStatus returns micFail as…
TheBlastOne
  • 4,291
  • 3
  • 38
  • 72
1
2 3
99 100