Automation Testing- Win Runner

Testing Automation: Software testing can be very costly. Automation is a good way to cut down time and cost. Software testing tools and techniques usually suffer from a lack of generic applicability and scalability. The reason is straight-forward. In order to automate the process, we have to have some ways to generate oracles from the specification, and generate test cases to test the target software against the oracles to decide their correctness. Today we still don't have a full-scale system that has achieved this goal. In general, significant amount of human intervention is still needed in testing. The degree of automation remains at the automated test script level.There are Many automation Testiing Tool For Functional & Regression Testing,Performance Testing, Bug Tracking and Test Management Tool.
What are the Advantages of Automation in testing?
  • 1. Fast
  • 2. Reliable
  • 3. Repeatable
  • 4. Programmable
  • 5. Comprehensive
  • 6. Reusable
Win Runner: Win Runner is a Functional & Regression Testing Tool of Mercury.
  • Win Runner:
  • ØNeed For Automation
  • ØWinRunner Introduction
  • ØWinRunner Basic Session / Examples
  • ØWinRunner Advanced Session / Examples

Few Reasons

  • Running test manually is boring and frustrating
  • Eliminates human error
  • Write once, run as many times as needed
  • Provides increased testing coverage
  • Allows testers to focus on verifying new rather than existing functionality
  • Creates tests that can be maintained and reused throughout the application life cycle

WinRunner is functional testing tool

  • Specifically a regression test tool
  • Help in creating reusable and adaptable script
  • Used for automating testing process
  • Need to write scripts in TSL for the same
  • Help in detecting early defects before regression Testing
  • Specifically a regression test tool
  • Help in creating reusable and adaptable script
  • Used for automating testing process
  • Need to write scripts in TSL for the same
  • Help in detecting early defects before regression testing

Test Plan Documenting System

  • Test Plan Design
  • Test Case Design
  • Test Script Creation - Manual & Automated

Test Execution Management

  • Scenario Creation
  • Test Runs

Analysis of Results

  • Reports & Graphs

Defect Tracking System WinRunner Testing Process

  • ØCreate GUI map
  • ØCreate tests
  • ØDebug tests
  • ØRun tests
  • ØExamine results
  • ØReport defects

Testing Process of Win Runner in Detail WinRunner testing process involves six main stages .

  • Create GUI Map File : So that WinRunner can recognize the GUI objects in the application being tested
  • Create test scripts : by recording, programming, or a combination of both. While recording tests, insert checkpoints where you want to check the response of the application being tested.
  • Debug Test: run tests in Debug mode to make sure they run smoothly
  • Run Tests: run tests in Verify mode to test your application.
  • View Results: determines the success or failure of the tests.
  • Report Defects: If a test run fails due to a defect in the application being tested, you can report information about the defect directly from the Test Results window.

WinRunner Testing Modes Context Sensitive

  • Records the actions on the AUT in terms of GUI objects.
  • Ignores the physical location of the object on the screen

Analog

  • Records mouse clicks, keyboard input, and the exact x- and y-coordinates traveled by the mouse

Types of GUI Map files

GUI Map File per Test mode

  • Separate GUI Map File for each test

Global GUI Map File mode

  • Single GUI Map File for a group of tests

Different modes for running the tests

  • 1.Verify
  • 2.Debug
  • 3.Update

Checkpoints

  • ØGUI Checkpoint
  • ØBitmap Checkpoint
  • ØDatabase Checkpoint
  • ØSynchronization point

GUI Checkpoint

  • ØA GUI checkpoint examines the behavior of an object’s properties
  • ØDuring execution, the current state of the GUI objects is compared to the expected results

Bitmap Checkpoint

  • ØCompares captured bitmap images pixel by pixel
  • ØWhen running a test that includes bitmap checkpoints, make sure that the screen display settings are the same as when the test script was created. If the screen settings are different, WinRunner will report a bitmap mismatch .

Database Checkpoint

  • ØA query is defined on the database and the database checkpoint checks the values contained in the result set
  • ØResult set is a set of values retrieved from the results of the query
  • ØWays to define the query
  • (a) Microsoft query
  • (b) ODBC query
  • (c) Data junction

Synchronization point

  • ØWhen you run tests, your application may not always respond to input with the same speed
  • ØInsert a synchronization point into the test script at the exact point where the problem occurs
  • ØA synchronization point tells WinRunner to pause the test run in order to wait for a specified response in the application

Using Regular Expressions

  • ØEnables WR to identify objects with varying names or titles
  • ØCan be used in
  • An object’s physical descriptions in the GUI map
  • GUI Checkpoint
  • Text Checkpoint

Virtual Objects:

  • ØCan teach WinRunner to recognize any bitmap in a window as a GUI object
  • ØMake test scripts easier to read and understand

Creating Data-Driven Tests:

  • ØTo test how the AUT performs with multiple sets of data
  • ØCan be done using the..
  • •Data Driver Wizard
  • Add command manually in script

Advantage of Data-Driven Tests:

  • ØRun the same test with different data
  • ØTest the AUT for both, positive and negative results
  • ØExpandable
  • ØEasy to maintain

Manual Data-Driven Test

3 comments:

Unknown said...

Anyone Know about QTP?
Please send me if any online training or material for lerning QTP to my email address! nedunoori@gmail.com

Unknown said...

HI Manish,
Really your work is mavellous. I am taking the clarfications from your site.

One more request, do you know about QTP? Do you have any QTP free online training docs? Please forward to my email adress nedunooori@gmail.com

Your reply message is needed even yes or no.

Unknown said...

Manish,

This part of your all works is really very very good.....very much helpful for us.

gargi.