Stqasneha
Stqasneha
PRN :- 2022016400069800
BATCH 2024 - 2025
------------------
SUBJECT INDEX:-
2. Lab Exercises
1. Introduction to winrunner.
2. Recording test in analog and context sensitive
mode
3. Synchronizing test
4. Checking GUI Objects
5. Checking Bitmap Objects
6. Test with TSL
7. Creating data driven test
8. Manual Testing
to be implemented.
6. Strictly to be implemented observe the instructions given by the
teacher/Lab Instructor
1. Submission related to whatever lab work has been completed should be done during
the next lab session. The immediate arrangements for printouts related to submission on
the day of practical assignments.
2. Students should be taught for taking the printouts under the observation of lab
teacher
Pre-lab (Introduction to Win runner)
Questions:
select.
The two GUI map modes are described in detail in subsequent lessons.
To start WinRunner:
Choose Programs > WinRunner > WinRunner on the Start menu.
The first time you start WinRunner, the Welcome to WinRunner window
opens. From the welcome window you can create a new test, open an existing
test, or view an overview of WinRunner in your default browser.
The first time you select one of these options, the WinRunner main screen opens with
the “What’s New in WinRunner” section of the help file on top. If you do not want the
welcome window to appear the next time you start WinRunner, clear the Show on
startup check box. Each test you create or run is displayed by WinRunner in a test
window. You can open many tests at one time.
The Standard toolbar provides easy access to frequently performed
tasks,
The User toolbar displays the tools you frequently use to create test
scripts.
By default, the User toolbar is hidden.
To display the User toolbar choose Window > User Toolbar. When you
create tests, you can minimize the WinRunner window and work
exclusively
from the toolbar.
The User toolbar is customizable. You choose to add or remove buttons
using the Settings > Customize User Toolbar menu option. When you
re-open WinRunner, the User toolbar appears as it was when you last
closed it.
Experiment No. :2
Title: Recording test in analog and context sensitive mode Objective: Student should
be able to Describes Context Sensitive and Analog record modes Record a test
script Read the test script Run the recorded test and analyze the results Theory:
Choosing a Record Mode By recording, you can quickly create automated test scripts.
You work with your application
as usual, clicking objects with the mouse and entering keyboard input.
WinRunner records your operations and generates statements in TSL, Mercury
Interactive’s
Test Script Language. These statements appear as a script in a WinRunner test
window.
Before you begin recording a test, you should plan the main stages of the test and
select the
appropriate record mode. Two record modes are available: Context Sensitive and
Analog.
Context Sensitive
Context Sensitive mode records your operations in terms of the GUI objects in your application.
WinRunner identifies each object you click (such as a window, menu, list, or button), and the
type of operation you perform (such as press, enable, move, or select).
For example, if you record a mouse click on the OK button in the Flight Reservation Login
window, WinRunner records the following TSL statement in your test script:
button_press ("OK");
When you run the script, WinRunner reads the command, looks for the OK
button, and presses it.
When choosing a record mode, consider the following points
Recording a Context Sensitive Test:- In this exercise you will create a script that tests
the process of opening an order in the Flight Reservation application. You will create
the script by recording in Context Sensitive mode. 1 Start WinRunner. 2 Open a new
test. 3 Start the Flight Reservation application and log in. 4 Start recording in Context
Sensitive mode. 5 Open order #3. 6 Stop recording.
7 Save the test.
Recording in Analog Mode:- In this exercise you will test the process of sending a fax.
You will start recording in Context Sensitive mode, switch to Analog mode in order to
add a signature to the fax, and then switch back to Context Sensitive mode 1 Open the
Fax Order form and fill in a fax number. 2 Select the Send Signature with Order check
box. 3 Sign the fax again in Analog mode. 4 Stop Recording. 5 Save the test. Running
the Test You are now ready to run your recorded test script and to analyze the test
results. WinRunner provides three modes for running tests. You select a mode from the
toolbar. Use Verify mode when running a test to check the behavior of your
application, and when you want to save the test results. Use Debug mode when you
want to check that the test script runs smoothly without errors in syntax. See Lesson 7
for more information. Use Update mode when you want to create new expected
results for a GUI checkpoint or bitmap checkpoint. See Lessons 5 and 6 for more
information To run the test: 1 Check that WinRunner and the main window of the
Flight Reservation application are open on your desktop. 2 Make sure that the saved
test window is active in WinRunner. 3 Make sure the main window of the Flight
Reservation application is active. 4 Make sure that Verify mode is selected in the
toolbar. 5 Choose Run from Top. Choose Run > Run from Top or click the Run from
Top button. The Run Test dialog box opens.
Title: Checking GUI Objects. Objective: Student should be able to Explain how to check
the behavior of GUI objects Create a test that checks GUI objects Run the test on
different versions of an application and examine the results How Do You Check GUI
Objects? When working with an application, you can determine whether it is functioning
properly according to the behavior of its GUI objects. If a GUI object does not respond to
input as expected, a defect probably exists somewhere in the application’s code. You
check GUI objects by creating GUI checkpoints. A GUI checkpoint examines the behavior
of an object’s roperties. For example, you can check: the content of a field whether a
radio button is on or off whether a pushbutton is enabled or disable
Adding GUI Checkpoints to a Test Script
1 Start WinRunner and open a new test.
2 Start the Flight Reservation application and log in.
3 Start recording in Context Sensitive mode.
4 Open the Open Order dialog box.
5 Create a GUI checkpoint for the Order No. check box.
6 Enter “4” as the Order No.
7 Create another GUI checkpoint for the Order No. check box.
8 Create a GUI checkpoint for the Customer Name check box.
9 Click OK in the Open Order dialog box to open the order.
10 Stop recording.
11 Save the test.
Conclusion WinRunner Results - H:\Program Files\Mercury
Interactive\WinRunner\tmp\noname15
==============================================
====================== ======= ========= Expected
results folder: H:\Program Files\Mercury Interactive\WinRunner\tmp\noname15\exp Test
Results Name: H:\Program Files\Mercury Interactive\WinRunner\tmp\noname15\res2
Operator Name: Date: Tue Mar 17 12:06:04 2015 Summary: ---------------- Test Result: OK
Total number of bitmap checks: 0 Total number of GUI checks: 3 Total Run Time:
00:00:02 Detailed Results Description Line Event Result Details Time ----------------------------
-------------------------------------------------- 3 start run run noname15 00:00:00 12 start GUI
checkpoint--- gui1 00:00:01 12 end GUI checkpointOK gui1 00:00:01 23 start GUI
checkpoint--- gui2 00:00:02 23 end GUI checkpointOK gui2 00:00:02 24 start GUI
checkpoint--- gui3 00:00:02 24 end GUI checkpointOK gui3 00:00:02 25 stop run pass
noname15 00:00:02
Experiment No.5
Title: . Checking Bitmap Objects
Objective: Student should be able to
Explains how to check bitmap images ina application Create a test that
checks bitmaps Run the test in order to compare bitmaps in different
versions of an application
Analyze the
results
Theory:
Title: Creating data driven test Objective: Student should be able to Use the DataDriver Wizard
to create a data-driven test Use regular expressions for GUI object names that vary with each
iteration of a test Run a test with several iterations and analyze the results.
Theory:
Once you have successfully debugged and run your test, you may want to see how the same test
performs with multiple sets of data. To do this, you convert your test to a data-driven test and
create a corresponding data table with the sets of data you want to test.Converting your test to a
data-driven test involves the following steps:
Adding statements to your script that open and close the data table.
Adding statements and functions to your test so that it will read from the data table and run in
a loop while it applies each set of data.
Replacing fixed values in recorded statements and checkpoint statements with parameters,
known as parameterizing the test.You can convert your test to a data-driven test using the
DataDriver Wizard or you can modify your scriptmanually. When you run your data-driven test,
WinRunner runs the parameterized part(s) of the test one time (called an iteration) for each set
of data in the data table, and then displays the results for all of the iterations in a single Test
Results window.
In Lesson 7 you created a test that opened a specific flight order and read the number of tickets,
price per ticket, and total price from a fax order dialog box in order to check that the total price
was correct. In this lesson you will create a test that performs the same check on several flight
orders in order to check that your application computes the correct price for various quantities
and prices of tickets.
1 Create a new test from the test experiment 6.
2 Run the DataDriver Wizard.
3 Create a data table for the test.
4 Assign a table variable name.
5 Select global parameterization options.
6 Select the data to parameterize.
7 Open the data table.
8 Add data to the table.
9 Save and close the table.
10Save the test.
11Locate the Fax Order window in the flight1a.gui GUI map file.
12 Modify the window label with a regular expression.
13 Close the Modify dialog box.
14 Modify the tl_step statements.
Locate the first tl_step statement in your script. Delete the words “total is
correct.” and replace them with, “Correct. "tickets" tickets at $"price" cost
$"total".”
tl_step("total",0, "Correct. "tickets" tickets at $"price" cost $"total".");
Use the same logic to modify the next tl_step statement to report an incorrect
result. For example:
tl_step("total", 1, "Error! "tickets" tickets at $"price" does not equal $"total".");
Now you will be able to see which data is used in each iteration when you view
the results.
15 Save the test.
Conclusion
Experiment No.: 8
Title: Manual Testing This experiment helps you write manual
Testcases for Login Form as below
z
3. Quiz on the Subject
11) What are the contents in test plans and test cases?
Testing objectives
Testing scope
Testing the frame
The environment
Reason for testing
The criteria for entrance and exit
Deliverables
Risk factors
12) What is Agile testing and what is the importance of Agile testing?
Agile testing is software testing, which involves the testing of the software from the
customer
point of view. The importance of this testing is that, unlike normal testing process, this
testing does not wait for development team to complete the coding first and then doing
testing. The coding and testing both goes simultaneously. It requires continuous customer
interaction.It works on SDLC ( Systems Development Life Cycle) methodologies, it
means that the task is divided into different segments and compiled at the end of the task.
The systematic and independent examination for determining the quality of activities is
known as quality audit. It allows the cross check for the planned arrangements,
whether
they areproperly implemented or not.
16) How does a server or client environment affect software testing?
As the dependencies on the clients are more, the client or server applications are complex
The testing needs are extensive as servers, communications and hardware are
interdependent. Integration and system testing is also for a limited period of time
18) Explain stress testing, load testing and volume testing?
Load Testing: Testing an application under heavy but expected load is known as Load
Testing. Here, the load refers to the large volume of users, messages, requests, data,
etc.
Stress Testing: When the load placed on the system is raised or accelerated beyond the
normal range then it is known as Stress Testing.
Volume Testing: The process of checking the system, whether the system can handle
the required amounts of data, user requests, etc. is known as Volume Testing.
19) What are the five common solutions for software developments problems?
Setting up the requirements criteria, the requirements of a software should be complete,
clear and agreed by all The next thing is the realistic schedule like time for planning ,
designing, testing, fixing bugs and re-testing Adequate testing, start the testing
immediately after one or more modules development.Use rapid prototype during design
phase so that it can be easy for customers to find what to expect Use of group
communication tools
In verification, all the key aspects of software developments are taken in concern like
code,specifications, requirements and document plans. Verification is done on the
basis of
fourthings list of issues, checklist, walkthroughs and inspection meetings. Following
verification,validation is done, it involves actual testing, and all the verification
aspects are
checkedthoroughly in validation..
23) Mention what are the types of documents in QA?
The types of documents in QA are
Requirement Document
Test Metrics
Test cases and Test plan
Task distribution flow chart
Transaction Mix
User profiles
Test log
User profiles
Test incident report
Test summary report
24) What does the software QA document should
include?
Software QA document should include
Specifications
Designs
Business rules
Configurations
Code changes
Test plans
Test cases
Bug reports
User manuals, etc
25) Mention how validation activities should be conducted?
Validation activities should be conducted by following techniques Hire third party
independent verification and validation Assign internal staff members that are not
involved in validation and verification activities Independent evaluation
4. Conduction of VIVA-VOCE Examinations: Teacher should conduct oral exams of the
students with full preparation. Normally the objective questions with guess are to be
avoided. To make it meaningful, the questions should be such that depth of the student in
the subject is tested. Oral Exams are to be conducted in co-cordial situation. Teachers
taking oral exams should not have ill thoughts about each other & courtesies should be
offered to each other in case of opinion, which should be critically suppressed in front of
the students.
teacher
to see that right students who really put their effort & intelligence are correctly awarded.
The marking pattern should be justifiable to the students without any ambiguity and
teacher
should see that students are faced with just circumstance.