Qtp testing


Published on

Published in: Technology, Education
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Qtp testing

  1. 1. What is Test Automation? <ul><li>It emulates user actions on the Application </li></ul><ul><ul><li>Clicking on buttons, Selecting Menus </li></ul></ul><ul><ul><li>Navigating Screens, Changing Views </li></ul></ul><ul><ul><li>Adding Data, Extracting Data </li></ul></ul><ul><li>It makes sure those tasks are repeated in the same order, again and again. </li></ul><ul><ul><li>It provides speed and reliability to tedious and repetitive tasks. </li></ul></ul>For more QTP Scripts, www.ramupalanki.com
  2. 2. What Will Test Automation Do? <ul><li>It will avoid errors Humans will make </li></ul><ul><ul><li>Typographical Errors </li></ul></ul><ul><ul><li>Skipped/Missed Tests </li></ul></ul><ul><ul><li>It will record the results of the test accurately </li></ul></ul><ul><li>It will establish a set of Reproducible Steps </li></ul><ul><li>Be useful for Compatibility Testing </li></ul><ul><ul><li>Using the same “build” in various environments To ensure consistent system response </li></ul></ul>For more QTP Scripts, www.ramupalanki.com
  3. 3. What Will Test Automation Do? <ul><li>Be useful for regression testing </li></ul><ul><ul><li>Ensuring previously fixed defects do not reappear in later builds </li></ul></ul><ul><li>Help ensure the stability of the application </li></ul><ul><ul><li>By placing it under various loads </li></ul></ul><ul><ul><li>Checking for undocumented changes </li></ul></ul><ul><li>Will save time and reduce effort during the test cycle </li></ul>For more QTP Scripts, www.ramupalanki.com
  4. 4. Test Automation Will Not <ul><li>Eliminate or Reduce Manual testers </li></ul><ul><ul><li>Automation can not test for aesthetics </li></ul></ul><ul><ul><li>Can not design test cases </li></ul></ul><ul><ul><li>Validate the results </li></ul></ul><ul><ul><li>Replace the business knowledge </li></ul></ul><ul><li>Be a substitute for: </li></ul><ul><ul><li>Walkthroughs, inspections, adherence to coding standards, Project Management and etc. </li></ul></ul>For more QTP Scripts, www.ramupalanki.com
  5. 5. Test Automation Will Not <ul><li>Find More “bugs” </li></ul><ul><ul><li>Test Cases find the bugs </li></ul></ul><ul><ul><li>Automated Test Scripts are only as good as the test case they replicate </li></ul></ul><ul><ul><li>The process of automation adds nothing to the test case </li></ul></ul>For more QTP Scripts, www.ramupalanki.com
  6. 6. Keys to Successful Automation <ul><li>What to automate must be clearly defined </li></ul><ul><ul><li>What scripts to execute and when in the test cycle must be defined </li></ul></ul><ul><ul><li>The goals of the script must be clear </li></ul></ul><ul><li>The automating of an existing manual script is no different than a programmer using a coding language to write programs for any other manual process must be recognized </li></ul>For more QTP Scripts, www.ramupalanki.com
  7. 7. Keys to Successful Automation <ul><li>Therefore test automation needs to be treated like any other development project </li></ul><ul><ul><li>Define what to automate </li></ul></ul><ul><ul><li>Designing test automation </li></ul></ul><ul><ul><li>Writing the scripts </li></ul></ul><ul><ul><li>Testing the scripts </li></ul></ul><ul><ul><li>Maintaining the scripts </li></ul></ul><ul><ul><li>Using configuration management </li></ul></ul>For more QTP Scripts, www.ramupalanki.com
  8. 8. Keys to Successful Automation <ul><li>When strategizing for test automation, plan to achieve small successes and grow </li></ul><ul><li>Understanding testing tools are dependent upon consistency in the test environment </li></ul><ul><li>Build reusable code </li></ul><ul><ul><li>Write a function once that many scripts can use </li></ul></ul><ul><ul><li>Don’t depend on Capture Play back </li></ul></ul><ul><ul><ul><li>Creates a series of inflexible scripts dedicated to 1 specific task </li></ul></ul></ul>For more QTP Scripts, www.ramupalanki.com
  9. 9. Useful Test Automation Features <ul><li>Suite can execute Tests individually, or by groups </li></ul><ul><ul><li>Run either a single test or batch a series of test together </li></ul></ul><ul><li>Suite can execute unattended </li></ul><ul><li>Can be restarted from point of interruption </li></ul><ul><li>Can be paused, single stepped or resumed </li></ul><ul><li>Can be executed remotely </li></ul>For more QTP Scripts, www.ramupalanki.com
  10. 10. Useful Test Automation Features <ul><li>Dependencies between tests are specified </li></ul><ul><li>Tests cover specific functionality without covering more than necessary </li></ul><ul><ul><li>Narrowly defined tests help to focus on specific failures </li></ul></ul><ul><li>Tests can be executed on new version of product without major modifications </li></ul><ul><li>Test programs are reviewable </li></ul>For more QTP Scripts, www.ramupalanki.com
  11. 11. Test Cases to be Automated <ul><li>Tests that need to be run for every build </li></ul><ul><li>Test that use multiple data values </li></ul><ul><li>Tests that need to be executed with different browsers </li></ul><ul><li>Static Pages </li></ul><ul><li>Critical Pages </li></ul>For more QTP Scripts, www.ramupalanki.com
  12. 12. Test Cases not to be Automated <ul><li>One Time Testing </li></ul><ul><li>AD HOC Testing </li></ul><ul><li>ASAP Testing </li></ul><ul><li>Testing without predictable Results </li></ul>For more QTP Scripts, www.ramupalanki.com
  13. 13. Steps in Automated Testing <ul><li>Plan the Automated Test </li></ul><ul><li>Record the user Actions on Application </li></ul><ul><li>Running the Script </li></ul><ul><li>Analyzing the test Results </li></ul><ul><li>Reporting Defects </li></ul>For more QTP Scripts, www.ramupalanki.com
  14. 14. QTP 8.0 <ul><li>QTP is an advanced version of win-runner tool. </li></ul><ul><li>Is an powerful functional testing tool. </li></ul><ul><li>QTP allows you to test on standard Web objects, Activex controls and visual basic controls. </li></ul><ul><li>Supports Window and Web based Application. </li></ul>For more QTP Scripts, www.ramupalanki.com
  15. 15. QTP Basics <ul><li>Analog Recording </li></ul><ul><li>Low - Level Recording </li></ul><ul><li>Short Keys </li></ul><ul><li>Record and Run Settings </li></ul><ul><li>Web and Windows based Recording </li></ul>For more QTP Scripts, www.ramupalanki.com
  16. 16. QTP Test results <ul><li>Analyze the test in Key – word view </li></ul><ul><li>Analyze the test in Expert view </li></ul><ul><li>Analyze the Test Tree </li></ul><ul><li>Analyze the Test Results </li></ul><ul><li>Active Screen </li></ul><ul><li>Test Settings </li></ul>For more QTP Scripts, www.ramupalanki.com