Login   /   Register

Welcome to the Knowledge Base world

Here you can get in-depth, structured know-how in QTP usage and programming.

For your convenience, the knowledge base is structured in different channels:

The Articles channel provides in-depth analysis of major dillemmas, problems and topics regarding the everyday use of QTP.

The Scripting QTP channel contains the one-of-a-kind book "Scripting QTP" by Dani Vainstain.

The Projects channel contains learning projects, as well as some mini-applications that provide a wide array of services in QTP (better reporting, stronger object repository etc.).

The QTips channel provides hundreds of small, focused tips, on everything from automating office to working with files and the windows registry.

The Quizzes present an excellent tool to asses your knowledge and skills, by testing them with real-world dilemmas and questions.

And finally, the Reviews channel includes reviews on related tools and versions of QTP.

More metarial will be added regularly, so make sure to re-visit us every now and then. Feel free to add comments with questions and feedbacks, and I’ll update the relevant articles if and when needed.

Happy learning!

Recently Added

Constructor Arguments in VBScript!

     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 ...

Our Class Inheritance Parser has just received a major update. Among the changes is the support for Constructor Arguments.

Most programming languages allow you to pass parameters when you create an instance of your class. These are called constructor arguments. VBScript’s constructor (the Class_Initialize sub) can not receive parameters, so usually we must resort to solutions as a “Build” or “Start” sub, in addition to the actual constructor, in order to relay the parameters.

Well, No more! The class parser allows support for constructor arguments in the most native and fluent manner.

Class inheritance in VBScript – Now at your doorstep!

     4 votes, average: 4 out of 54 votes, average: 4 out of 54 votes, average: 4 out of 54 votes, average: 4 out of 54 votes, average: 4 out of 5
Loading ... Loading ...

VBScript’s lack of class inheritance can be quite problematic for those of us who are using Classes regularly throughout our scripts. The attached file provides a parser which enables you to effectively use class inheritance in VBScript by placeing ‘ ParentClassName comments within your classes. The mechanism will:

1. Enable inheritance from multiple parents (just use multiple lines with Inherit comments)
2. Copies Properties, Variables, Functions and methods from the parent class to the derived class.
3. In case the derived class already has a code segment with the same name, the copied code-segment is changed to MyBase_. Inner segment placements are updated accordingly.
4. Enables inheritance through multiple hierarchies (e.g. GrandParent->Parent->Child inheritance). Circular inheritance protection. The order of appearance in the files is irrelevant, the parser will make sure the parent classes are parsed before their derived classes.
5. The parser has a major downside – as the technique uses ExecuteGlobal to load the processed classes into QTP, you cannot debug the code in mid-run.

Secret Methods of QTP Objects

     7 votes, average: 3.86 out of 57 votes, average: 3.86 out of 57 votes, average: 3.86 out of 57 votes, average: 3.86 out of 57 votes, average: 3.86 out of 5
Loading ... Loading ...

I’ve been doing some digging into QTP’s test-objects, hoping to find some undocumented methods and techniques. Armed with the power of PDM.DLL, I’ve explored each test object, and have come up with these interesting results, all of which don’t show up on your regular intellisense autocomplete.