If you are someone who likes to learn new technologies by self, this article will help you immensely. QTP is a very popular functional testing tool by HP. With the recent launch of version This article will server as a QTP Tutorial.
|Published (Last):||11 June 2007|
|PDF File Size:||19.26 Mb|
|ePub File Size:||18.78 Mb|
|Price:||Free* [*Free Regsitration Required]|
This workbook, and the accompanying software and other documentation, is protected by U. Features of the software, and of other products and services of Mercury Corporation, may be covered by one or more of the following patents: U. Patent Nos. Other patents pending. All rights reserved. All other company, brand and product names are registered trademarks or trademarks of their respective holders. Mercury Interac- tive Corporation disclaims any responsibility for specifying which marks are owned by which companies or which organizations.
This course is intended for all new users of QuickTest Professional, those who have had lim- ited use of the tool from tutorials and testers who have no programming background. Upon completion of this training you should be able to demonstrate a basic level of product pro- ficiency.
Intended Audience: Non-technical and new users of QuickTest, who need to automate manual testing and verification in a short amount of time.
Chapter 2 Exercise: Evaluating a Test Case Recording and Running a Test Chapter 3 Exercise: Record and Playback Understanding Objects in QuickTest Chapter 4 Understanding Objects Review Creating Synchronization Steps Chapter 5 Synchronization Review Using Standard Checkpoints Chapter 6 Checkpoints Review Adding Parameters Chapter 7 Parameter Types Review Recovery Manager Chapter 8 Recovery Manager Review Planning Your Test 1 Objectives This chapter contains two exercises:.
In this exercise you will test your understanding of a useful test case. Description: Test the functionality of the process to create a new flight reservation. Verify that an order number is displayed in the Order No box of the Flight Reservation window. Verify that the application accepts different combinations of from and to cities. Verify the state of the check boxes in the Open Order window.
After clearing the window of all data, verify that the order just created can be opened and displayed in the Flight Reservation window. Test Case 1 Review 1. These are some characteristics of a useful test case. Are these characteristics included in Test Case 1? List one example of a test objective and two examples of a test requirement.
What is the importance of learning the application under test before creating automated test scripts? Requirement: Verify that insert done appears in the status bar of the flight reservation window. Requirement: Verify that an order number is displayed in the order number box on the flight reservation window. Exercise: Learning the AUT Before you can create an effective automated test, you need to learn the application under test: Mercury Flight Reservations.
In this exercise, you will launch Mercury Flight Reservations and perform a simple exercise. Taking the time to do this now will help you feel comfortable creating automated tests in subsequent chapters. Part 1: Create a New Order 1. The login screen appears. Click OK. The first flight on the schedule is highlighted.
Click OK to accept this flight and close the flight schedule window. Part 2: Retrieve an Order 1. Part 3: Delete an Order 1. If your flight reservation order is not displayed on your screen, reopen it from the FILE menu, enter your order number and click OK.
Your order will appear on your screen. When the delete confirmation message appears, Figure click YES. Your order is now removed from the database. Recording and Running a Test 2 Objectives This chapter contains one exercise with four parts:. Exercise: Record and Playback In this exercise, you will create a basic test by recording user actions specified in the Mercury Flight Reservation test case.
The test should run without any errors. This allows QuickTest to establish internal hooks that will capture user actions from the application under test. Part 1: Set-up the Test Environment 1. There are no add-ins required for creating test cases during these training exercises. The Mercury Flight Reservation launch windows open on your screen. Note: Additional environment tabs will appear in this dialog depending on which Add-ins you have loaded.
In the example below the Web tab is available because the Web Add-in has been loaded. Part 2: Record the Test 1. Begin recording user actions by re-displaying the flight reservation screen.
You may need to click the Flight icon on your windows taskbar. Record the user actions that will create a new flight reservation. This is referred to as resetting the end condition to match the initial condition of the test. Part 3: Run the Test 1. Click RUN. Click OK to close the window. Open the Mercury Flight Reservations application.
The test should automatically begin repeating the actions you recorded earlier. When the test run is complete, the test results will appear on your screen Figure The test was designed to succeed. If your test failed, try repeating the steps listed in the lab exercise. Write the command to display all of the steps in the icon view of the test results.
Understanding Objects 3 in QuickTest. Understanding Objects Review Answer the following questions to test your understanding of the ways that QuickTest uses objects to record and playback automated tests.
The only way to distinguish one object from the other of the same class is by the difference in object characteristics. After learning the class and properties of an object, QTP assigns a name to the object that is referred to as the:. Understanding Objects Review Answers 1. The correct answer is Drop-down list. An object is a graphic user element in an application, such as a button or a list or an edit box.
The correct answer is True. Specific characteristics of an object within QuickTest are called object properties. After learning the class and properties of an object, QTP assigns a name to the object. Exercise: Identifying Objects In this exercise, you will create a new test and then investigate the objects that are recorded by QuickTest.
Open the Mercury Flight application. Login using the following information: Agent Name: jojo Password: mercury. The Flight Reservation window should appear on your screen. From the QuickTest toolbar, click the Record button. Re-display the Flight Reservation window minimized in your taskbar and enter the following flight data: Date: , Flying from Denver to Seattle. Enter the following personal data: Name: Sam Smith, No.
This action also resets the original test conditions. Click SAVE. As shown in Figure , the name of the test now appears in the title of the QuickTest window. From the QuickTest menu bar, click. This test was designed to succeed. Exercise: Changing the Object Name In this exercise, you will change the logical name that QuickTest assigned to an object in your test.
Although this concept was not specifically covered in the CBT, you should be able to follow the detailed steps in this exercise for a successful result. To assign a more descriptive name, right-click to open the step menu.
QTP Tutorial – Step by step guide to learn QTP
UFT/QTP Tutorial for Beginners: Learn in 7 Days
Introduction to QuickTest Professional 8.0 - Student Handbook