Está en la página 1de 4

WinRunner Final Exam.

Name: Aradhana Das

Date: 11/27/00

(Print you name)

1.

What is Software Testing? What are the objectives of Software Testing?


What is Software Testing?
Testing involves operation of a system or application under controlled conditions
and evaluating the results (eg, 'if the user is in interface A of the application while
using hardware B, and does C, then D should happen'). The controlled conditions
should include both normal and abnormal conditions. Testing should intentionally
attempt to make things go wrong to determine if things happen when they
shouldn't or things don't happen when they should. It is oriented to 'detection'.
What are the objectives of Software Testing
Software QA involves the entire software development PROCESS - monitoring
and improving the process, making sure that any agreed-upon standards and
procedures are followed, and ensuring that problems are found and dealt with. It is
oriented to 'prevention'.

2.

What are the benefits of automated testing? Write down few scenarios where
automated testing is required?
What are the benefits of automated testing?
1. Saving the Time
2. Saving the Money
3. Quick results for Review/Decision
4. Improves Application Functionality
5. Provides script reuse
6. Supports Testing of Multiple Environments
Write down few scenarios where automated testing is required?
Possibly. For small projects, the time needed to learn and implement them may not
be worth it.
For
1. Larger projects (size)
2. On-going long-term projects
3. Complex projects on multi platform
they can be valuable.

3.

4.

What are the various recording modes available in WinRunner? Explain the
Difference?
1. Analog: function is mouse clicks, key board input and co-ordination of
mouse travel
2. Context sensitive: Performs specific task on GUI objects. Such as clicking
a button selecting an item, editing a text box etc
3. Standard: It performs general purpose programming tasks such as sending
message to a report or performing calculations.
4. Customization: It allows user to adopt WinRunner to the testing
environment.
How does WinRunner uniquely identify GUI objects in AUT?
By creating a GUI map WinRunner uniquely identify GUI objects in AUT.
WinRunner uses a logical name to identify an object. This short name is connected
to the objectss longer physical description. Win Runner uses this detailed
description to ensure that each GUI object has its own unique identification.

5.

What visual clue indicates that a GUI map is changed but not saved?

6.

When new version of AUT is released and has changes in the GUI, what needs to
be changed in the GUI map file?
The objects physical descriptions in the GUI map need to be updated.

7.

What is Synchronization? Where would you insert synchronization in the script?


Write down the various Synchronization options available in WinRunner?
What is Synchronization?
Matching the process time (or Running Time) between AUT and WnRunner is
called synchronization.
While recording by WinRunner the time required for AUT to complete from one
process then go to another window or object is not recorded. So while playback or
regression testing the time required to complete the same process and the time
between the two command lines of the WinRunner script does not match. So the
next window or object is not available for the script, it will show error object not
found or not enabled. To match the time required by the AUT from one process to
next step and the time required by WinRunners between two command lines
synchronization is needed.

8.

Write down the various Synchronization options available in WinRunner?


1. Wait Object/window
2. Wait for an object State/Property value
B. Area
Where would you insert synchronization in the script?
In the test script after the import command and before the rotate command.
How many types of checkpoints can be inserted in WinRunner? Explain each of
them with Example.

Checkpoints are used to compare the behavior of Baseline Application


objects/Bitmap/Text and the AUT objects/Bitmap/Text
1. GUI Checkpoints: Button is enabled, selection of an Item (radio Button),set
window etc
2. Bitmap Checkpoints: Area of text, bitmaps or graphics
3. Text Checkpoints: Text in GUI objects
9.

What is Data Driven test? Explain the steps involved.


It is repeating of the same type of testing with the same part of the AUT, but every
time it uses different type of data combination from outside source of data table to
complete the testing.
Explain the steps involved.
1. Setup AUT open, WinRunner open.
2. Pinpoint the start and end conditions of AUT
3. Create a baseline test by inserting statements, record the user actions to
insert a new order. Then stop recording.
4. Parametrize all fields
5. In the TSL statement replace the value.
6. Add data into the data table.
7. Close data table and save the test

10.

If you want to record the mouse movements from one position to another position
Which recording mode you will be using?
Analog Recording is useful for mouse movements.

11.

What is Batch testing? How to turn on the Batch mode?


The main test that calls other tests is called batch testing.
In the WinRunner tool bar Settings -> Options ->select tab RUN-> select check
box Run in Batch mode-> OK

12.

How would you send user messages to the test result?


The tl_step function divides test scripts into sections and determines whether each
section passes or fails. When the test run is completed, you view the test results in
the Report form. The report displays a result (pass/fail) for each step you defined.

13.

What is the better way to stop/pause Analog recording and why?


Ctl F3. To insert the GUI check points, to learn about the objects, to insert the
script, to insert the wait timer

14.

What is Complied module? Where it is used?


Compiled module is a test tree consisting of a main test that calls other tests. It
used to run a batch of tests.

15.

Plan an automated test script to verify that the Total Amount equals to the tickets
Price multiplied by the number of tickets ordered in Flight 1A application.
(Insert a new order and while insert do this verification).
Specifications :
1. Write down the manual steps for performing the check in Word Document.
2. Create a script in WinRunner with Test case ID Verify_TotalAmt.
3. Add comment statements at the beginning of the test and whenever appropriate
to make the script more readable.
4. Load your GUI map file from your script only.
5. Invoke Flight 1A Application from test script.
6. Send Messages to the result files for verification pass and fail.
Note: Attach your GUI map and all related files.

Total Price Verify Test


Test Name
Test Description:
Initial Condition
Step
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.

Verify_TotalAmount
Insert Order Visual Basic Flight 1A
Flight Reservation Window is open

Description
Open AUT Visual Basic Flight 1A
Open WinRunner
Make the GUI Map file
Start Recording
Start the steps to insert a order then stop recording
Insert comments in the script for adding the functions to Verify the Total
price.
Use object_get _info to get the information about price, # of tickets and
Total price.
Insert script with if and else conditional loop.
Use tl_step function to get the test results displayed
Save the script and GUI map files
Run the test from top and check the results

También podría gustarte