Posts

Showing posts from March, 2011

Click on .net toolbar using bounds property

Image
In continuation to the previous post Automation of the .NET ToolbarsManager , here is the code that will click on any toolbars button using the bounds property :

Note that:
The toolbar is recognized as an swfobject hereWe are accessing the CommandLinks collection to access individual buttons in the toolbarUsing an array to get the bounds and then clicking on the respective button.
Set Mnubar = SwfWindow("").SwfObject("").Object.CommandLinks

For i = 0 To Mnubar.Count -1
    Mnuname=Mnubar.Item(i).Text
    msgbox Mnuname
    oBounds = Mnubar.Item(i).Bounds
    arrBounds = Split(oBounds, ",")
    arrBound = Split(arrBounds(0), "=")
    iX = CInt(arrBound(1))
    arrBound = Split(arrBounds(1), "=")
    iY = CInt(arrBound(1))
    SwfWindow("").Activate
    SwfWindow("").SwfObject("").Click iX,iY   
Next

We can make this code more generic by passing the name of the button or the tooltip of the button which has to be clicke…

Create Reports Using TestNG - Testing

Image
Creating Report.....It is easy with TestNG...it will create default reports....in HTML format.

The Default feature in TestNG is it will create reports automatically..you need not to write any code...

Just run the Script with TestNG...it will automatically create a report...

First Setup the TestNg
Please go through the following link if you dont know how to set up...
Setting up Selenium RC & TestNG using Eclipse

Observe the screen shot before running the test...

Screen Shot after running the Test

NOTE: You need to download the testng-5.14.10.jar file................it should be in your referenced library..
Hope it will be helpful .......

Source: NagaRaju Dasam

If not QTP then what?

Image
I have seen a lot of traction towards the blog post "QTP v/s Selenium" . Like I have always said in my earlier posts that QTP has been one of my favorite tools and also one of the most explored tools.Tools like Quicktest are great but there are definitely some drawbacks with knowing just QTP and nothing else.
I believe going forward just knowing tools like QTP would not help... We would need tools that :
Can fit into a fast paced agile project Are low on cost Are low on maintainance. Are not just GUI based and at-least get to a level below the presentation layer.Allow choice of scripting languages Allow Continuous IntegrationOpen-source has contributed a great deal to such kinda tools ... so here is a quick list of tools that answer if not QTP then what? in no specific order:
Selenium / TelluriumWatir / WatiNSahi FitNesseCanoo CucumberRspecAutoIt / iMacrosWhite for .NetMarathon/JWebUnit for JavaFrankenstein for Swing appsThere are many more tools but these are some of them th…

Run Commands Cheat sheet

Image
Run command is one of the most used commands when it comes to testing windows based applications.
Here are a set of commands that can be used as a quick reference while automating windows apps:

Application Data Folder%appdata%Home Directory Drive%homedrive%Home Directory%homepath%Shared Home Directory%homeshare%Temporary Folder%temp%Windows Root Drive%systemdrive%Windows Root Directory%windir%
Computer Managementcompmgmt.mscDevice Managerdevmgmt.mscDisk Cleanup UtilitycleanmgrDisk Defragmentdfrg.mscDisk Managementdiskmgmt.mscDisk Partition ManagerdiskpartDr. Watson System Troubleshootingdrwtsn32Driver Verifier UtilityverifierEvent Viewereventvwr.mscGroup Policy Editor (XP Prof)gpedit.mscLocal Security Settingssecpol.mscLocal Users and Groupslusrmgr.mscPerformance MonitorperfmonResultant Set of Policyrsop.mscScheduled Taskscontrol schedtasksServicesservices.mscShared Foldersfsmgmt.mscSystem Configuration EditorsyseditSystem Configuration UtilitymsconfigUtility ManagerutilmanWindows Sys…

Testing News - Mar 10th 2011

Image
QualiSystems Strengthens APAC Presence With New Singapore Headquarters - QualiSystems, a leading provider of test automation solutions for network systems, telecom services and electronic equipment, today announced the opening of a new APAC regional branch in Singapore.Source: NewsSOASTA Awarded Patent for Visual User Interface of its CloudTest Platform - SOASTA, the leader in cloud-based performance testing, today announced that the United States Patent and Trademark Office has issued the company patent No. 7,844,036 entitled, "Visual Test Automation Tool for Message-Based Applications, Web Applications and SOA Systems." Source: News DATE 2011 (Design Automation and Test in Europe ) Conference from 14th -18th Mar 2011 - Source:NewsCroatian brainboxes deploy calculus-based CAPTCHA - Source: News










Test Automation Career - QTP

Image
I have had a lot of friends and testing aspirants asking me , what is it that i should know in QTP to start a career in automation . I shall have a series of posts that will give you an idea of what are the things you need to learn if you want to test a specific technology : e.g : .Net , Java, WebServices etc...
I shall start with the simplest one and my favorite QTP:
Basics of using QTP- use the tutorial and refernce guide for thisWeb App testing ( Use the sample HP app for this)Windows App testing ( Use the sample HP app for this)VB scripting (from a quicktest point of view) Advanced concepts in QTP.Other Advanced concepts like COM objects, Quick test object model Make your own DLL’s, work with WSC, and QTP Reserved Objects and Registry changesSynchronizing  QTP with external applications. Hope this helps all those who wanna learn QTP and get into automation.