Posts

Showing posts from April, 2011

Code to copy a test set from one folder to another in Quality Center

Image
I am sharing this info as I had to do quite a research before i found the solution. Problem :  Copy a test set from one folder to another in Quality Center test lab using code. First things first : This cannot be coded in vbscript or QTP as it uses the ISupportCopyPaste interface and the CopyToClipboard method which is part of this interface. Therefore you cannot declare a statement like Dim iscp As ISupportCopyPaste A simpler way would be to use vba and do the following: 1. Add the following code in excel vba editor. 2. Add the " OTA COM Type Library " as a reference under tools -> references from excel. 3. Run and enjoy the magic :-) Solution : Public Function CopyPasteTestSetFolder(sourceFolderPath, destFolderPath)              strServer = "http://xyz/qcbin"      strDomain = ""      strProject = ""      strUser = ""      strPassword = ""            Set objTDConnection = CreateObject("tdapiole80.TDCON

QTP 11.0 - Patches till April 2011

Image
Here are a set of patches that might help wrt  QTP 11.0: QTP_00699 QTP 11 support for 64-Bit applications. The 64-Bit technologies that are currently supported: - .Net - Java - WPF - Standard http://h20230.www2.hp.com/selfsolve/document/FID/DOCUMENTUM_QTP_00699 QTP_00709 Recovery scenarios did not work in BPT wrapper tests. Run-time errors were displayed if you ran a business component that contained a QCUtil.CurrentTest.Name step. Function libraries that were created from an QuickTest crashed or an OS blue screen appeared when using a User-Defined / Non-HLLAPI emulator on Windows 7 with Office 2007/2010 installed. http://h20230.www2.hp.com/selfsolve/document/FID/DOCUMENTUM_QTP_00709 WEB_00073 Testing applications in Internet Explorer when Internet Explorer is in protected mode. http://support.openview.hp.com/downloadAPatch.jsp?patchName=QTPWEB_00073.EXE&prodName=qtp&prodRelease=11.0 ORACLE_00010 Support for Oracle Forms 11g.Enhanced support for Orac

VBScript Code beautifier / Formatter

Image
For a long time was looking for some tool that would quickly format the vbscript files that I had. Here is an amazing tool that will help you do the same: Both the source code and the exe are available for download from here: VBSBeautifier - Daan Systems Features: · Comes with a nice GUI. · Works on serverside and clientside VBScript. · Can be used as a text filter in editors. · Skips HTML. · Properizes keywords. · Splits Dim statements. · Places spaces around operators. · Indents blocks. · Lines out assignment statements. · Removes redundant endlines. · Makes backups.

Selenuium and Cucumber

Image
Since both Selenium and Cucumber are my fav tools , Found an interesting deck on slideshare titled : "Using Selenium and Cucumber to test a Healthcare Information System" This was presented at the Selenium Conference April 2011 - San Fransisco by Andy Tinkham.  Here is the link to download the same.

FizzBuzz

Image
  Try solving this very simple program which is asked in many interviews, especially to testers who use a lot of scripting in automation: Write a program that prints the numbers from 1 to 100. But for multiples of three print “Fizz” instead of the number and For the multiples of five print “Buzz”. For numbers which are multiples of both three and five print “FizzBuzz” This is also a game played in the pubs , where players generally sit in a circle. The player designated to go first says the number "1", and each player thenceforth counts one number in turn. However, any number divisible by three is replaced by the word fizz and any divisible by five by the word buzz. Numbers divisible by both become fizz buzz. A player who hesitates or makes a mistake is either eliminated or must pay a forfeit, such as taking a drink.  Most tester's who know to code are not able to solve this simple problem. Out of every ten automation engineers i have interviewed 9 weren't abl

Browse from VBScript

Image
 Something very simple yet complicated is trying to get a browse dialog using vbs. So here is a snippet that will help in adding a Browse dialog like in the pic , instead of a message box asking for the absolute/relative path of the folder: Const EDITBOX = &H10 Const DIALOGSTYLE = &H40 Set objShell = CreateObject("Shell.Application") Set objFolder= objShell .BrowseForFolder(0, "My Computer:", EDITBOX Or DIALOGSTYLE) Browse = objFolder .Items.Item.path If Err.Number > 0 Then     MsgBox("You have not selected a folder." & vbCrlf & "This script will not continue!")     Err.Clear   Else     wscript.echo Browse End If Hope this helps!

Quick Overview on Agile Scrum

Image
Before we do more Scrum, we should know what is Agile: What is Agility? “ Values , principles and practices that foster team communication and feedback to regularly deliver customer value through working software .”   Team communications - Concentrate more on communication and collaboration rather than process and tools  Feedback - lots and lots of daily feedback with all stake holders involved -  Regularly Deliver - Software releases every quarter with internal releases weekly or bi-weekly Value - Focus on highest valued features first Working Software - Focus on getting S/W working early and keeping it releasable rather than big-bang waterfall approach  Agile Values  Emphasize face-to-face communication over written documents. Agile teams are located in a single open office sometimes referred to as a bullpen. Highlight working software as the primary measure of progress.  Produce very little written documentation relative to other methods  What are the Agile methods