Posts

Showing posts from February, 2011

QTP and AutoIt - A deadly combination!

Image
From the last post about creating COM objects , here is another solution that can help you create AutoIt objects within QTP: Go to http://www.autoitscript.com/autoit3/downloads.shtml and download the zip file. Extract the file and traverse to the Install -> AutoItX folder. Copy the AutoItX3.dll file to the following path Windows Drive:\WINDOWS\system32 folder. Now register the dll by typing "regsvr32 AutoItX3.dll" in the cmd and look for the message "Registration succeeded" Set oAutoIt = CreateObject("AutoItX3.Control") That's how easy it is to start using AutoIt from within QTP.

CreateObject Methods

Image
We often create automation objects and assign the object returned by CreateObject to an object variable. Once the object is created we access properties and methods of the new object using the object variable. There are times that we don't know what are the objects that can be accessed using the CreateObject method.   Though there is no list which can tell us all the objects that can be accessed as it depends on the COM Objects with IDispatch interface registered on your computer. To find available objects, the simplest way is to look at the HKEY_CLASSES_ROOT hive in the registry: Here is a list that might help as a quick reference: Syntax: CreateObject(Class) here a class would be Servername.typename Servername would be the application providing the object and typename would be the type or the class of the object created. Set objEmail = CreateObject( "CDO.Message" ) Set objIE = CreateObject( "InternetExplorer.Application" ) Set objInet = Crea

Automation of the .NET ToolbarsManager

Image
If you use QTP for automating .NET apps and the app is built using infragistics, you know that it is not easy to use the .NET spy . After a lot of effort I was able to find solution to perform operations on a infragistics toolbar where the swftoobar object was getting identified as a swfobject: Here is the code how to work with .net toolbarsmanager: set cToolbars = SwfWindow("").SwfObject("").Object.ToolbarsManager.Toolbars Set oMyTool = GetToolFromToolbar(cToolbars,"", "") omyTool. 'Operation you want Function GetToolFromToolbar(byref cToolbars, sToolbarKey, sToolKey)    Dim oToolbar ' Toolbar object    Dim bToolbarFound    Dim bToolFound    bToolbarFound = false    bToolFound = false    For x = 0 to cToolbars.Count - 1       If sToolbarKey = cToolbars.GetItem(x).Key Then           set oToolbar = cToolbars.GetItem(x)           bToolbarFound = true           Exit for       End If    Next    If bToolbarFound = true

Download QC OTA API Reference Handbook - Blogs In WATiN

Image
If you are looking for OTA (Open Test Architecture API provided by hp QC then your search will end here. I will explain you easy way to download API reference details from QC. a. Login to your QC b. At Top most corner click on Help Link c. From the pop-up window select Documentation Library as shown in below figure. d. As soon as you will select above option a window will appear. e. Select an option: HP QUALITY Center Open Test Architecture API reference Online f. Click on online link next to the mentioned text g. Save the references documentation at your drive. h. Shown in below figure. Hope this would be helpful !! Source: Md. Jawed Update: ALM OTA API 12.5: http://alm-help.saas.hp.com/en/12.50/api_refs/ota/webframe.html

Convert Excel to Text file

Image
I was trying to convert an excel files worksheets to a single text file , there was lot of reusable code on the web for converting text to excel but not viceversa. So for all of you who want to do what  I did, here is the simple and easy code to convert excel to text file based on the rows and columns of the excel file: 'Prompts for accepting user input strViewPath = Trim (InputBox ("Plz enter the path for the excel file",,"C:\temp\")) strTest = Trim (InputBox ("Plz enter the text file name",,"sample"))         If Right (strViewPath, 1) <> "\" Then    strViewPath = strViewPath & "\"    End If        strTestName = strTest strTextFilePath = strViewPath     'Assign the values for the excel and text file that needs to be converted TestToConvert = strViewPath + strTest + ".xls" TextFile =strTextFilePath  + strTestName + ".txt"     'Create the excel object Set oExcel = CreateObject(&quo

Presentation downloads from the Software Testing Conference (SofTec 2011)

Image
  Here is a list of presentations that were used at the Software Testing Conference (SofTec 2011) held in Chennai last week, also mentioned in my earlier post on Testing News “Present problems and future solutions” - Link “Economical, Robust Web Automation using Sahi - Link “Notes from a problem solving tester consultant” - Link “Smarter ways of doing Selenium Automation”. - Link “The Emerging Trend of Cloud Computing and Software Testing” - Link “I am the Bug Hunter" - Link “Testing at Startups" - Link Source: Slideshare

Testing News - Feb 2nd 2011

Image
Wipro launches Testing-as-a-Service portal -TaaS is a model of software testing, where a provider undertakes software testing for customers as a service on demand.Through the portal, potential customers would be able to browse, request for quotes and purchase services online Source: News   Maveric Systems, an independent software testing specialist, is expanding its presence in UK and Europe of testing services for Metro Bank Source: News India's leading event for Software Testing/QA on Saturday, this time in Chennai - Software Testing Conference (SofTec 2011), a leading event for the Software Test and QA Community this time around in Chennai on Jan 29th, 2011 Source: News AdaCore Releases New GNATemulator Tool for Efficient Embedded Software Testing - GNATemulator, an efficient and flexible emulator solution for testing embedded software applications. Based on the QEMU technology, a generic and open source machine emulator and virtualizer, the new

How to test Silverlight 4 Applications using TestComplete 8 - Darshika

Image
TestComplete 8 provides greater support to verify Microsoft Silverlight 4 application components by using any functional test methodology such as black-box and white-box test mechanisms. In this version of test complete engine can access Silverlight internal objects, methods, properties and fields in order to automate applications. In order to track Silverlight components by testcomplete engine, first you require to check following “Extend Silverlight Object Tree” checkbox option by navigating to Tools -> Default Project Properties -> Projects -> Open Application -> Silverlight. Subsequent that, the test complete engine will have access to Silverlight objects and their methods, properties and fields and you can employ those elements in your automated tests. (Pls. refer the following screen cap) Further, you can notice all Silverlight objects and their available methods and properties in the hierarchy of object tree model subsequent to explore brow