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

Understanding the Test Object Model tutorials

  • QuickTest tests your dynamically changing application by learning and identifying test objects and their expected properties and values. During recording, QuickTest analyzes each object in your application much the same way that a person would look at a photograph and remember its details.

  • For example, suppose as part of an experiment, from following photograph, observe it for a few seconds during which someone will point out one person in the picture. You are expected to identify that person or Item again in identical or similar photograph one week from today.

  • Before we shown you the photograph, you begins preparing for the test by thinking about which characteristics you wants to learn about the person or item that the tester indicates. Obviously, you will automatically note whether it is a person, object, animal, or plant. Then, if it is a person, he will try to commit to memory the gender, skin color, dress and age. If it is an animal, he will try to remember the type of animal, its color, and so forth.

 

Description:Test Object Model

 

  • The tester shows the photo to you and points out one of three children playing chess. You will note that it is a Asian girl about 12 years old. In looking at the rest of the picture, you will realize that one of the other girls in the picture could also fit that description. In addition to learning his planned list of characteristics, you also note that the girl you are supposed to identify has long, black hair with 2 ponies & spectacle. Since you still have a few moments left to look at the picture, you attempts to notice other, more subtle differences between the girl you are supposed to remember and the others in the picture—just in case.

  • If the two similar girls in the picture appeared to be identical, you might also take note of other feature of the girl, such as the girl’s position on the table, dress etc. That would enable you to identify the girl if you are shown another picture in which the girls are sitting in the same order.

 

Description: sw testing Test Object Model

  • QuickTest uses a very similar method when it learns objects during the recording process. First, it "looks" at the object on which you are recording and stores it as a test object, determining in which test object class it fits. As you immediately checked whether the item was a person, animal, plant, or thing. QuickTest might classify the test object as a standard Windows dialog box (Dialog), a Web button (WebButton), or a Visual Basic scroll bar object (VbScrollBar).

  • Then, for each test object class, QuickTest has a list of mandatory properties that it always learns; similar to the list of characteristics that you had planned to learn before seeing the picture. When you record on an object, QuickTest always learns these default property values, and then "looks" at the rest of the objects on the page, dialog box, or other parent object to check whether this description is enough to uniquely identify the object. QuickTest adds a special identifier, such as the object’s location on the page or in the source code, to create a unique description, just as you would have remembered the child’s position on the picnic blanket if two of the children in the picture had been identical twins.

 

How QuickTest Identifies Objects during the Run Session

  • QuickTest also uses a very human-like technique for identifying objects during the run session. Suppose as a continuation to the experiment, you are now asked to identify the same "girl" initially identified but in a new, yet similar environment.

 

Description: sw testing Test Object Model

 

  • From first photograph, you will searches for the same Asian girl, about 12 years old, with long, black hair, 2 ponies, blue dress and spectacle. In the second photograph, the children are playing in tournament hall, but you will still be able to identify the girl using the same criteria.

  • Similarly, during a run session, QuickTest searches for a run-time object that exactly matches the description of the test object it learned while recording. It expects to find a perfect match for both the mandatory and any assistive properties it used to create a unique description while recording. As long as the object in the application does not change significantly, the description learned during recording is almost always sufficient for QuickTest to uniquely identify the object.

  • Consider the final phase of experiment. In this phase, you are shown another photograph at other location. You will first searches for a girl with the same characteristics in the other pictures (the test object),

 

Description: sw testing test object model

 

  • How would you do this? First, you consider which features you must find. You know that you are still looking for a Asian female with ponies and spectacle. If you were not able to find anyone that matched this description, you would assume she is not in the photograph.

  • Once you limit the possibility to the five Asian females in this new photograph, you thinks about the other characteristics to identify the girl—her age, hair color, spectacle etc. You can then make out with some time pass some characteristics may change. Finally you will find the girl (the Run Object).

  • QuickTest uses a very similar process of elimination with its Smart Identification mechanism to identify an object, even when the recorded description is no longer accurate. Even if the values of your test object properties change, QuickTest maintains your test’s reusability by identifying the object using Smart Identification (the Run Object).

 

Pr.Pg border                                              Next Pg