Friday, April 4, 2014

Why Automation?

Automation Testing:
Automation Testing is not a replacement for manual testing it is just a continuation for a manual testing in order to provide speed and accuracy.
Test automation is the use of software to control the execution of tests, the comparison of actual outcomes to predicted outcomes, the setting up of test preconditions, and other test control and test reporting functions.
Irritants in Manual Testing:
  • Time consuming.
  • Simultaneous actions are almost impossible.
  • Repeating the task in a same manner is not so easy manually.
Automation Benefits:
  • Fast: Runs test significantly faster than human tester's
  • Reliable: Tests perform precisely the same operations each time they are run, thereby eliminating human error
  • Repeatable: You can test how the software reacts under repeated execution of the same operations.
  • Programmable: You can program sophisticated tests that bring out hidden information from the application.
  • Comprehensive: You can build a suite of tests that covers every feature in your application.
  • Reusable: You can reuse tests on different versions of an application, even if the user interface changes.
  • Maintainability: The effort needed to update the test automation suits for each new release.

Where to Use: 
  • Tests that need to run on every build.
  • Regression, Performance and Functional tests( Data driven tests)
  • Repetitive tasks that are boring or tend to cause human error
  • Relatively stable areas of the application over volatile ones must be automated.

    Where Not: 
        ✗ Usability Testing 
        ✗ One-time testing
        ✗ Ad-hoc testing( Automation will be too time consuming)
    Automation Testing Outcome:
    • Providing more coverage of regression testing
    • Providing a detailed test log
    • Improving productivity of human testing

    insert screenshot taken in a word document.using Vb script

    Set win = CreateObject("word.application")
    win.Documents.Open "D:\screenshots.doc"    ' open existing file
    win.Selection.InlineShapes.AddPicture ("D:\dd.bmp")    ' adding sample pictures

    win.Selection.EndKey ' inserting end key to avoid overlapping
    win.Selection.InsertBreak
    win.Selection.InlineShapes.AddPicture ("D:\dd.bmp")

    win.Documents.Save
    win.Documents.Close
    win.Quit
    Set win = nothing