QTP Tutorial: Various Types of Checkpoints Made Easy

qtptutorialLearning how to do Python Programming can prove to be quite the daunting task but unlike that, QTP (Quick Test Professional) is relatively easy to use. With this QTP tutorial, we’ll be going over some of the bare essentials in regards to performing checkpoint operations. If you’re familiar with QTP at all, you know how vital it is to learn the ins and outs of checkpoints. These will range from Table Checkpoints to Bitmap Checkpoints. Regardless of what checkpoint operation you’re struggling with, by the end of this tutorial, you’ll be much more efficient at it. So, with that being said, I hope you’re ready to start.

One last thing before we begin though. If you’ve never used QTP before (this tutorial is designed for those of you that are at least semi familiar with it), you may need to polish your QTP skills before you begin. However, there is always an exception and with practice, you may do just fine as a beginner. Regardless, this tutorial will help you learn how to use QTP as far as setting up different types of checkpoints go. We just hope that you’ll take the time to get familiar with QTP first if you aren’t already and then come back.

Now, those of you that are familiar with QTP and its basic functions scroll down and we’ll get started.

The Standard Checkpoint

Okay, so to start things off, we’re going to go over how to get your standard checkpoint in QTP going. Basically, you’ll want to follow the list below in order. Don’t worry, it’s very straight forward:

·         Open a blank test

·         Ensure that the Flight application is open (only blank test and Flight application should be open)

·         Click on Record > Windows Application > Choose the first option > Click ok

·         Click Insert on the menu

·         Click Checkpoint and then hit F12 (you can also click Standard Checkpoint instead)

·         Click the “Flights” button on the right hand side of the screen

·         Click ok (a new window will pop up)

·         Click “Stop Recording” once you’re ready

·         Save

Now all you will have to do is see if the test registers as a pass or fail. Once you do that, you’re entirely done. That wasn’t too hard, right? Of course it wasn’t! Basically, what you’ll just have to get used to is the order in which you do things and where to do them. In other words, get familiar with the interface.

The Bitmap Checkpoint

While many people look at the Bitmap Checkpoint like it’s more complicated than your Standard Checkpoint, it really isn’t. In fact, it requires less steps than the Standard Checkpoint so you’ll be able to get in and out with this one pretty quickly. Now, take a look at the easy to understand list below:

·         Open a blank test again

·         Click Record  > Choose the first option > Click ok

·         Click Insert > Checkpoint > Bitmap Checkpoint

·         Click the “Fly To” box

·         Click ok on the new window that pops up

·         On the next window that pops up, change the “Checkpoint Timeout” to 0

·         Click ok > Stop Recording

·         Click Save

There you have it! This is how to run the Bitmap Checkpoint. As you can see, all the stories you’ve heard about how hard it is to do checkpoints on QTP aren’t true. It’s all about repetition and practice but either way, we’re going to keep on pressing forward. Once you’ve done this a few times and have it memorized, feel free to move on.

The Table Checkpoint

Other than the Standard Checkpoint, this is the one that you’ll probably use most frequently when you start getting familiar with QTP. It isn’t the most valuable by any means but it probably is the most commonly used. So, to learn how to get it done, scroll down and view:

·         Open a blank test once again

·         Open a website of your choosing in “Offline Mode” which is accessible in “Settings”

·         Click Record > Choose the first option under the “Web” tab when the windows pops up

·         Click Insert > Checkpoint > Press F12

·         Click anywhere within the table

·         A new window will pop up > Click “Web Table: Software Testing Life Cycle”

·         Click ok > In the new window, change the Checkpoint timeout property to 0

·         Click ok > Stop recording when ready > Run the test and view the results

We realize that this test is definitely a little more complicated than some of the others but we definitely hope that you’ll take the time to get used to it. If you’ll be using QTP regularly then you’ll most likely need to familiarize yourself with this process. Either way, all you’ll need to do in order to use QTP is to learn the basic Javascript fundamentals and familiarize yourself with the program.

The Image Checkpoint

This is another checkpoint that you’ll need to get familiar with and will definitely be using pretty often. As with the other checkpoints, we’re going to break down the Image Checkpoint in this QTP tutorial and teach you how to perform an Image Checkpoint from beginning to end. You know the drill, look below:

·         Open a blank test

·         Find a picture to use on your computer and right click it

·         Open it with Internet Explorer

·         Click Record > Click the Web Tab > Choose the first option > Click ok

·         Click Insert > Checkpoint > Hit F12

·         Click on the image > Click ok in the new window

·         In the next window that pops up, make sure only “src” is checked > Click ok

·         Stop recording when ready > ensure that the test is a pass since it was opened in IE

Keep in mind one thing. This test only passes because you had the image opened in Internet Explorer. Essentially, this test is just checking to make sure the image was where it was supposed to be. Once you get more into the program and start advancing your level of expertise, you’ll learn more.

The Existing Checkpoint

We’re almost done now as we have the Existing Checkpoint. Okay, so it’s not necessarily the best but it is one of our favorites. With this checkpoint, you can basically reuse an old checkpoint. We’re going to teach you the basics of doing this so if you want to learn how to run this checkpoint, check below:

·         Open a new test (Make sure Flight Reservation is open as well)

·         Click Record

·         Click Insert > Checkpoint > Standard Checkpoint

·         Click the Flights button

·         Click ok in the new window that pops up

·         Yet another window will pop up > Click ok

·         Stop Recording

·         Click Resources > Object Repository

·         Click File > Export and Replace Local Objects

·         Enter a file name > Click Save

·         Close the Object Repository

·         Save the test under “Test One”

·         Open a new test and save it under “Test Two”

·         Click Insert > Checkpoint (You will now see that Existing Checkpoint is enabled and you have the option to add Test One which proves to be a very handy feature for regular users of QTP)

Again, this checkpoint isn’t one that you will use often but it is a very unique feature to have. Definitely familiarize yourself with this checkpoint just in case you ever need it. It will take some practice as, like some of the others, there are quite a few steps involved but it will be well worth it. Now, we’ll move on.

The Page Checkpoint

We saved the best for last. Okay, so this may not necessarily be the best but it is an easy one to learn. In this section, we’re going to go over the Page Checkpoint which will see its regular use but again, this won’t be the one that you use the most. There are exceptions to this rule but that is just in general.Either way, we hope that you’ll take the time to get used to this checkpoint as well and learn it well:

·         Open a blank test

·         Open a generic  page such as http://www.Bing.com

·         Click Record > Web Tab > Choose the first option > Click ok

·         Click Insert > Checkpoint > Press F12

·         Click anywhere on the Bing page

·         In the new window, click on the “Page/Bing” option

·         Click ok > On the new window, make sure all the options are default and click ok

·         Stop recording when ready

If you did all of this correctly, the results should look something like this. The load time should be at 0 (since you already had the Bing page open), the number of images should only be a few at most (depending on what is on the page), and the link count will probably be a higher number. Either way, just pay attention to the load time. If there is anything other than 0 there, you may want to redo it.

So, with all of this being said, we hope that this QTP lesson on learning checkpoints has been of some benefit to you. While it may look intimidating at first, we promise it’s not tough. The example we used above was that learning how to use QTP is not an impossible task and that you may need to learn some Javascript but other than that, it’s a relatively easy program to use and will come in handy time and time again. It will take some getting used to and there are a lot of variations on how you do things. What we basically mean by this is that while we just taught you one way to do various checkpoints, most of these have alternative methods.

We just felt like the way we taught it was the easiest way to learn. Once you get familiar with how all of this works, you’ll find that QTP could very well become your new best friend. Also, there’s a lot more to the program than just learning checkpoints but nine times out of ten, you’ll be using checkpoints. So, after you make a few practice runs with the aid of this guide, we hope that you’ll consider trying to do a few checkpoints without our help. If you put in a little practice, we are confident that you can have this process mastered in a week or two.

Yes, it really does become that easy. If you do end up getting stuck and need a little extra help, feel free to refer back to this page at any time you need to!