Login   /   Register

Private Investigation: System.Collections.ArrayList

June 24th, 2008 by daniva
     2 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 52 votes, average: 4.5 out of 5
Loading ... Loading ...

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

A free, external, .Net object spy

June 7th, 2008 by Yaron Assa
     4 votes, average: 3.25 out of 54 votes, average: 3.25 out of 54 votes, average: 3.25 out of 54 votes, average: 3.25 out of 54 votes, average: 3.25 out of 5
Loading ... Loading ...

A cool exteral .Net object-spy, which packs quite a pounch compared to QTP’s native .Net object spy

Sorting a String Array

April 2nd, 2008 by daniva
     2 votes, average: 4 out of 52 votes, average: 4 out of 52 votes, average: 4 out of 52 votes, average: 4 out of 52 votes, average: 4 out of 5
Loading ... Loading ...

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 the advent of the .NET Framework. If you have the .NET Framework installed on your computer then you can sort an array using code no more complicated than this:

Retrieving Visual Studio last version

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

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

Automating Visual Studio .NET

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

Visual Studio .NET exposes an extensibility model that can be used to automate it. This object model resides in the EnvDTE.dll assembly, which you can explore using the Object Browser. The root class of the object model is EnvDTE.DTE, and therefore you need an instance of this class to automate it.

Appending two Arrays

April 1st, 2008 by daniva
     1 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 51 votes, average: 4 out of 5
Loading ... Loading ...

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.

Retrieve ArrayList information

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

The ArrayList object Implements the IList interface using an array whose size is dynamically increased as required.

Sorting a string array

April 1st, 2008 by daniva
     0 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 50 votes, average: 0 out of 5
Loading ... Loading ...

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 programmers were forced to write their own sort routines, be that a bubble sort routine, a heap sort, a quicksort, or some other type of sorting algorithm.

Registering .NET objects

April 1st, 2008 by Yaron Assa
     3 votes, average: 2 out of 53 votes, average: 2 out of 53 votes, average: 2 out of 53 votes, average: 2 out of 53 votes, average: 2 out of 5
Loading ... Loading ...

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.

Exploring Custom Controls (cont.)

March 30th, 2008 by Yaron Assa
     1 votes, average: 2 out of 51 votes, average: 2 out of 51 votes, average: 2 out of 51 votes, average: 2 out of 51 votes, average: 2 out of 5
Loading ... Loading ...

Reminder
Last time we implemented a tab navigation function for our custom control. We saw how to use the object-spy to locate “interesting” RO properties and methods, and how to switch to debug view to drill even deeper into the inner control structure. Today we’ll master these techniques to implement our second goal – pressing a […]

Exploring Custom Controls

March 30th, 2008 by Yaron Assa
     2 votes, average: 2.5 out of 52 votes, average: 2.5 out of 52 votes, average: 2.5 out of 52 votes, average: 2.5 out of 52 votes, average: 2.5 out of 5
Loading ... Loading ...

Hyderkhan asked me how to automate the Sandbar-Ribbon controls. While the old version of these controls is dealt with in the .Net add-in extensibility help files, I decided to address the subject for two reasons:

A. This could be a good chance to explain how to explore and automate unknown custom .Net controls.
B. I absolutely hate […]