Skip to main content

Posts

HP QTP Tutorial - Chapter 10

1 Debug In my previous chapter, I discussed about the features available in Resources Menu such as Object Repository, OR Manager, and Associate Repositories etc. This chapter covers the features available under Debug Menu option. This chapter explains the following features available under Debug Menu : The features under Debug menu are very useful and also frequently used. Although in most of the cases you use Short Keys. We will cover all these features in detail in this chapter. 1.1 Pause  There could be case when are you running your script and want to pause (remember Pause and Stop are different things), then you can navigate to Debug ->Pause. The script will be paused at the current execution step. You can then do your analysis and then continue with your run by clicking on Automation-> Run. Alternatively you can also Press F5 or Run button from the tool bar.  1.2 Step Into  There are situation in a script which makes call to other Action or Funct...

HP QTP Tutorial - Chapter 9

1 Resources In my previous chapter, I discussed about the features available in Automation Menu including Run and Record Settings. This chapter covers the features available under Resource Menu option. This chapter explains the following features available under Resource Menu : Some of the features under Resources are very frequently used when you need to do the scripting and manage your Shared or Local Object Repository. You can manage your Object Repository; Associate your OR, Add Recovery Scenario etc. We will cover most of these features in detail in this chapter. 1.1 Object Repository When you are doing your scripting and want to view the Object Repository which is attached with the current Test Script, you can access it using Ctrl+R or by navigating to Resources->Object Repository. : You will see a below screen which is having multiple commands for modifying and adding new test object in your local or shared object repository. This is one of the screens which is ver...

HP QTP Tutorial Chapter 8

1 Automation In my previous chapter, I discussed about the features available in Insert Menu, QTP Checkpoints and usage of Output Value features. This chapter covers the features available under Automation Menu option. This chapter explains the following features available under Automation Menu : The features under Automation are very frequently used when you need to do the scripting. You can control your recording, run your test, and update your Test. We will cover most of the features in detail in this chapter.  1.1 Record Recording features work in 2 ways. One when you are starting a new test and want to start recording for generating the Test Script and when you want to enhance existing script for new features in your AUT. I will explain both the mode. We will start with Record for New Test. When you are starting with New Test, and about to start with recording of your scenario, you have to either press F3 or navigate to Automation=>Record. As soon as you have ini...

HP QTP Tutorial Chapter 7

  1 Output  In my previous chapter, I discussed about QTP Checkpoints which is a very handy utility for comparing the expected and actual result. This chapter covers the topic of OUTPUT utility available in QTP. This utility is also very handy in capturing the run time values from the application under test. You will use OUTPUT utility where in you are testing and automating an end to end test scenario. In such a case output of one module is an input to next module. An end to end Business Scenario example is given below: Validate that user is able to book and cancel the flight ticket Step1- Navigate to booking site The user navigated to booking site Step 2- Enter valid login credentials The system allowed login and display the flight booking page Step 3- Fill the Booking Information & Submit the form The system generate a unique PNR number once data is proce...

HP QTP Tutorial Chapter 6

“Let me first say sorry to all my readers for such a long wait for Chapter 6. It was totally my fault for such a long wait. I promise to all my readers that now they do not have to wait for so long for next chapter and every month I am going to publish 2 Articles. With this pledge, let get started with Chapter 6.” 1 Checkpoint In my previous chapter, I touch base with checkpoint but not in great detail. In this Chapter I am going to talk only about Check Points/Verification Points/Validation Points. First I will describe what is a Checkpoint? Let me explain the concept of Checkpoint with an example: See the below scenario with expected result for each step. The third column provides the information on where QTP checkpoint can be used. Validate the layout of login page Step1- Navigate to page The user navigated to login page Step 2- Verify user name input field The User Name field is visible and editable ...