Tag Archive: .Net

Oct 13 2009

Accessing PRIVATE Properties in .Net Controls

Background One of the more frustrating aspects of automating any complex application is knowing that the application holds a lot useful information which isn’t accessible to QTP. Sometimes accessing the information is just not possible by any means (for example, accessing runtime properties from MFC applications), but other times, it seems to be just a …

Continue reading »

Jul 14 2009

Highlighting the .Net Active Control in Screen Captures

Whether you’re using your own reporting framework, or QTP’s native reporter, your report is probably filled with a lot of full-desktop screen-captures, which are supposed to make the report more comprehensible, but usually just confuse the average reader. An effective screen-capture should highlight the relevant area in the application, and not leave the reader with …

Continue reading »

Feb 07 2009

Writing QTP Tests in Visual Studio

Background It’s no secret I’m not a fan of QTP’s code-editor – it lacks intellisense, meaningful autocomplete, code folding, and many other “Must” features; And while QTP 10 will improve the situation, the IDE’s core problems will remain. In addition to the IDE’s shortcomings, QTP’s reliance on VBScript cripples it in many key areas such …

Continue reading »

Jun 24 2008

Private Investigation: System.Collections.ArrayList

Lately many user sending me question about .NET objects, and how they could be used in QuickTest So, I decided to make a research, on one of the most efficient .NET collections: the System.Collections.ArrayList Probably you will see over the network, a lot of examples using this object. Usually they are very basic. The examples …

Continue reading »

Jun 07 2008

A Free, External, .Net Object Spy

Max Sch had recently brought to our attention the existence of a free, external .Net object spy, which is far superior to QTP’s internal object spy, and .Net object spy. This new object spy is called Runtime Object Editor, and is downloadable from here (Courtesy of The Code Project). Update: there’s a more advanced version …

Continue reading »

Apr 02 2008

Sorting a String Array

Sorting arrays in VBScript has never been easy; that’s because VBScript doesn’t have a sort command of any kind. In turn, that always meant that VBScript were forced to write their own sort routines, be that a bubble sort, a heap sort, a quicksort, or some other type of sorting algorithm. But that was before …

Continue reading »

Apr 01 2008

Registering .NET Objects

You can access some .NET classes from script directly, with one preparatory step on a system where you want to do it. Here’s why and how. Basically a .NET class which is scriptable is one which is COM-accessible. You can write one yourself; you need to make sure that it is public, that it returns …

Continue reading »

Apr 01 2008

Retrieve ArrayList information

The ArrayList object Implements the IList interface using an array whose size is dynamically increased as required. The Capacity property gets or sets the number of elements that the ArrayList can contain. The Count property gets the number of elements actually contained in the ArrayList. The IsFixedSize property gets a value indicating whether the ArrayList …

Continue reading »

Apr 01 2008

Appending two Arrays

Using common VBScript is impossible to append on array to another. It is possible using the System.Collections.ArrayList object. The AppendRange method adds the elements of an array to the end of the ArrayList. Dim arrayList, queue Private Sub PrintValues( ByRef myList, ByVal separator ) Dim sb Set sb = DotNetFactory.CreateInstance( “System.Text.StringBuilder” ) For Each obj …

Continue reading »

Apr 01 2008

Retrieving Visual Studio Last Version

Describes how to automate the Visual Studio .NET IDE from outside the IDE.

Older posts «

Fetch more items