Qtp Training Deepti 1 Of 4187

4,787 views

Published on

Published in: Technology
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
4,787
On SlideShare
0
From Embeds
0
Number of Embeds
38
Actions
Shares
0
Downloads
906
Comments
0
Likes
4
Embeds 0
No embeds

No notes for slide

Qtp Training Deepti 1 Of 4187

  1. 1. <ul><ul><ul><li>Automation Fundamental Concepts </li></ul></ul></ul><ul><ul><ul><li>& </li></ul></ul></ul><ul><ul><ul><li>QTP At A Glance - Day 1 </li></ul></ul></ul><ul><li>Prepared By : Kolhar IR (Shiva) </li></ul><ul><li>Created On : 27-09-2005 </li></ul>
  2. 2. Automation Fundamental Concepts <ul><li>What is Test Automation ? </li></ul><ul><ul><li>Software Test Automation is the process of automating the steps of manual test cases using an automation tool Or utility to shorten the testing life cycle with respect to time… </li></ul></ul><ul><ul><li>When application undergoes regression, some of the steps might be missed out or skipped which can be avoided in Automation… </li></ul></ul><ul><ul><li>Automation helps to avoid human errors and also expedite the testing process… </li></ul></ul><ul><ul><li>To implement the Test Automation detailed planning and effort is required </li></ul></ul>
  3. 3. Automation Fundamental Concepts <ul><ul><li>Automation saves time and effort which results in reduction of the Test life cycle… </li></ul></ul><ul><ul><li>Benefits of Automation </li></ul></ul><ul><ul><li>- Consistency of Test Execution </li></ul></ul><ul><ul><li>- Reducing cycle time of regression test cycles </li></ul></ul><ul><ul><li>- Data driven testing </li></ul></ul><ul><ul><li>- Repeatability </li></ul></ul><ul><ul><li>- Coverage </li></ul></ul><ul><ul><li>- Reliability </li></ul></ul><ul><ul><li>- Reusability of test wares </li></ul></ul>
  4. 4. Automation Fundamental Concepts <ul><li>Automation life cycle is a subset of the entire test life cycle… </li></ul><ul><li>Automation planning can be initiated in parallel to the test planning phase… </li></ul><ul><li>Factors to be considered in automation planning , </li></ul><ul><ul><li>Stability of AUT (Application under test) </li></ul></ul><ul><ul><li>No of regression cycles to be performed </li></ul></ul><ul><ul><li>Compatibility of App platform with testing tools </li></ul></ul><ul><ul><li>Cost benefit analysis (ROI) </li></ul></ul><ul><ul><li>Availability of skilled resources </li></ul></ul>
  5. 5. Regression Testing & Automation <ul><li>When Automation is applicable? </li></ul><ul><ul><li>Regression Testing Cycles are long and iterative. </li></ul></ul><ul><ul><li>If the application is planned to have multiple releases / builds </li></ul></ul><ul><ul><li>If it’s a long running application where in small enhancements / Bug Fixes keeps happening </li></ul></ul><ul><ul><li>Test Repeatability is required </li></ul></ul>
  6. 6. Introduction to QTP (QuickTest Professional) “The Mercury advanced keyword-driven testing solution” Technologies Supported Default Support 1. Standard Windows applications 2. Web objects / Applications 3. ActiveX controls 4. Visual Basic applications Additional QuickTest add-ins Support, 1. Java 2. Oracle 3. SAP Solutions, 4. .NET Windows 5. Web Forms, 6. Siebel, 7. PeopleSoft, 8. Web services, and terminal emulator applications . QTP At a Glance …..
  7. 7. Testing Process with QTP <ul><li>Quick Test Pro involves 3 main stages: </li></ul><ul><li>Creating Test scripts </li></ul><ul><li>Running Tests </li></ul><ul><li>Analyzing Test Results </li></ul>
  8. 8. Testing Process with QTP <ul><li>Creating Tests </li></ul><ul><li>Create a test script by recording a manual test scenario on the AUT (Application Under Test) using QTP. </li></ul><ul><li>Quick Test Pro graphically displays each step users perform in the form of a collapsible, icon based tree view in QTP’s Keyword View. </li></ul>
  9. 9. Testing Process with QTP <ul><li>Running Tests & Analyzing Test Results </li></ul><ul><li>Running Tests : </li></ul><ul><ul><li>Once the test scripts are recorded / created, next step is to execute them…While running (executing) the tests Quick Test Pro connects to the web site or AUT and performs each operation in the test as performed manually while recording / creating tests (test scripts)… </li></ul></ul><ul><li>Debugging Test : To identify and eliminate the defects in the test scripts. </li></ul><ul><li>Analyzing Test Results : </li></ul><ul><li>Once the test scripts are executed, test results and the summary can be viewed for result analysis. </li></ul>
  10. 10. <ul><li>What is Test Automation? </li></ul><ul><li>2. What is Testing Process in QTP ? </li></ul>Quick Quiz
  11. 12. Add-in Manager <ul><li>Default Add-ins </li></ul><ul><ul><li>ActiveX </li></ul></ul><ul><ul><li>Visual basic </li></ul></ul><ul><ul><li>Web </li></ul></ul><ul><li>Other Add-Ins </li></ul><ul><ul><li>Siebel </li></ul></ul><ul><ul><li>Java </li></ul></ul><ul><ul><li>SAP </li></ul></ul><ul><ul><li>Oracle </li></ul></ul><ul><ul><li>.Net and many more </li></ul></ul>
  12. 13. Add-in Manager Cont… <ul><li>QTP’s Add-in Manager facilitates the users to select the technology / environment from variety of environments suitable for the AUT (Application Under Test) </li></ul><ul><li>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. </li></ul><ul><li>It is critical for the users to know the development technologies / environment of AUT, and load right Add-Ins while invoking Quick Test Pro. </li></ul>
  13. 14. Quick Test Professional - Record & Run Modes <ul><li>Recording Modes </li></ul><ul><ul><li>Normal </li></ul></ul><ul><ul><li>Analog </li></ul></ul><ul><ul><li>Low level </li></ul></ul><ul><li>Run Modes </li></ul><ul><ul><li>Normal </li></ul></ul><ul><ul><li>Fast </li></ul></ul><ul><ul><li>Update </li></ul></ul>
  14. 15. Quick Test Professional - Options  General <ul><li>Best Practices for General Options: </li></ul><ul><ul><li>Deselect all check boxes except “Save data for integrating with performance testing …” and “Display Add-in Manager on startup” which is default setting. </li></ul></ul><ul><ul><li>Click on “Restore Layout” button to reset screens to the initial setting when QuickTest was first installed. </li></ul></ul>
  15. 16. Quick Test Professional - Options  Run
  16. 17. Quick Test Professional - Options  Run <ul><li>Best Practices for Options for Run Mode: </li></ul><ul><ul><li>Run Mode as Normal: </li></ul></ul><ul><ul><ul><li>This ensures that the execution arrow appears to help with trouble shooting the tests. </li></ul></ul></ul><ul><ul><ul><li>Synchronization becomes better for the AUT (Application Under Test) </li></ul></ul></ul><ul><ul><li>Test Results: </li></ul></ul><ul><ul><ul><li>Deselect the option “View Results when run session ends” </li></ul></ul></ul><ul><ul><li>Mercury Tool Integration: </li></ul></ul><ul><ul><ul><li>Select &quot;Allow other Mercury products to run tests and components“ </li></ul></ul></ul><ul><ul><li>Screen Capture: </li></ul></ul><ul><ul><ul><li>Save step screen capture to results &quot;On error and warnings&quot; </li></ul></ul></ul>
  17. 18. Record and Run Settings
  18. 19. Record and Run Settings <ul><li>Best Practices for Record & Run Settings, </li></ul><ul><ul><li>Set the options to configure QTP to &quot;Record and run test on any open Windows- based application“ </li></ul></ul><ul><ul><li>Set the option - This window will appear the first time you click on the Record button in the new test. </li></ul></ul><ul><ul><li>Manually recall this window by selecting Test  Record and Run settings </li></ul></ul>
  19. 20. <ul><li>What are the default Add-ins in Add-in manager </li></ul><ul><li>a. Active x, Web, Visual Basic. </li></ul><ul><li>b. .Net, SAP, Oracle. </li></ul><ul><li>c. Siebel. </li></ul>Quick Quiz
  20. 21. QTP - Main Window
  21. 22. QTP - Main Window
  22. 23. QTP - Main Window <ul><li>Test Pane: </li></ul><ul><ul><li>Test Pane contains two labs to view the tests, </li></ul></ul><ul><li>- Keyword View </li></ul><ul><li>- Expert View </li></ul><ul><ul><li>Keyword View: </li></ul></ul><ul><ul><ul><li>Quick Test Pro displays your test in the form of a collapsible, icon based tree… </li></ul></ul></ul><ul><ul><li>Expert View: </li></ul></ul><ul><ul><ul><li>Quick Test Pro displays the source code (VB Script) of the tests in this view. </li></ul></ul></ul>
  23. 24. QTP - Main Window
  24. 25. QTP - Main Window <ul><li>Data Table : </li></ul><ul><li>Data table assists in Parameterizing the tests… </li></ul><ul><li>Debug Viewer Pane : </li></ul><ul><li>It assists in debugging tests with the help of </li></ul><ul><li>Watch Expressions, Variables, and Command. </li></ul>
  25. 26. Quick Test Pro Commands <ul><li>Quick Test Pro Commands : </li></ul><ul><li>The Quick Test Pro commands can be chosen from the menu bar or from a Tool bar. </li></ul><ul><li>File Tool bar : </li></ul><ul><li>File tool bar contains buttons for managing the test. </li></ul>
  26. 27. Quick Test Pro Commands <ul><li>Test Tool bar : </li></ul><ul><li>Test tool bar contains buttons for the commands used when creating or maintaining the tests… </li></ul>
  27. 28. Quick Test Pro Commands <ul><li>Debug Tool Bar : </li></ul><ul><li>It contains buttons for commands used when debugging the steps in the tests… </li></ul>
  28. 29. Quick Test Pro Commands <ul><li>Action Tool Bar : </li></ul><ul><li> To view all actions in the test flow or to view the details of a selected action… </li></ul>
  29. 30. Thank You

×