Entries Tagged 'QTP Tutorials' ↓

QTP Tutorial #12 – Expert View, Step Generator and Checkpoints Explained with Example

It is going to be an article on Expert View overview, Step generator and a brief introduction to Checkpoints that will be carried on further until we cover all the details elaborately with examples on how to use these while recording actual scripts. This is the 12th tutorial in QTP training series.

Expert view of QTP

  • Expert view is where the operations we performed on the AUT get displayed as VB Script code.
  • For every LOC in this view, there is a corresponding column in Keyword view.
  • There is also the action drop down box that can be used to access, view and edit different actions in the test.
  • This view is particularly useful for users who are familiar with programming using VB script.
  • One of the most important uses of this view is that it facilitates the creation of functions and function libraries. (a topic for detailed discussion later)
  • The user can print the test or function library as it appears in this view anytime. File->Print will print the test.

This is how it looks: Continue reading →

QTP Tutorial #11 – Use of Password Encoder and Active Screen – Explained With Examples

This QTP tutorial will explain two basic but important features of QTP which are used frequently in advanced QTP scripts. They are the QTP password encoder tool and the active screen. 

Click here to see the list of all tutorials published in STH.

QTP Password tool:

For obvious reasons websites do not display password even while we are providing it as an input to sign in. QTP has a unique feature that will preserve the password from being out in the open thus maintaining the password’s integrity. As you might have noticed when we enter the password as ‘Mercury’ in the flight’s application along and illegible sequence of characters is set in the password edit box.


This is how it looks:

Dialog(“Login”).WinEdit(“Password:”).SetSecure “512c58cda469a14c01aa536f4a1a6a544d7d09e6”

In the above line of code we can see that the password is encrypted.

QTP records a ‘SetSecure’ method when a password is entered. It automatically encodes the password Continue reading →

QTP Tutorial #10 – Writing Loop and Conditional Statements – VB Script Basics Part 2

VB Scripting Basics – Writing Loop and Conditional Statements for Building the Programming Logic.

=> Also read the complete free VBScripting Tutorial series here

In the last VB Scripting article, we saw some of the basic features of VB script. We are going to learn a few more programming concepts before we conclude our introduction series.  Continue reading →

QTP Tutorial #9 – VBScript Basics You Should Know to Write Robust QTP Tests – Part 1

Today we will take a look at the basic VBScripting concepts. VBScript is the language that QTP uses for its tests. While QTP is quite a user-friendly tool, it is very important for the tester to be able to have a basic programming skill using VB Script to be able to effectively create, maintain and execute QTP tests.

=> Also read the complete free VBScripting Tutorial series here

It should be noted that this article is not an exhaustive list of all the VB Script features. Consider this as a place that will introduce you to certain key concepts to guide you while you attempt to self-learn the language.   Continue reading →

QTP Tutorial #8 – Learn About QTP Recording Modes, Object Spy and Object Repositories

In this article, we will talk about the different recording modes, Object Spy and Object repositories in QTP.

Recording Modes in QTP:

The recording is the most commonly used method to create a test. The basic steps are typically recorded and the test later undergoes improvements in order to suit the needs of the testing process.

QTP provides 3 modes of recording:

  1. Normal
  2. Low-level
  3. Analog

Though only the normal recording mode gets used most of the times, it is important to know the others too, as the knowledge about the same can come handy when the need arises for them.

Normal Recording mode– The default recording method is always the normal mode Continue reading →