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. Intro.to 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 5 Recording a Test tutorials

  • In this section, you will record the process of making a reservation for a flight from New York to San Francisco on the Mercury Tours Web site.

  • Start QuickTest and open a new test. If QuickTest is not currently open, choose Start > Programs > QuickTest Professional > QuickTest Professional.

  • In the Add-in Manager, confirm that the Web Add-in is selected, and clear all other add-ins. Click OK to close the Add-in Manager and open QuickTest.

  • Note: While QuickTest loads your selected add-ins, the QuickTest splash screen is displayed. This may take a few seconds.

  • If the Welcome window opens, click Blank Test. Otherwise, choose File > New > Test, or click the sw testing New button down arrow and choose Test.

  • Note: If another test is already open, clicking the New toolbar button opens a new test.

  • A blank test opens.

  • If QuickTest is already open, check which add-ins are loaded by selecting Help > About QuickTest Professional. If the Web Add-in is not loaded, you must exit and restart QuickTest. When the Add-in Manager opens, select the Web Add-in, and clear all other add-ins.

  • Note: If the Add-in Manager does not open when starting QuickTest, choose Tools > Options. In the General tab, select Display Add-in Manager on startup. When you exit and restart QuickTest, the Add-in Manager opens.

  • Start recording on the Mercury Tours Web site. Choose Automation > Record or click the sw testing record button Record button. The Record and Run Settings dialog box opens.

  • In the Web tab, select Open the following address when a record or run session begins.

  • Confirm that the URL in the first box is http://newtours.demoaut.com and in second box, choose a browser on which to run your test session. Microsoft Internet Explorer is browser used in this tutorial.

  • Confirm that you checked following 2 check box.

Do not record and run on browsers that are already open

Close the browser when the test closes

sw testing record and run settings

  • In the Windows Applications tab, confirm that Record and run only on is selected, and make sure that all three check boxes are cleared.

sw testing record and run settings

 

  • These settings prevent you from inadvertently recording operations performed on various Windows applications (such as e-mail) during a recording session.

  • Click OK.

  • QuickTest begins recording, and your browser opens to the Mercury Tours Web site. HP Mercury Tours Web site.

  • In the User Name and Password boxes, type the name and password you registered with Mercury Tours. Click Sign-In

  • The Flight Finder page opens. Enter flight details.

Change the following selections:

Departing From: New York

On: December 29

Arriving In: San Francisco

Returning: December 31

Service Class: Business class

  • Click CONTINUE to accept the other default selections. The Select Flight page opens.

  • Notes: When selecting the date, you must click the drop-down list, scroll to any new entry, and select it. This is because QuickTest only records a step if the value in the list changes. The tutorial will not work correctly if you accept the currently displayed month or day.

  • When entering dates while recording this test, Do not click the View Calendar button, which opens a Java-based calendar. Your test will not record the date selected using this calendar because the QuickTest Java Add-in is not loaded for this tutorial.

  • To check which add-ins are loaded, choose Help > About QuickTest Professional. To change the available add-ins for your tests, you must close and reopen QuickTest Professional.

  • Select a flight.

  • Click CONTINUE to accept the default flight selections. The Book a Flight page opens.

  • Enter required passenger and purchase information.

  • Enter the required information (fields with red text labels)

  • In the Passengers and Credit Card sections. (DO NOT ENTER ORIGINAL DETAIL only enter fictitious information.)

  • In the Billing Address section, select Ticketless Travel.

  • At the bottom of the page, click SECURE PURCHASE. The Flight Confirmation page opens.

  • Review and complete your booking.

  • Click BACK TO HOME. The Mercury Tours home page opens.

 

Stop recording.

  • In QuickTest, click sw testing stop button Stop on the Testing toolbar to stop the recording process.

  • You have now reserved an imaginary business class ticket from New York to San Francisco. QuickTest recorded your Web browser operations from the time you clicked the Record button until you clicked the Stop button.

 

Save your test.

  • Choose File > Save or click the Save button. The Save dialog box opens to the Tests folder.

  • Select file name with <your initial>_Recording in the File name field.

  • Confirm that Save Active Screen files is selected.

  • Click Save.

  • The test named your initial_Recording and path are displayed in the title bar of the main QuickTest window.

 

Pr.Pg border                                              Next Pg