June 7, 2008
.Net, Articles, Reviews, Utilities, Yaron Assa
1
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
Read More
October 13, 2009
.Net, Articles, Yaron Assa
0
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
Read More
April 1, 2008
Articles, Collections.ArrayList, Dani Vainstein, DotNetFactory, QTips
0
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
Read More
March 30, 2008
Articles, GUI Objects, Yaron Assa
0
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
Read More
March 30, 2008
Articles, GUI Objects, Yaron Assa
0
Reminder Last time we implemented a tab navigation function for our custom control. We saw how to use the object-spy to locate 8220;interesting8221; 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
Read More
July 14, 2009
Articles, Extern, QTips, Reports, Yaron Assa
0
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
Read More
June 24, 2008
Articles, Collections.ArrayList, Dani Vainstein
0
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
Read More
April 1, 2008
.Net, Articles, Dani Vainstein, QTips, Scripting.NET
0
You can access some .NET classes from script directly, with one preparatory step on a system where you want to do it. Here8217;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
Read More
April 1, 2008
Articles, Collections.ArrayList, Dani Vainstein, QTips
0
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
Read More