qtp

Issue related record set sheet in database connectivity...

Hi, Please find below the code.. Function Connect_to_db(Byval mfgprt) Dim cnn,rss Set cnn = CreateObject("ADODB.Connection") Set rss = CreateObject("ADODB.recordset") cnn.ConnectionString = "DSN=QTPDSN;Description=desc;UID=;PWD=;APP=QuickTest Professional;WSID=;DATABASE=;" cnn.open rss = cnn.Execute (""select ...

How To Stop Wscript Exe

I want to shutdown QTP which is invoked through Wscript.exe. Please suggest . Thanks in advance ...

Wait() function in QTP

Can any body suggest me a function which I can use in QTP for following scenario... As sometimes page navigation take times due to which our script shows an error. For that we use the wait(time) function, but it is a fixed time for which the QTP control waits. I want to use a function (I have heard about the sync function, but don't kno...

Issue related to Reusable Action in QTP

Hi, I have made a login Action and made it reusable.I use this in 3 other scripts.. But what's going on is that if i change user name in that reuseable action's local table,it is not getting updated in other scripts. Other script use old username.But if i call copy of this reusable action again in those 3 scripts then it takes new usern...

telnet usage in qtp ?

how to use telnet in qtp. tips n tricks on telnet using descriptive programming ...

Want to delete the text from the JAVA Edit and update a new value in that

I want to delete the text present in the Java Edit box and want to add a new Text into that feild. How can i perform this task in QTP (Scripting)? ...

Press Enter Key in qtp

How to perform the Pressing of Enter Action in QTP. I'm selecting a cell and able to set a value , Now i want to press enter key and get the list from that Java Edit box. Which are the different ways i can achieve this? ...

Best practices for integrating QTP with Maven build Scripts?

i want to Integrate QTP with the MAVEN build scripts. So that i can achieve continuous integration. Whats the best practices for achieving this? Will Hudson be of any use here? ...

Issue related to Exist method..

Hi, I am facing issues while using Exist method in QTP..As if i use Exist with If else then it is working fine...but if used directly then not working... Ex: Browser("Home").Page("Home_2").WebEdit("ctl00$uxMNJDefaultContentPlace").Click Browser("Home").Page("Home_2").WebEdit("ctl00$uxMNJDefaultContentPlace").Set DataTable("mfgpart...

Quick Test Pro Takes Long to Fill Out Forms

We've observed that for some test cases Quick Test Pro takes very long to fill out forms. The web page is rather complex from its layout and size (150kb). There are about 40 fields where a test case fills out about 10 with the Standard Browser.Page.WebEdit.set command. The filling takes about 10-15 seconds. The problem persist over diffe...

is it better to Use to store the Function libraries, repositories in QC itself?

I 'm planning to use QC as a place for Repositories for Libraries, Object repositories , other data files. I'll be executing the all the test cases from QC. If i use QC for these, Will that be a better opinion? Will the execution be more faster than usually? Note: usual Method is functions, repo on local and just updating the Driver sc...

how to identify index of perticular object in qtp

hi i have form, the form contains JavaStaticText fields, and Combo box, and Text fields, i want index of all the items in that form, i tried to get checkpoints, and GET properties but i didn't get the index, how to get perticular index, for example i am taken an example Name XXXX Job XXXX Country XXXX i want index of Name,Job,Count...

what is the use of Object(poroperty) in qtp

what is the use of Object(poroperty) for example JavaWindow(something).JavaStaticText("class_index="&i) ''# i is the increment variable. what are the uses using like this instead of JavaWindow("Form").JavaStaticText("Name") ...

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, including the currently selected tab. Question: How can I keep my TabControl testable by the au...

[solved] is Discriptive Program needed Object Repository?

is Discriptive Program needed Object Repository? give me an example. ...

When to Use Virtual Objects in QTP?

When to Use Virtual Objects? ...

GetTo and GetROProerty are geeting property values from Object Repository in QTP?

GetToProerty and GetROProerty are geeting property values from OR in QTP, i get below line from QTP help 'The following example uses the GetTOProperty method to retrieve the 'RegExpWndClass property from the Object Repository. now i am using test script using DP, when i am getting text property of an object it shows empty [I...

QTP: how to use operators in Discriptive Programming

how to use different operators in QTP for example Window("text:=Calculator").WinButton("text:= =").Click Window("text:=Calculator").WinButton("text:= +").Click it doen't work for me when i run this i am getting error like this Cannot identify the object "[ WinButton ]" (of class WinButton). Verify that this object's properties mat...

How to set focus on file dialog opened in Vbscript

Our Team is automating tests/test data preparation in QTP and we do the scripting in VBScript. In several tests the tester who runs the script need to supply an MS-Excel file with the indata. We use UserAccounts.CommonDialog for this and it works great. Except for one litle problem, when we run this from QTP the file dialog does not get...

using a PLUG-IN to exisitng testing framework or using FULL FRAMEWORK - which do you recommend?

Say you have a huge automation project and are using a certain testing framework, say -JUnit for most of the automation. However you typically get stuck with automating the flash part of the the application . Now you can usually select several tools for that issue only. on the one hand tehre are tools that are standalone and include all ...