350 likes | 548 Views
HP QuickTest Professional 10.0 BASICS TRAINING. September 2010, Version 4.0. Charter. 1. What is Automation? 2. Why do you need Automation? 3. Is Automation a replacement for Manual Testing? 4. What are the different automation tools available?
E N D
HP QuickTest Professional 10.0 BASICS TRAINING September 2010, Version 4.0
Charter 1. What is Automation? 2. Why do you need Automation? 3. Is Automation a replacement for Manual Testing? 4. What are the different automation tools available? 5. Why we are concentrating only on QTP tool (MERCURY now HP) 6. About HP-QuickTest Professional & Tool Walk through 7. Automated Testing process 8. When do you think application is ready for automation? 9. What are the parameters we must consider during identifying an AUT? 10. Add in Manager 11. Tool architecture 12. Configure record and run settings & Recording and Play back 13. Object Spy 14. Object Identification 15. Object Repository
16. Object Repository Manager 17. Object Repository Merge Tool & Comparison Tool 18. Synchronization 19. Checkpoints 20. Parameterization 21. Regular Expressions 22. Recovery Scenarios 23. Quality Center connectivity 24. Actions 25. VB Script - Basics 26. What are types of Test cases which can be automated? 27. What are types of Test cases which cannot be automated? 28. Different Frame works – Over View
What is Automation ? • Automation is a technology that makes it possible to access software objects inside one application from other applications. • These objects can be created and manipulated using a scripting or programming language such as VBScript or VC++. • Automation enables you to control the functionality of an application programmatically.
Why do you need Automation? • Automation helps to avoid human errors and also expedite the testing process • When application undergoes regression, some of the steps might be missed out or skipped which can be avoided through Automation • Automated tests can be run at the same time on different machines, whereas the manual tests would have to be run sequentially. • Automation saves time and effort which results in reduction of the Test life cycle • To implement the Test Automation detailed planning and effort is required
Benefits of Automation • Consistency of Test Execution • Reducing cycle time of regression test cycles • Data driven testing • Repeatability • Coverage • Reliability • Reusability of test wares
QTP Window Cont… Test Pane: Test Pane contains two labs to view the tests, • Keyword View • Expert View Keyword View: • Quick Test Pro displays your test in the form of a collapsible, icon based tree… Expert View: • Quick Test Pro displays the source code (VB Script) of the tests in this view.
Add in Manager • Default Add-ins • ActiveX • Visual basic • Web • Other Add-Ins • Siebel • Web Services • Java • SAP • Oracle • .Net • PowerBuilder and many more
Add in Manager Cont… • QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test) • Once an add-in is loaded, users can record that application in its supported environment and thus QTP recognizes the objects specific to the application under test (AUT) as loaded through Add-in Manager. • It is critical for the users to know the development technologies / environment of AUT, and load right Add-Ins while invoking Quick Test Pro.
Recording and Play Back Recording Modes Normal Analog Low level Run Modes Normal Fast Best Practices for Record & Run Settings • Set the options to configure QTP to "Record and run test on any open Windows- based application“ • Set the option - This window will appear the first time you click on the Record button in the new test. • Manually recall this window by selecting Automation Record and Run settings
Object Spy… Run-Time NATIVE Object Run-Time QTP (Test) Object
Object Identification • QTP’s has default set of properties that it always learn to identify the objects • Mandatory Properties • Assistive Properties • Ordinal Identifier • Usually, only few properties are needed to uniquely identify an object. • Smart Identification
Parameterization • To check how script performs the same operations with multiple sets of data • Test and Action Parameters • Data Table (Global & Action Specific)
Synchronization • Synchronization point enables the anticipated time problems between the application and QTP • Progress bas reaches 100% completion • Status message appears • Button becomes enabled • Window opens and is ready fro data entry • Pop up message appears in response to an operation
How to Synchronize tests Using tool menu options Wait & Exist Wait property Programmatically
Regular Expressions • Regular expressions enable Quick test to identify Objects and test strings which are changing dynamically • A regular expression is a string that specifies a complex search phrase. • By using Special Characters you define the conditions of search • Can be used in Checkpoint Properties window and also in Object Identification
Actions • Actions help divide your test into logical units, such as the main sections of a Web site, or specific activities that you perform in your application. • An action consists of its own test script, including all of the steps in that action, and any objects in its local object repository • A test comprises calls to actions Types of Actions • Reusable action • Non-reusable action • External action
Recovery Scenario • To Instruct Quick test to recover from unexpected events and errors that occur in the testing environment during run time. • We can create the recovery scenario using recovery scenario wizard • The Recovery Scenario Wizard leads you, step-by-step, through the process of creating a recovery scenario, steps: • Defining the trigger event that interrupts the run session • Specifying the recovery operations required to continue • Choosing a post-recovery test run operation • Specifying a name and description for the recovery scenario • (for tests) Specifying whether to associate the recovery scenario to the current test and/or to all new tests
Frame Works • Data Driven • Modular • Keyword Driven • Hybrid
Thank you *kprasad@qwest.com Learning never ends. Every day is a learning day…