Software Testing

1. Software Testing Intro 2. What is Testing 3. Why Software Testing necessary 4. Role of Testing 5. General Testing Principles 6. Types of Software Testing 7. Load,Performance & Stress Test 8. Software Development Process 9. Project/System Life Cycle 10. Difference between terms 11. Manual V/s Automated Testing 12. Economic of Bug/Error/Fault 13. Fundamental Test Process 14. Software Testing Tools 15. HP- QTP 16. Installing QTP 9.2 17. Ex.01 Evaluating AUT 18. Ex.01 Answer 19. Ex.02 Learning AUT 20. QTP 9.2 / 10 21. QTP Window Layout 22. Test Object Model 23. Applying Test Object Model 24. Object SPY & Object Properties 25. Designing Test 26. Ex.03 Record & Running a Test 27. Ex.03 Answer 28. Saving a Test 29. Printing a Test 30. App. Record & Run Options 31. Ex.04 Sample Web Site 32. Web Record & Run options 33. Ex.05 Recording a Test 34. Working with Keyword View 35. Keyword View Description 36. Recorded Object Hierarchy 37. Ex.06 Identifying Objects 38. Ex.06 Answers 39. Keyword view columns 40. Microsoft VBScripting 41. Running VBScript 42. Msgbox Function 43. Variable 44. VBScript and QTP 45. Print statement 46. InputBox function 47. Operator Precedence 48. Cint( ) function 49. Data Types 50. VarType( ) Function 51. TypeName( ) Function 52. Cbool( ) Function 53. Cbyte( ) Function 54. Cdate( ) Function 55. CDbl( ) Function 56. Cint( ) Function 57. CLng( ) Function 58. CSng( ) Function 59. CStr( ) Function 60. If Then - End If statement 61. If Then -Else-End If statement 62. If-Elseif-Else-End If Statement 63. Len( ) Function 64. Left( ) Function 65. Right( ) Function 66. Mid( ) Function 67. Ltrim(), Rtrim(), Trim() Function 68. For-Next Statement 69. Array Function 70. ABS( ) Function 71. ASC( ) Function 72. Chr( ) Function 73. Date( ) Function 74. Now( ) Function 75. DateAdd( ) Function 76. Time( ) Function 77. DateDiff( ) Function 78. InStr( ) Function 79. InStrRev( ) Function 80. StrComp( ) Function 81. Lcase( ) Function 82. Ucase( ) Function 83. Rnd( ) & Randomizer 84. Round( ) Function 85. VBScript Procedure 86. Ex.07 QTP Logon App.Script 87. Ex.08 Synchronization 88. Ex.09 Synchronization I/O 89. Ex.10 Output Parameter 90. Ex.11 Create Input Parameter 91. Check Points 92. Ex.12 Add Standard Checkpoint 93. Ex.13 Checking Objects 94. Ex.14 Page Checkpoint 95. Ex.15 Checking Text 96. Ex.16 Checking Tables 97. Ex.17 Parameterization Test 98. Testing Interview Part1 99. Testing Interview Part2 100.Testing Interview Part3 101.Testing Interview Part4 102.Testing Interview Part5 103.Testing Interview Part6 104.Testing Interview Part7 105.Testing Interview Part8 106.Testing Interview Part9 107.Testing Interview Part10 108.Testing Interview Part11
Pr.Pg Next Pg

Exercise 3 Recording and Running a Test tutorials

Objectives This contains one exercise with four parts:

    1. Set-up the test environment.

    2. Record a test.

    3. Run a test.

    4. Review the test results.


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.

  • Remember that QuickTest must be opened before you launch the Mercury Flight Reservation application. This allows QuickTest to establish internal hooks that will capture user actions from the application under test.


Part 1: Set-up the Test Environment

  • Open QuickTest Professional from the START menu. The ADD-IN MANAGER appears.

  • Deselect any add-ins that appear in the ADD-IN MANAGER. There are no add-ins required for creating test cases during these training exercises.

  • Click OK. QuickTest Professional launch windows open on your screen.

  • Note: If the QuickTest WELCOME window appears, deselect the option to


  • Open the Mercury Flight Reservation application. The login window appears.

  • In the AGENT NAME field type: "samir" In the PASSWORD field type: "mercury".

  • The Mercury Flight Reservation launch windows open on your screen.

  • Re-open QuickTest Professional then click FILE > NEW TEST from the QuickTest menubar.

  • Click RECORD. The RECORD AND RUN SETTINGS window opens

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



sw testing QuickTest Professional


  • Click OK to return to the main QuickTest window.


Part 2: Record the Test

  • Begin recording user actions by re-displaying the flight reservation screen. (You may need to click the Flight icon on your windows taskbar).

  • Notice that the word RECORDING flashes in red at the bottom right side of the screen as shown in

  • Record the user actions that will create a new flight reservation. Make up your own data or use the following information: date of travel 12/12/12, flying from Frankfurt to London.

  • Click the FLIGHTS button and accept the first flight on the schedule. Click OK.

  • Type your name in the NAME field and choose FIRST class.

  • Click INSERT ORDER. Watch to ensure that the message INSERT DONE...appears in the progress bar on the flight reservation screen.

  • Click , NEW ORDER button.

  • Note: Clicking the NEW ORDER button at this step ensures that the screen appears exactly as it did at the start of the test. This is referred to as resetting the end condition to match the initial condition of the test.

  • From the QuickTest menu, click STOP to end the test.

  • Click FILE > SAVE to store your test as <your initials>_CreateOrder for e.g. sam_CreateOrder.


Part 3: Run the Test

  • If the test created in Part 2: Record the Test is not already displayed on your screen, find and open it by clicking FILE > OPEN TEST from the QuickTest menu bar.

  • Click RUN. In the RUN RESULTS location tab, choose the option to save your test results to a

  • ž Temporary run results folder () option. Click OK to close the window.

  • It 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

  • Note: If the TEST RESULTS Window is not automatically displayed when the test run ends, click Automation - RESULTS from the menu bar.


Test Results Review

  • Click TEST > RESULTS to see a summary of your test run.


Test EXERCISE 3 (Write down the answer)

1. How many times did your test run?

2. Did your test succeed or fail?

3. Write the command to display all of the steps in the icon view of the test results.

Close the TEST RESULTS window. The main QuickTest window appears.

4. Click once on the AGENT NAME step in the KEYWORD VIEW. What field is highlighted in the ACTIVE SCREEN view?

5. Click once on the FLY TO: step in the KEYWORD VIEW. What happened in the ACTIVE SCREEN when you selected this step?


Pr.Pg border                                              Next Pg