Home > WinRunner Introduction > Automation Testing- Win Runner

Automation Testing- Win Runner

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?
  • Fast
  • Reliable
  • Repeatable
  • Programmable
  • Comprehensive
  • 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

  • Verify
  • Debug
  • 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
Advertisements
  1. May 9, 2008 at 4:13 pm

    Naanya is your partner in resolving Automation testing and Performance Testing hurdles of your software applications. Our experts in the software testing enables Naanya in formulating vital business decisions related to Test Automation and Performance.

    Automation testing tools | Software testing tools | Quality assurance testing

  2. ABHA
    July 7, 2008 at 3:45 pm

    HOW TO DO PERFORMANCE TESTING OF APLICATION BY WINRUNNER??

  3. ABHA
    July 7, 2008 at 3:46 pm

    how to test the text in the window in winrunner if complete window of the application is not visible on the screen?

  4. PRADEEP
    October 10, 2008 at 8:11 pm

    I AM NEW TO TESTING FIELD… I WANT TO LEARN AUTOMATION TESTING.. SO PLS SEND ME D LINKS DEALS WITH STEP BY STEP TUTORIALS FOR DOING TESTING IN WIN RUNNER.. PLS

  5. February 19, 2009 at 10:04 pm

    good lesson

  6. October 6, 2014 at 7:42 am

    Thanks a bunch for sharing this with all people you
    really realize what you are talking approximately!
    Bookmarked. Kindly additionally discuss with my site =).

    We will have a link exchange arrangement between us

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: