qtp Questions

3

Solved

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 counterVariabl...
Glendaglenden asked 4/10, 2011 at 7:57

4

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 ...
Gandhi asked 29/10, 2014 at 21:11

11

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 = ...
Nosography asked 4/8, 2010 at 7:52

2

I'm trying to use getref to call a function from the function library associated with the test. My code - In action1 str = "sample" msg = "hi" x = GetRef("Function_"&str)(msg) msgbox x In t...
Fretwell asked 22/5, 2013 at 12:8

0

I am trying to execute a function from a functional library (which I am loading at runtime). Everything works if I use Eval or Execute to run the function but I wanted to use GetRef as mentioned in...
Avaria asked 25/1, 2017 at 12:21

3

Solved

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 m...
Womanizer asked 10/9, 2013 at 16:2

6

Solved

I have a scenario where the browzer status =done but still the page is not loaded. Is there a common procedure where the qtp can wait till the page is fully loaded? I tried with objBrowzer.sync,obj...
Rigel asked 28/8, 2014 at 4:53

4

Solved

Let´s say I pass a Browser("MyBrowser").Page("MyPage").WebCheckBox("MyBox") to a function: MyFunction (Browser("MyBrowser").Page("MyPage").WebCheckBox("MyBox")) Later, the function wants to log ...
Sisto asked 28/8, 2013 at 13:58

3

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 pr...
Republicanism asked 21/2, 2015 at 15:55

1

Solved

I am newbie to VBScript. I am trying my hands at Dynamic array concept in VBScript below is my code. Code: dim arr() For i = 0 To 3 Redim arr(i+1,2) arr(i,0)=i arr(i,1)=i+1 MsgBox arr(i,0)&amp...
Nanci asked 8/4, 2015 at 16:46

1

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....
Otter asked 30/9, 2014 at 11:51

4

Solved

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 ...
Oxysalt asked 9/8, 2012 at 8:38

3

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.
Spears asked 4/10, 2013 at 11:9

4

Solved

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 (...
Liszt asked 21/5, 2009 at 21:43

1

I am trying to execute a vbs file using C# code. The vbs file has the code to invoke an application on my machine. I am able to run the vbs script file when i run the C# code locally, but when i de...
Schade asked 2/7, 2013 at 23:41

5

Solved

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 a...
Haiphong asked 23/1, 2011 at 14:16

4

Solved

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 valu...
Cornerwise asked 28/7, 2011 at 12:57

1

Solved

What is the Difference between wait and synchronization function in QTP. And also please give an idea about what situation wait function can be used , and the situation synchronization function can...
qtp
Dragonnade asked 10/12, 2012 at 10:2

1

Solved

I've built many functions for my QTP 10 tests, and many of those functions rely on other, related functions. I would like to have my functions import any other functions that they require. Currentl...
Ginger asked 9/11, 2012 at 0:16

1

Solved

Something similar to Set<String, Set<String>> in Java?
Beckett asked 26/1, 2012 at 10:33

1

Solved

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 t...
Culler asked 3/9, 2010 at 17:44

8

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 usi...
Marijo asked 17/2, 2010 at 10:32

2

Solved

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 combinati...
Extraterritorial asked 16/12, 2009 at 18:14

4

Solved

We are in the process of implementing automated regression testing for our applications, and are looking for a solid batch-testing utility. We have QuickTest Professional 10.0, and it comes bundled...
Keiko asked 14/10, 2009 at 19:50

3

Solved

I am trying to call a C# dll from QTP (uses vbscript). I have tried a number of things with no success: Visual Studio 2010 Create C# class libary (st.dll) code: using System; using System.Col...
Generalist asked 20/9, 2009 at 20:41

© 2022 - 2024 — McMap. All rights reserved.