SlideShare a Scribd company logo
1 of 80
QTP 8.2QTP 8.2
QUICK TESTQUICK TEST
PROFESSIONAL 8.2PROFESSIONAL 8.2
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
1. Introduction1. Introduction
2. Recording a Session2. Recording a Session
3. Running a Session3. Running a Session
4. Object Management4. Object Management
5. Synchronization5. Synchronization
6. Check Points6. Check Points
7. Output Values7. Output Values
8. Parameterization8. Parameterization
9. Actions9. Actions
10. Recovery Scenario Manager10. Recovery Scenario Manager
11. Debugging11. Debugging
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
IntroductionIntroduction
Mercury Quick Test Professional 8.2Mercury Quick Test Professional 8.2
provides the industry’s best solution forprovides the industry’s best solution for
functional test and regression testfunctional test and regression test
automation - addressing every majorautomation - addressing every major
software application and environment.software application and environment.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Why QTPWhy QTP
 Ease of use:Ease of use:
1.1. QTP allows even novice testers to be productive in minutes. YouQTP allows even novice testers to be productive in minutes. You
can create a test script by simply pressing a Record buttoncan create a test script by simply pressing a Record button andand
using anusing an application to perform a typical business process.application to perform a typical business process.
2.2. Using the Active Screen facility, several types ofUsing the Active Screen facility, several types of checkpointscheckpoints forfor
any object to verify that components behave as expected can beany object to verify that components behave as expected can be
createdcreated simply bysimply by clicking on that object in the Active Screenclicking on that object in the Active Screen..
3.3. Data TableData Table, an integrated spreadsheet with the full functionality, an integrated spreadsheet with the full functionality
of Excel, is usedof Excel, is used to manipulate data setsto manipulate data sets and create multiple testand create multiple test
iterations, without programming, to expand test case coverage.iterations, without programming, to expand test case coverage.
 QuickTest Professional supportsQuickTest Professional supports functional testingfunctional testing of all popularof all popular
environments, including Windows, Web, .Net, Visual Basic, ActiveX,environments, including Windows, Web, .Net, Visual Basic, ActiveX,
Java, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and WebJava, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and Web
services .services .
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Add-in ManagerAdd-in Manager
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Keyword ViewKeyword View
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Expert ViewExpert View
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Create the Basic TestCreate the Basic Test
 Record user actionsRecord user actions
 Save the testSave the test
 Verify successful playbackVerify successful playback
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Record User ActionsRecord User Actions
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Start recording on the Mercury Tours Web site.Start recording on the Mercury Tours Web site.
ChooseChoose Test > RecordTest > Record or click theor click the RecordRecord button. The Record andbutton. The Record and
Run Settings dialog boxRun Settings dialog box
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
In the Windows Applications tab, confirm thatIn the Windows Applications tab, confirm that Record and run onRecord and run on
these applications (opened on session start)these applications (opened on session start) is selected, and thatis selected, and that
there are no applications listed.there are no applications listed.
 This setting prevents you from inadvertently recording operationsThis setting prevents you from inadvertently recording operations
performed on various Windows applications (such as e-mail) duringperformed on various Windows applications (such as e-mail) during
a recording session.a recording session.

ClickClick OKOK..04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Recording ModesRecording Modes
• NormalNormal: recognizes the objects in the application: recognizes the objects in the application
irrespective of their location in the screen.irrespective of their location in the screen.
• AnalogAnalog: records the exact keyboard and mouse: records the exact keyboard and mouse
operations with respect to the screen coordinates oroperations with respect to the screen coordinates or
the application window.the application window.
• Low levelLow level: records any object irrespective of support: records any object irrespective of support
from QTP. Recognizes all run time objects asfrom QTP. Recognizes all run time objects as
windows objects. It is used when an object is notwindows objects. It is used when an object is not
identified by Quick test.identified by Quick test.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Save the TestSave the Test
 The test can be saved into a Windows file system (as below).The test can be saved into a Windows file system (as below).
 If TestDirector is available and connected with QTP, the test can beIf TestDirector is available and connected with QTP, the test can be
saved there.saved there.
 QTP creates an entire structure of files and directories to support aQTP creates an entire structure of files and directories to support a
single QuickTest script for each saved test.single QuickTest script for each saved test.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Verify Successful PlaybackVerify Successful Playback
 Use the ‘Run’ button to begin playback from the top of the test.Use the ‘Run’ button to begin playback from the top of the test.
 Select the location of the test results- either a new results folderSelect the location of the test results- either a new results folder
or a temporary folder.or a temporary folder.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Running a SessionRunning a Session
 TheThe RunRun option can be used to run the test from start tooption can be used to run the test from start to
end.end.
 TheThe RunRun from Stepfrom Step option in the Test menu is used tooption in the Test menu is used to
run the test from a selected step to the end of the currentrun the test from a selected step to the end of the current
action, if running from the Expert View, or to the end ofaction, if running from the Expert View, or to the end of
the test , if running from the Keyword View. Thus itthe test , if running from the Keyword View. Thus it
enables us to check a specific part of the application orenables us to check a specific part of the application or
to confirm that a certain part of the test runs correctly.to confirm that a certain part of the test runs correctly.
 TheThe Update RunUpdate Run option in the Test menu is used tooption in the Test menu is used to
update the Active screens, Checkpoints and the testupdate the Active screens, Checkpoints and the test
object descriptions.object descriptions.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Viewing the Test ResultsViewing the Test Results
 Test results can be stored in their own location (forTest results can be stored in their own location (for
documentation) or in a temporary location that is overwrittendocumentation) or in a temporary location that is overwritten
each time the test is run (debugging).each time the test is run (debugging).
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How QuickTest Works with ObjectsHow QuickTest Works with Objects
What are Object Properties?What are Object Properties?
A set of characteristics that defines an object’s appearance, values,A set of characteristics that defines an object’s appearance, values,
state and identity in an application.state and identity in an application.
– QTP captures these object properties during recording.QTP captures these object properties during recording.
– Logical Name – Logical name is a value QuickTest usually takesLogical Name – Logical name is a value QuickTest usually takes
from one of the object properties (like TEXT) to refer to thefrom one of the object properties (like TEXT) to refer to the
object in the recorded script.object in the recorded script.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Object RepositoryObject Repository
 What is Object Repository?What is Object Repository?
Object Repository is a location within the test structureObject Repository is a location within the test structure
where QuickTest stores object information capturedwhere QuickTest stores object information captured
during recording.during recording.
The Object Repository can be used to:The Object Repository can be used to:
– Rename logical names for readability.Rename logical names for readability.
– Add a new object in the repository.Add a new object in the repository.
– Configure the object properties used to identify anConfigure the object properties used to identify an
object.object.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Object RepositoryObject Repository
Object List Object Properties
Object Name and Class
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Object RepositoryObject Repository
 The Object Repository can be Per Action orThe Object Repository can be Per Action or
Shared.Shared.
 The shared repository can be used by multipleThe shared repository can be used by multiple
actions of the same test or by actions fromactions of the same test or by actions from
different tests. Test object properties are pronedifferent tests. Test object properties are prone
to frequent updation.to frequent updation.
 Per Action object repository is used by one orPer Action object repository is used by one or
very few tests.Test object properties arevery few tests.Test object properties are
modified less frequentlymodified less frequently..
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Object SpyObject Spy
 It can be used to view the properties and valuesIt can be used to view the properties and values
of an object in any open application. Click theof an object in any open application. Click the
pointing hand to select the object in thepointing hand to select the object in the
application. The object’s properties (Test objectapplication. The object’s properties (Test object
properties and Run-Time object properties) andproperties and Run-Time object properties) and
methods can be identified. The object’smethods can be identified. The object’s
hierarchy tree is also displayed. To performhierarchy tree is also displayed. To perform
other events such as mouse clicks or windowother events such as mouse clicks or window
focus hold the CTRL key.focus hold the CTRL key.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Object IdentificationObject Identification
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
SynchronizationSynchronization
WHAT IS SYNCHRONIZATION ?WHAT IS SYNCHRONIZATION ?
Synchronization refers to adding a step in the script thatSynchronization refers to adding a step in the script that
instructs Quick Test to wait for a particular object beforeinstructs Quick Test to wait for a particular object before
proceeding to the next step during playback.proceeding to the next step during playback.
When do you need SYNCHRONIZATION ?When do you need SYNCHRONIZATION ?
When you observe that the application takes a longerWhen you observe that the application takes a longer
time to process information sent or respond to a clienttime to process information sent or respond to a client
request, add a synchronization step while recording. Forrequest, add a synchronization step while recording. For
example:example:
- A progress bar to reach 100%.- A progress bar to reach 100%.
- A button to become enabled.- A button to become enabled.
- A window or pop-up message to open.- A window or pop-up message to open.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to ADD SynchronizationHow to ADD Synchronization
 Synchronization can be added ONLY during recording.Synchronization can be added ONLY during recording.
 Identify the object to be synchronized.Identify the object to be synchronized.
 Navigate to the window where the object is located.Navigate to the window where the object is located.
 Locate the step in the test that corresponds to the object.Locate the step in the test that corresponds to the object.
 Start recording and add the synchronization point.Start recording and add the synchronization point.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Two ways to set SynchronizationTwo ways to set Synchronization
 Global synchronization value for all Objects.Global synchronization value for all Objects.
Instructs Quick Test to wait for all the objects for aInstructs Quick Test to wait for all the objects for a
specific amount of time.specific amount of time.
 Synchronization of a specific Object.Synchronization of a specific Object.
Instructs Quick Test to wait for a specific object only.Instructs Quick Test to wait for a specific object only.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Global synchronization valueGlobal synchronization value
for all Objectsfor all Objects
 MenuMenu  TestTest 
SettingsSettings  RunRun
 For every objectFor every object
in the test, Quickin the test, Quick
Test can wait aTest can wait a
maximummaximum
number ofnumber of
millisecondsmilliseconds
specified in thespecified in the
settingssettings
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Synchronization of a Specific ObjectSynchronization of a Specific Object
 MenuMenu  InsertInsert 
StepStep 
SynchronizationSynchronization
PointPoint
 Quick Test shallQuick Test shall
pause the test untilpause the test until
the object propertythe object property
achieves the valueachieves the value
specified here (orspecified here (or
until the specificuntil the specific
timeout amount istimeout amount is
exceeded).exceeded).
 Quick Test uses oneQuick Test uses one
of the object’sof the object’s
properties as theproperties as the
waiting criteria. E.g.waiting criteria. E.g.
‘Text’ property for‘Text’ property for
window, ‘Label’window, ‘Label’
property for buttonsproperty for buttons04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Checkpoints In QTPCheckpoints In QTP
 A checkpoint is a verification point thatA checkpoint is a verification point that
compares a current value for a specifiedcompares a current value for a specified
property with the expected value for thatproperty with the expected value for that
property.property.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Types Of CheckpointsTypes Of Checkpoints
 Standard CheckpointStandard Checkpoint
 Bitmap checkpointBitmap checkpoint
 Text checkpointText checkpoint
 Text Area checkpointText Area checkpoint
 Database checkpointDatabase checkpoint
 XML CheckpointXML Checkpoint
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Types and Their UseTypes and Their Use
 Standard CheckpointStandard Checkpoint
 Bitmap CheckpointBitmap Checkpoint
 Checks the propertyChecks the property
value of the object invalue of the object in
an application oran application or
Webpage. It checksWebpage. It checks
buttons,Radiobuttons,buttons,Radiobuttons,
Comboboxes etcComboboxes etc
 Checks the value ofChecks the value of
an image in thean image in the
application.application.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
 Text CheckpointText Checkpoint
 Checks whether theChecks whether the
text string istext string is
displayed in thedisplayed in the
appropriate place inappropriate place in
your application oryour application or
on a Web pageon a Web page
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
 Database CheckpointDatabase Checkpoint
 XML CheckpointXML Checkpoint
 ChecksChecks thethe contentscontents
ofof aa databasedatabase
accessed by theaccessed by the
applicationapplication
 Checks the dataChecks the data
content of XMLcontent of XML
documents in thedocuments in the
applicationapplication..
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
When to Use CheckpointsWhen to Use Checkpoints
 Before creating checkpoints on webBefore creating checkpoints on web
objects we have to select web-testobjects we have to select web-test
option in ADD-IN Manager.option in ADD-IN Manager.
 If the objects developed in HTML weIf the objects developed in HTML we
can use Standard Check point.can use Standard Check point.
 If the Objects developed in XML weIf the Objects developed in XML we
can use XML Check point.can use XML Check point.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How Checkpoints Work -How Checkpoints Work -
PlaybackPlayback
ScriptScript Expected ResultExpected Result
Execute checkpoint
Object: Button
Logical Name : OK
Property: Enabled
Value: True
Actual =
expect
ed ?
Test Results
PASS
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Sample Objects that QuickTest canSample Objects that QuickTest can
VerifyVerify
WINDOWSWINDOWS WEBWEB
WindowWindow BrowserBrowser
Edit FieldEdit Field Text AreaText Area
Drop down listDrop down list Text LinkText Link
Menu commandMenu command ImagesImages
Radio ButtonRadio Button Image LinkImage Link
CheckboxCheckbox Edit FieldEdit Field
Windows ObjectWindows Object Drop down listDrop down list
Status BarStatus Bar CheckboxCheckbox
Text AreaText Area Radio ButtonRadio Button
Tables/ GridsTables/ Grids
Web ElementWeb Element
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Add a CheckpointHow to Add a Checkpoint
1.Select the object in the Active
Screen
2.Right Click on it and Select ‘Insert
Standard Checkpoint’
or
Menu Insert Checkpoint 
Standard Checkpoint
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Add a Checkpoint… setHow to Add a Checkpoint… set
expected valueexpected value
» Do not automatically select the
pre-defined list of properties to
check.
» Scroll down the property list to
find the property( or properties)
that best meets the test
requirement.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Table CheckpointTable Checkpoint
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Database CheckpointDatabase Checkpoint
 ChooseChoose Insert > Checkpoint > Database CheckpointInsert > Checkpoint > Database Checkpoint..
The Database Query Wizard opensThe Database Query Wizard opens..
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Database Checkpoint ..contdDatabase Checkpoint ..contd
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Add a Checkpoint…How to Add a Checkpoint…
Test ResultTest Result
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Output ValuesOutput Values
 Output Value is used to retrieve theOutput Value is used to retrieve the
current value of any object in thecurrent value of any object in the
application and stores it in aapplication and stores it in a
specified location.specified location.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
NavigationNavigation
InsertInsert
Output ValueOutput Value
Select the type of output value.Select the type of output value.
Right click the object in the Active screenRight click the object in the Active screen
and select the type of output value to beand select the type of output value to be
addedadded
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Types of Output ValuesTypes of Output Values
 Standard OutputStandard Output
ValuesValues
 Text Output ValuesText Output Values
 To output theTo output the
property values ofproperty values of
most objects likemost objects like
editbox,button,radieditbox,button,radi
o button,listo button,list
box,etc.box,etc.
 To output textTo output text
strings displayed instrings displayed in
the applicationthe application
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
 Text Area OutputText Area Output
ValuesValues
 Database OutputDatabase Output
ValuesValues
 XML Output ValuesXML Output Values
 To output textTo output text
strings displayedstrings displayed
within a defined areawithin a defined area
of the applicationof the application
 To output theTo output the
contents of databasecontents of database
cells, based on thecells, based on the
results of a query onresults of a query on
the database.the database.
 To output the valuesTo output the values
of XML elements andof XML elements and
attributes in XMLattributes in XML
documentsdocuments
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to use Output ValueHow to use Output Value
Select the
output to be
considered
Select the
Property
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to use Output Value…How to use Output Value…
Contd.Contd.
Output Value
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
ParameterizationParameterization
 A parameter is a variable that isA parameter is a variable that is
assigned a value from an externalassigned a value from an external
data source at run time. We usedata source at run time. We use
parameterization when we want toparameterization when we want to
change the value of properties at runchange the value of properties at run
time.time.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Types of ParameterizationTypes of Parameterization
Parameterization can be done in threeParameterization can be done in three
ways using Quick Test.ways using Quick Test.
 DatatableDatatable
 Environment variablesEnvironment variables
 Random numbersRandom numbers
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
DataTable ParametersDataTable Parameters
 The Test runs once for each line of data inThe Test runs once for each line of data in
the DataTable. Each iteration takes athe DataTable. Each iteration takes a
different value from the datatable.different value from the datatable.
choose the Run tabchoose the Run tab
TestTest
SettingsSettings
Specify an option in the Datatable iterationsSpecify an option in the Datatable iterations
frame.frame.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Environment variable ParametersEnvironment variable Parameters
 The Environment variables can have Quick TestThe Environment variables can have Quick Test
generated values or values supplied from externalgenerated values or values supplied from external
files.files.
TestTest
SettingsSettings
EnvironmentEnvironment
Choose User-defined from the variable typeChoose User-defined from the variable type
ClickClick NewNew to create your own internal variablesto create your own internal variables
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Random number ParametersRandom number Parameters
 It enables us to use random numbersIt enables us to use random numbers
as values in the test. We can specifyas values in the test. We can specify
the range from which the randomthe range from which the random
number is generated. By default, thenumber is generated. By default, the
random number range is between 0random number range is between 0
and 100.and 100.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Parameterize an InputHow to Parameterize an Input
ValueValue
» Select the step in the Tree View that
contains the recorded input value.
» Click on the text under Value column.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Parameterize an InputHow to Parameterize an Input
Value… contd.Value… contd.
-Select the source for
paramterization.
-Select the parameter
name.
-Select the data sheet to
use.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Parameterize an InputHow to Parameterize an Input
Value…contdValue…contd
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
ActionsActions
 A test is composed of actions orA test is composed of actions or
logical sections. The steps we add tological sections. The steps we add to
the test are added within the test’sthe test are added within the test’s
actions. By default,actions. By default, each test beginseach test begins
with a singlewith a single actionaction..
 When we run a test with multipleWhen we run a test with multiple
actions, theactions, the Test Results are dividedTest Results are divided
by actionsby actions so that we can view theso that we can view the
detailed results for each actiondetailed results for each action
individually.individually.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
 Each action has its own sheet in the DataEach action has its own sheet in the Data
Table so that we can insert data thatTable so that we can insert data that
applies only to that action.applies only to that action.
Actions can be of three types:Actions can be of three types:
 Non-re-usableNon-re-usable: Action can be used in the: Action can be used in the
local test, only once.local test, only once.
 ReusableReusable: Action can be used in the local: Action can be used in the local
test, multiple times.test, multiple times.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
 ExternalExternal: These are reusable actions: These are reusable actions
created in another test. This can be of twocreated in another test. This can be of two
types. If atypes. If a call to an external actioncall to an external action isis
used the action is read only in the callingused the action is read only in the calling
test. But, any existing action can betest. But, any existing action can be
inserted as a copy of the original action. Ininserted as a copy of the original action. In
this case, we can modify thisthis case, we can modify this copy of thecopy of the
external actionexternal action in the calling test.in the calling test.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Actions on Quick Test WindowActions on Quick Test Window
(Keyword View):(Keyword View):
Actions Tool BarActions Tool Bar contains buttons and acontains buttons and a
list of actions, enabling us to view thelist of actions, enabling us to view the
details of an individual action or the entiredetails of an individual action or the entire
test flow. The test flowtest flow. The test flow displays the overalldisplays the overall
flow of the test with all the actions in theflow of the test with all the actions in the
test.test.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to set an Action asHow to set an Action as
ReusableReusable
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
How to Call a Reusable ActionHow to Call a Reusable Action
Insert Call to existing Action
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Recovery Scenario ManagerRecovery Scenario Manager
The recovery scenario manager is used to :The recovery scenario manager is used to :
 defining the trigger eventdefining the trigger event that interrupts the runthat interrupts the run
sessionsession
 specifying the recovery operation(s)specifying the recovery operation(s) required torequired to
continuecontinue
 choosing a post-recoverychoosing a post-recovery test run operationtest run operation
 specifying a name and descriptionspecifying a name and description for thefor the
recovery scenariorecovery scenario
 specifying whether to associate the recoveryspecifying whether to associate the recovery
scenario to thescenario to the current test and/or to all newcurrent test and/or to all new
tests.tests.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Components of a RecoveryComponents of a Recovery
ScenarioScenario
The event that interrupts
the test run (e.g. a pop
up screen or run error)
The operation that
needs to be performed
in order to continue
running the test.
The instructions on how
the test should proceed
once the recovery
operation is performed.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Steps to add a RecoverySteps to add a Recovery
Scenario…contdScenario…contd
After clicking on HAND,
select the message/
error window. The click
on Next.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Steps to add a RecoverySteps to add a Recovery
Scenario…contdScenario…contd
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Steps to add a RecoverySteps to add a Recovery
Scenario…contdScenario…contd
After clicking on HAND,
select the OK button in
the Error/Message
window.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Steps to add a RecoverySteps to add a Recovery
Scenario…contdScenario…contd
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Steps to add a RecoverySteps to add a Recovery
Scenario…contdScenario…contd
Give a name and
description to the
recovery scenario
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Steps to add a RecoverySteps to add a Recovery
Scenario…contdScenario…contd
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
DebuggingDebugging
 TheThe PausePause option in the Debug menu is used tooption in the Debug menu is used to
temporarily suspend the run. To resume runningtemporarily suspend the run. To resume running
a paused test, click thea paused test, click the RunRun button.button.
 TheThe StepIntoStepInto(F11) option in the Debug menu is(F11) option in the Debug menu is
used to run the current line of the test. If theused to run the current line of the test. If the
current line of the active test or component callscurrent line of the active test or component calls
another action or a function, the calledanother action or a function, the called
action/function is displayed in the QuickTestaction/function is displayed in the QuickTest
window, and the test or component pauses at thewindow, and the test or component pauses at the
first line of the called action/function.first line of the called action/function.
 Step OutStep Out ChooseChoose DebugDebug >> Step OutStep Out or click theor click the
Step OutStep Out button, or pressbutton, or press SHIFT+F11SHIFT+F11 only afteronly after
usingusing Step IntoStep Into to enter a action or a user-to enter a action or a user-
defined function.defined function. Step OutStep Out runs to the end of theruns to the end of the
called action or user-defined function, thencalled action or user-defined function, then
returns to the calling action and pauses the runreturns to the calling action and pauses the run
session.session.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
BreakpointBreakpoint
TheThe InsertRemove BreakpointInsertRemove Breakpoint(F9) option in the(F9) option in the
Debug menu is used to stop a test run at a pre-Debug menu is used to stop a test run at a pre-
determined place in a test.determined place in a test.
To set a breakpoint:To set a breakpoint:
11 Click a step or a line in the test or componentClick a step or a line in the test or component
where you want the run to stop.where you want the run to stop.
22 ChooseChoose Debug > Insert/Remove BreakpointDebug > Insert/Remove Breakpoint,,
press F9, or click thepress F9, or click the Insert/RemoveInsert/Remove
BreakpointBreakpoint button. The breakpoint symbol isbutton. The breakpoint symbol is
displayed in the left margin of the Keyword Viewdisplayed in the left margin of the Keyword View
and Expert View.and Expert View.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Debug ViewerDebug Viewer
TheThe DebugViewerDebugViewer option in the View menuoption in the View menu
is used to view, set, or modify the currentis used to view, set, or modify the current
value of objects or variables in thevalue of objects or variables in the
test,when a test stops at a breakpoint.test,when a test stops at a breakpoint.
To open the Debug Viewer pane:To open the Debug Viewer pane:
11 Run a test or component with one or moreRun a test or component with one or more
breakpoints.breakpoints.
22 When it pauses at a breakpoint, chooseWhen it pauses at a breakpoint, choose
View > Debug ViewerView > Debug Viewer or click theor click the
Debug ViewerDebug Viewer button.button.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Debug ViewerDebug Viewer
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
Debug Viewer ..CntdDebug Viewer ..Cntd
 Watch Expressions Tab:Watch Expressions Tab: Use the Watch ExpressionsUse the Watch Expressions
tab to view the current value of any variable or VBScripttab to view the current value of any variable or VBScript
object that you enter in the Watch Expressions table.object that you enter in the Watch Expressions table.
Paste or type the name of the object or variable into thePaste or type the name of the object or variable into the
NameName column and press ENTER to view the currentcolumn and press ENTER to view the current
value in thevalue in the ValueValue column.column.
 Variables Tab :Variables Tab :Use the Variables tab to view the currentUse the Variables tab to view the current
value of all variables, in the current action or selectedvalue of all variables, in the current action or selected
subroutine, identified up to the point where the test orsubroutine, identified up to the point where the test or
component stoppedcomponent stopped
 Command Tab :Command Tab :Use the Command tab to execute a lineUse the Command tab to execute a line
of script in order to set or modify the current value of aof script in order to set or modify the current value of a
variable or VBScript object in your test or component.variable or VBScript object in your test or component.
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
ConceptsConceptsThank YouThank You
04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com

More Related Content

What's hot

Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Deepak Singhvi
 
An Introduction to JUnit 5 and how to use it with Spring boot tests and Mockito
An Introduction to JUnit 5 and how to use it with Spring boot tests and MockitoAn Introduction to JUnit 5 and how to use it with Spring boot tests and Mockito
An Introduction to JUnit 5 and how to use it with Spring boot tests and Mockitoshaunthomas999
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP FrameworkAnish10110
 
Stopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under TestStopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under TestSeb Rose
 
Automated testing in Python and beyond
Automated testing in Python and beyondAutomated testing in Python and beyond
Automated testing in Python and beyonddn
 
OSGi Applications Testing - André Elia Assad, System Engineer, Cesar
OSGi Applications Testing - André Elia Assad, System Engineer, CesarOSGi Applications Testing - André Elia Assad, System Engineer, Cesar
OSGi Applications Testing - André Elia Assad, System Engineer, Cesarmfrancis
 
RPG Program for Unit Testing RPG
RPG Program for Unit Testing RPG RPG Program for Unit Testing RPG
RPG Program for Unit Testing RPG Greg.Helton
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersITeLearn
 
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
JUnit 5 - The Next Generation of JUnit - Ted's Tool TimeJUnit 5 - The Next Generation of JUnit - Ted's Tool Time
JUnit 5 - The Next Generation of JUnit - Ted's Tool TimeTed Vinke
 
JUnit 5 - The Next Generation
JUnit 5 - The Next GenerationJUnit 5 - The Next Generation
JUnit 5 - The Next GenerationKostadin Golev
 
Comparing Functionalities of PVS-Studio and CppCat Static Code Analyzers
Comparing Functionalities of PVS-Studio and CppCat Static Code AnalyzersComparing Functionalities of PVS-Studio and CppCat Static Code Analyzers
Comparing Functionalities of PVS-Studio and CppCat Static Code AnalyzersAndrey Karpov
 
Grails 1.1 Testing - Unit, Integration & Functional
Grails 1.1 Testing - Unit, Integration & FunctionalGrails 1.1 Testing - Unit, Integration & Functional
Grails 1.1 Testing - Unit, Integration & Functional2Paths Solutions Ltd.
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtpRamu Palanki
 
Oracle Unit Testing with utPLSQL
Oracle Unit Testing with utPLSQLOracle Unit Testing with utPLSQL
Oracle Unit Testing with utPLSQLBrendan Furey
 
Unit Testing RPG with JUnit
Unit Testing RPG with JUnitUnit Testing RPG with JUnit
Unit Testing RPG with JUnitGreg.Helton
 

What's hot (20)

Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.Testing and Mocking Object - The Art of Mocking.
Testing and Mocking Object - The Art of Mocking.
 
An Introduction to JUnit 5 and how to use it with Spring boot tests and Mockito
An Introduction to JUnit 5 and how to use it with Spring boot tests and MockitoAn Introduction to JUnit 5 and how to use it with Spring boot tests and Mockito
An Introduction to JUnit 5 and how to use it with Spring boot tests and Mockito
 
Basics of QTP Framework
Basics of QTP FrameworkBasics of QTP Framework
Basics of QTP Framework
 
Stopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under TestStopping the Rot - Putting Legacy C++ Under Test
Stopping the Rot - Putting Legacy C++ Under Test
 
Automated testing in Python and beyond
Automated testing in Python and beyondAutomated testing in Python and beyond
Automated testing in Python and beyond
 
OSGi Applications Testing - André Elia Assad, System Engineer, Cesar
OSGi Applications Testing - André Elia Assad, System Engineer, CesarOSGi Applications Testing - André Elia Assad, System Engineer, Cesar
OSGi Applications Testing - André Elia Assad, System Engineer, Cesar
 
RPG Program for Unit Testing RPG
RPG Program for Unit Testing RPG RPG Program for Unit Testing RPG
RPG Program for Unit Testing RPG
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Junit
JunitJunit
Junit
 
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
JUnit 5 - The Next Generation of JUnit - Ted's Tool TimeJUnit 5 - The Next Generation of JUnit - Ted's Tool Time
JUnit 5 - The Next Generation of JUnit - Ted's Tool Time
 
JUnit 5 - The Next Generation
JUnit 5 - The Next GenerationJUnit 5 - The Next Generation
JUnit 5 - The Next Generation
 
Comparing Functionalities of PVS-Studio and CppCat Static Code Analyzers
Comparing Functionalities of PVS-Studio and CppCat Static Code AnalyzersComparing Functionalities of PVS-Studio and CppCat Static Code Analyzers
Comparing Functionalities of PVS-Studio and CppCat Static Code Analyzers
 
Unit test
Unit testUnit test
Unit test
 
Grails 1.1 Testing - Unit, Integration & Functional
Grails 1.1 Testing - Unit, Integration & FunctionalGrails 1.1 Testing - Unit, Integration & Functional
Grails 1.1 Testing - Unit, Integration & Functional
 
Qtp faqs
Qtp faqsQtp faqs
Qtp faqs
 
What are the features in qtp
What are the features in qtpWhat are the features in qtp
What are the features in qtp
 
Oracle Unit Testing with utPLSQL
Oracle Unit Testing with utPLSQLOracle Unit Testing with utPLSQL
Oracle Unit Testing with utPLSQL
 
Qtp basic
Qtp basicQtp basic
Qtp basic
 
Unit Testing RPG with JUnit
Unit Testing RPG with JUnitUnit Testing RPG with JUnit
Unit Testing RPG with JUnit
 

Viewers also liked

Hva Cprogramme Material
Hva Cprogramme MaterialHva Cprogramme Material
Hva Cprogramme Materialguestf11b52
 
HVAC Energy Efficiency in Commercial Buildings
HVAC Energy Efficiency in Commercial BuildingsHVAC Energy Efficiency in Commercial Buildings
HVAC Energy Efficiency in Commercial BuildingsAlan Richardson
 
Hvac presentation for beginers
Hvac presentation for beginersHvac presentation for beginers
Hvac presentation for beginersguestf11b52
 
Hvac Presentation
Hvac PresentationHvac Presentation
Hvac PresentationChoong KW
 

Viewers also liked (6)

Hva Cprogramme Material
Hva Cprogramme MaterialHva Cprogramme Material
Hva Cprogramme Material
 
Ductwork
DuctworkDuctwork
Ductwork
 
HVAC Energy Efficiency in Commercial Buildings
HVAC Energy Efficiency in Commercial BuildingsHVAC Energy Efficiency in Commercial Buildings
HVAC Energy Efficiency in Commercial Buildings
 
HVAC Basic Concepts of Air Conditioning
HVAC Basic Concepts of Air ConditioningHVAC Basic Concepts of Air Conditioning
HVAC Basic Concepts of Air Conditioning
 
Hvac presentation for beginers
Hvac presentation for beginersHvac presentation for beginers
Hvac presentation for beginers
 
Hvac Presentation
Hvac PresentationHvac Presentation
Hvac Presentation
 

Similar to Qtp-training A presentation for beginers

Qtp Basics
Qtp BasicsQtp Basics
Qtp Basicsmehramit
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answersRamu Palanki
 
Interview qutions
Interview qutionsInterview qutions
Interview qutionssatyaragha
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptKalyan Chakravarthy
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECHPravinsinh
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test ProfessionalVitaliy Ganzha
 
Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187Azhar Satti
 
Qtp92 Presentation
Qtp92 PresentationQtp92 Presentation
Qtp92 Presentationa34sharm
 
Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Saurabh Singh
 
Qtp 9.2 tutorials
Qtp 9.2 tutorialsQtp 9.2 tutorials
Qtp 9.2 tutorialsmedsherb
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_materialVishwaprakash Sahoo
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programmingKuldeep Sharma
 

Similar to Qtp-training A presentation for beginers (20)

Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Qtp interview questions and answers
Qtp interview questions and answersQtp interview questions and answers
Qtp interview questions and answers
 
Interview qutions
Interview qutionsInterview qutions
Interview qutions
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.ppt
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
HP Quick Test Professional
HP Quick Test ProfessionalHP Quick Test Professional
HP Quick Test Professional
 
Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187Qtp Training Deepti 1 Of 4187
Qtp Training Deepti 1 Of 4187
 
Hybrid framework
Hybrid frameworkHybrid framework
Hybrid framework
 
About QTP 9.2
About QTP 9.2About QTP 9.2
About QTP 9.2
 
About Qtp_1 92
About Qtp_1 92About Qtp_1 92
About Qtp_1 92
 
About Qtp 92
About Qtp 92About Qtp 92
About Qtp 92
 
Qtp92 Presentation
Qtp92 PresentationQtp92 Presentation
Qtp92 Presentation
 
Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1Qtp framework implementation_guide_v1
Qtp framework implementation_guide_v1
 
ssssssssss
ssssssssssssssssssss
ssssssssss
 
QTP 9.2
QTP 9.2QTP 9.2
QTP 9.2
 
Qtp 9.2 tutorials
Qtp 9.2 tutorialsQtp 9.2 tutorials
Qtp 9.2 tutorials
 
QTP Online Training
QTP Online TrainingQTP Online Training
QTP Online Training
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programming
 

Recently uploaded

ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...Christina Lin
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfkalichargn70th171
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideChristina Lin
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptkotipi9215
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - InfographicHr365.us smith
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataBradBedford3
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationkaushalgiri8080
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...stazi3110
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyFrank van der Linden
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 

Recently uploaded (20)

ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
 
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdfThe Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
 
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop SlideBuilding Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
 
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.pptchapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 
Asset Management Software - Infographic
Asset Management Software - InfographicAsset Management Software - Infographic
Asset Management Software - Infographic
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer DataAdobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
Adobe Marketo Engage Deep Dives: Using Webhooks to Transfer Data
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
Project Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanationProject Based Learning (A.I).pptx detail explanation
Project Based Learning (A.I).pptx detail explanation
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The UglyEngage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 

Qtp-training A presentation for beginers

  • 1. QTP 8.2QTP 8.2 QUICK TESTQUICK TEST PROFESSIONAL 8.2PROFESSIONAL 8.2 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 2. 1. Introduction1. Introduction 2. Recording a Session2. Recording a Session 3. Running a Session3. Running a Session 4. Object Management4. Object Management 5. Synchronization5. Synchronization 6. Check Points6. Check Points 7. Output Values7. Output Values 8. Parameterization8. Parameterization 9. Actions9. Actions 10. Recovery Scenario Manager10. Recovery Scenario Manager 11. Debugging11. Debugging 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 3. IntroductionIntroduction Mercury Quick Test Professional 8.2Mercury Quick Test Professional 8.2 provides the industry’s best solution forprovides the industry’s best solution for functional test and regression testfunctional test and regression test automation - addressing every majorautomation - addressing every major software application and environment.software application and environment. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 4. Why QTPWhy QTP  Ease of use:Ease of use: 1.1. QTP allows even novice testers to be productive in minutes. YouQTP allows even novice testers to be productive in minutes. You can create a test script by simply pressing a Record buttoncan create a test script by simply pressing a Record button andand using anusing an application to perform a typical business process.application to perform a typical business process. 2.2. Using the Active Screen facility, several types ofUsing the Active Screen facility, several types of checkpointscheckpoints forfor any object to verify that components behave as expected can beany object to verify that components behave as expected can be createdcreated simply bysimply by clicking on that object in the Active Screenclicking on that object in the Active Screen.. 3.3. Data TableData Table, an integrated spreadsheet with the full functionality, an integrated spreadsheet with the full functionality of Excel, is usedof Excel, is used to manipulate data setsto manipulate data sets and create multiple testand create multiple test iterations, without programming, to expand test case coverage.iterations, without programming, to expand test case coverage.  QuickTest Professional supportsQuickTest Professional supports functional testingfunctional testing of all popularof all popular environments, including Windows, Web, .Net, Visual Basic, ActiveX,environments, including Windows, Web, .Net, Visual Basic, ActiveX, Java, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and WebJava, SAP, Siebel, Oracle, PeopleSoft, terminal emulators, and Web services .services . 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 5. Add-in ManagerAdd-in Manager 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 6. Keyword ViewKeyword View 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 7. Expert ViewExpert View 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 8. Create the Basic TestCreate the Basic Test  Record user actionsRecord user actions  Save the testSave the test  Verify successful playbackVerify successful playback 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 9. Record User ActionsRecord User Actions 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 10. Start recording on the Mercury Tours Web site.Start recording on the Mercury Tours Web site. ChooseChoose Test > RecordTest > Record or click theor click the RecordRecord button. The Record andbutton. The Record and Run Settings dialog boxRun Settings dialog box 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 11. In the Windows Applications tab, confirm thatIn the Windows Applications tab, confirm that Record and run onRecord and run on these applications (opened on session start)these applications (opened on session start) is selected, and thatis selected, and that there are no applications listed.there are no applications listed.  This setting prevents you from inadvertently recording operationsThis setting prevents you from inadvertently recording operations performed on various Windows applications (such as e-mail) duringperformed on various Windows applications (such as e-mail) during a recording session.a recording session.  ClickClick OKOK..04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 12. Recording ModesRecording Modes • NormalNormal: recognizes the objects in the application: recognizes the objects in the application irrespective of their location in the screen.irrespective of their location in the screen. • AnalogAnalog: records the exact keyboard and mouse: records the exact keyboard and mouse operations with respect to the screen coordinates oroperations with respect to the screen coordinates or the application window.the application window. • Low levelLow level: records any object irrespective of support: records any object irrespective of support from QTP. Recognizes all run time objects asfrom QTP. Recognizes all run time objects as windows objects. It is used when an object is notwindows objects. It is used when an object is not identified by Quick test.identified by Quick test. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 13. Save the TestSave the Test  The test can be saved into a Windows file system (as below).The test can be saved into a Windows file system (as below).  If TestDirector is available and connected with QTP, the test can beIf TestDirector is available and connected with QTP, the test can be saved there.saved there.  QTP creates an entire structure of files and directories to support aQTP creates an entire structure of files and directories to support a single QuickTest script for each saved test.single QuickTest script for each saved test. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 14. Verify Successful PlaybackVerify Successful Playback  Use the ‘Run’ button to begin playback from the top of the test.Use the ‘Run’ button to begin playback from the top of the test.  Select the location of the test results- either a new results folderSelect the location of the test results- either a new results folder or a temporary folder.or a temporary folder. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 15. Running a SessionRunning a Session  TheThe RunRun option can be used to run the test from start tooption can be used to run the test from start to end.end.  TheThe RunRun from Stepfrom Step option in the Test menu is used tooption in the Test menu is used to run the test from a selected step to the end of the currentrun the test from a selected step to the end of the current action, if running from the Expert View, or to the end ofaction, if running from the Expert View, or to the end of the test , if running from the Keyword View. Thus itthe test , if running from the Keyword View. Thus it enables us to check a specific part of the application orenables us to check a specific part of the application or to confirm that a certain part of the test runs correctly.to confirm that a certain part of the test runs correctly.  TheThe Update RunUpdate Run option in the Test menu is used tooption in the Test menu is used to update the Active screens, Checkpoints and the testupdate the Active screens, Checkpoints and the test object descriptions.object descriptions. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 16. Viewing the Test ResultsViewing the Test Results  Test results can be stored in their own location (forTest results can be stored in their own location (for documentation) or in a temporary location that is overwrittendocumentation) or in a temporary location that is overwritten each time the test is run (debugging).each time the test is run (debugging). 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 17. How QuickTest Works with ObjectsHow QuickTest Works with Objects What are Object Properties?What are Object Properties? A set of characteristics that defines an object’s appearance, values,A set of characteristics that defines an object’s appearance, values, state and identity in an application.state and identity in an application. – QTP captures these object properties during recording.QTP captures these object properties during recording. – Logical Name – Logical name is a value QuickTest usually takesLogical Name – Logical name is a value QuickTest usually takes from one of the object properties (like TEXT) to refer to thefrom one of the object properties (like TEXT) to refer to the object in the recorded script.object in the recorded script. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 18. Object RepositoryObject Repository  What is Object Repository?What is Object Repository? Object Repository is a location within the test structureObject Repository is a location within the test structure where QuickTest stores object information capturedwhere QuickTest stores object information captured during recording.during recording. The Object Repository can be used to:The Object Repository can be used to: – Rename logical names for readability.Rename logical names for readability. – Add a new object in the repository.Add a new object in the repository. – Configure the object properties used to identify anConfigure the object properties used to identify an object.object. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 19. Object RepositoryObject Repository Object List Object Properties Object Name and Class 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 20. Object RepositoryObject Repository  The Object Repository can be Per Action orThe Object Repository can be Per Action or Shared.Shared.  The shared repository can be used by multipleThe shared repository can be used by multiple actions of the same test or by actions fromactions of the same test or by actions from different tests. Test object properties are pronedifferent tests. Test object properties are prone to frequent updation.to frequent updation.  Per Action object repository is used by one orPer Action object repository is used by one or very few tests.Test object properties arevery few tests.Test object properties are modified less frequentlymodified less frequently.. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 21. Object SpyObject Spy  It can be used to view the properties and valuesIt can be used to view the properties and values of an object in any open application. Click theof an object in any open application. Click the pointing hand to select the object in thepointing hand to select the object in the application. The object’s properties (Test objectapplication. The object’s properties (Test object properties and Run-Time object properties) andproperties and Run-Time object properties) and methods can be identified. The object’smethods can be identified. The object’s hierarchy tree is also displayed. To performhierarchy tree is also displayed. To perform other events such as mouse clicks or windowother events such as mouse clicks or window focus hold the CTRL key.focus hold the CTRL key. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 23. Object IdentificationObject Identification 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 24. SynchronizationSynchronization WHAT IS SYNCHRONIZATION ?WHAT IS SYNCHRONIZATION ? Synchronization refers to adding a step in the script thatSynchronization refers to adding a step in the script that instructs Quick Test to wait for a particular object beforeinstructs Quick Test to wait for a particular object before proceeding to the next step during playback.proceeding to the next step during playback. When do you need SYNCHRONIZATION ?When do you need SYNCHRONIZATION ? When you observe that the application takes a longerWhen you observe that the application takes a longer time to process information sent or respond to a clienttime to process information sent or respond to a client request, add a synchronization step while recording. Forrequest, add a synchronization step while recording. For example:example: - A progress bar to reach 100%.- A progress bar to reach 100%. - A button to become enabled.- A button to become enabled. - A window or pop-up message to open.- A window or pop-up message to open. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 25. How to ADD SynchronizationHow to ADD Synchronization  Synchronization can be added ONLY during recording.Synchronization can be added ONLY during recording.  Identify the object to be synchronized.Identify the object to be synchronized.  Navigate to the window where the object is located.Navigate to the window where the object is located.  Locate the step in the test that corresponds to the object.Locate the step in the test that corresponds to the object.  Start recording and add the synchronization point.Start recording and add the synchronization point. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 26. Two ways to set SynchronizationTwo ways to set Synchronization  Global synchronization value for all Objects.Global synchronization value for all Objects. Instructs Quick Test to wait for all the objects for aInstructs Quick Test to wait for all the objects for a specific amount of time.specific amount of time.  Synchronization of a specific Object.Synchronization of a specific Object. Instructs Quick Test to wait for a specific object only.Instructs Quick Test to wait for a specific object only. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 27. Global synchronization valueGlobal synchronization value for all Objectsfor all Objects  MenuMenu  TestTest  SettingsSettings  RunRun  For every objectFor every object in the test, Quickin the test, Quick Test can wait aTest can wait a maximummaximum number ofnumber of millisecondsmilliseconds specified in thespecified in the settingssettings 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 28. Synchronization of a Specific ObjectSynchronization of a Specific Object  MenuMenu  InsertInsert  StepStep  SynchronizationSynchronization PointPoint  Quick Test shallQuick Test shall pause the test untilpause the test until the object propertythe object property achieves the valueachieves the value specified here (orspecified here (or until the specificuntil the specific timeout amount istimeout amount is exceeded).exceeded).  Quick Test uses oneQuick Test uses one of the object’sof the object’s properties as theproperties as the waiting criteria. E.g.waiting criteria. E.g. ‘Text’ property for‘Text’ property for window, ‘Label’window, ‘Label’ property for buttonsproperty for buttons04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 29. Checkpoints In QTPCheckpoints In QTP  A checkpoint is a verification point thatA checkpoint is a verification point that compares a current value for a specifiedcompares a current value for a specified property with the expected value for thatproperty with the expected value for that property.property. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 30. Types Of CheckpointsTypes Of Checkpoints  Standard CheckpointStandard Checkpoint  Bitmap checkpointBitmap checkpoint  Text checkpointText checkpoint  Text Area checkpointText Area checkpoint  Database checkpointDatabase checkpoint  XML CheckpointXML Checkpoint 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 31. Types and Their UseTypes and Their Use  Standard CheckpointStandard Checkpoint  Bitmap CheckpointBitmap Checkpoint  Checks the propertyChecks the property value of the object invalue of the object in an application oran application or Webpage. It checksWebpage. It checks buttons,Radiobuttons,buttons,Radiobuttons, Comboboxes etcComboboxes etc  Checks the value ofChecks the value of an image in thean image in the application.application. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 32.  Text CheckpointText Checkpoint  Checks whether theChecks whether the text string istext string is displayed in thedisplayed in the appropriate place inappropriate place in your application oryour application or on a Web pageon a Web page 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 33.  Database CheckpointDatabase Checkpoint  XML CheckpointXML Checkpoint  ChecksChecks thethe contentscontents ofof aa databasedatabase accessed by theaccessed by the applicationapplication  Checks the dataChecks the data content of XMLcontent of XML documents in thedocuments in the applicationapplication.. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 34. When to Use CheckpointsWhen to Use Checkpoints  Before creating checkpoints on webBefore creating checkpoints on web objects we have to select web-testobjects we have to select web-test option in ADD-IN Manager.option in ADD-IN Manager.  If the objects developed in HTML weIf the objects developed in HTML we can use Standard Check point.can use Standard Check point.  If the Objects developed in XML weIf the Objects developed in XML we can use XML Check point.can use XML Check point. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 35. How Checkpoints Work -How Checkpoints Work - PlaybackPlayback ScriptScript Expected ResultExpected Result Execute checkpoint Object: Button Logical Name : OK Property: Enabled Value: True Actual = expect ed ? Test Results PASS 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 36. Sample Objects that QuickTest canSample Objects that QuickTest can VerifyVerify WINDOWSWINDOWS WEBWEB WindowWindow BrowserBrowser Edit FieldEdit Field Text AreaText Area Drop down listDrop down list Text LinkText Link Menu commandMenu command ImagesImages Radio ButtonRadio Button Image LinkImage Link CheckboxCheckbox Edit FieldEdit Field Windows ObjectWindows Object Drop down listDrop down list Status BarStatus Bar CheckboxCheckbox Text AreaText Area Radio ButtonRadio Button Tables/ GridsTables/ Grids Web ElementWeb Element 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 37. How to Add a CheckpointHow to Add a Checkpoint 1.Select the object in the Active Screen 2.Right Click on it and Select ‘Insert Standard Checkpoint’ or Menu Insert Checkpoint  Standard Checkpoint 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 38. How to Add a Checkpoint… setHow to Add a Checkpoint… set expected valueexpected value » Do not automatically select the pre-defined list of properties to check. » Scroll down the property list to find the property( or properties) that best meets the test requirement. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 39. Table CheckpointTable Checkpoint 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 41. Database CheckpointDatabase Checkpoint  ChooseChoose Insert > Checkpoint > Database CheckpointInsert > Checkpoint > Database Checkpoint.. The Database Query Wizard opensThe Database Query Wizard opens.. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 42. Database Checkpoint ..contdDatabase Checkpoint ..contd 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 44. How to Add a Checkpoint…How to Add a Checkpoint… Test ResultTest Result 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 45. Output ValuesOutput Values  Output Value is used to retrieve theOutput Value is used to retrieve the current value of any object in thecurrent value of any object in the application and stores it in aapplication and stores it in a specified location.specified location. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 46. NavigationNavigation InsertInsert Output ValueOutput Value Select the type of output value.Select the type of output value. Right click the object in the Active screenRight click the object in the Active screen and select the type of output value to beand select the type of output value to be addedadded 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 47. Types of Output ValuesTypes of Output Values  Standard OutputStandard Output ValuesValues  Text Output ValuesText Output Values  To output theTo output the property values ofproperty values of most objects likemost objects like editbox,button,radieditbox,button,radi o button,listo button,list box,etc.box,etc.  To output textTo output text strings displayed instrings displayed in the applicationthe application 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 48.  Text Area OutputText Area Output ValuesValues  Database OutputDatabase Output ValuesValues  XML Output ValuesXML Output Values  To output textTo output text strings displayedstrings displayed within a defined areawithin a defined area of the applicationof the application  To output theTo output the contents of databasecontents of database cells, based on thecells, based on the results of a query onresults of a query on the database.the database.  To output the valuesTo output the values of XML elements andof XML elements and attributes in XMLattributes in XML documentsdocuments 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 49. How to use Output ValueHow to use Output Value Select the output to be considered Select the Property 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 50. How to use Output Value…How to use Output Value… Contd.Contd. Output Value 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 51. ParameterizationParameterization  A parameter is a variable that isA parameter is a variable that is assigned a value from an externalassigned a value from an external data source at run time. We usedata source at run time. We use parameterization when we want toparameterization when we want to change the value of properties at runchange the value of properties at run time.time. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 52. Types of ParameterizationTypes of Parameterization Parameterization can be done in threeParameterization can be done in three ways using Quick Test.ways using Quick Test.  DatatableDatatable  Environment variablesEnvironment variables  Random numbersRandom numbers 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 53. DataTable ParametersDataTable Parameters  The Test runs once for each line of data inThe Test runs once for each line of data in the DataTable. Each iteration takes athe DataTable. Each iteration takes a different value from the datatable.different value from the datatable. choose the Run tabchoose the Run tab TestTest SettingsSettings Specify an option in the Datatable iterationsSpecify an option in the Datatable iterations frame.frame. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 54. Environment variable ParametersEnvironment variable Parameters  The Environment variables can have Quick TestThe Environment variables can have Quick Test generated values or values supplied from externalgenerated values or values supplied from external files.files. TestTest SettingsSettings EnvironmentEnvironment Choose User-defined from the variable typeChoose User-defined from the variable type ClickClick NewNew to create your own internal variablesto create your own internal variables 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 55. Random number ParametersRandom number Parameters  It enables us to use random numbersIt enables us to use random numbers as values in the test. We can specifyas values in the test. We can specify the range from which the randomthe range from which the random number is generated. By default, thenumber is generated. By default, the random number range is between 0random number range is between 0 and 100.and 100. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 56. How to Parameterize an InputHow to Parameterize an Input ValueValue » Select the step in the Tree View that contains the recorded input value. » Click on the text under Value column. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 57. How to Parameterize an InputHow to Parameterize an Input Value… contd.Value… contd. -Select the source for paramterization. -Select the parameter name. -Select the data sheet to use. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 58. How to Parameterize an InputHow to Parameterize an Input Value…contdValue…contd 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 59. ActionsActions  A test is composed of actions orA test is composed of actions or logical sections. The steps we add tological sections. The steps we add to the test are added within the test’sthe test are added within the test’s actions. By default,actions. By default, each test beginseach test begins with a singlewith a single actionaction..  When we run a test with multipleWhen we run a test with multiple actions, theactions, the Test Results are dividedTest Results are divided by actionsby actions so that we can view theso that we can view the detailed results for each actiondetailed results for each action individually.individually.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 60.  Each action has its own sheet in the DataEach action has its own sheet in the Data Table so that we can insert data thatTable so that we can insert data that applies only to that action.applies only to that action. Actions can be of three types:Actions can be of three types:  Non-re-usableNon-re-usable: Action can be used in the: Action can be used in the local test, only once.local test, only once.  ReusableReusable: Action can be used in the local: Action can be used in the local test, multiple times.test, multiple times. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 61.  ExternalExternal: These are reusable actions: These are reusable actions created in another test. This can be of twocreated in another test. This can be of two types. If atypes. If a call to an external actioncall to an external action isis used the action is read only in the callingused the action is read only in the calling test. But, any existing action can betest. But, any existing action can be inserted as a copy of the original action. Ininserted as a copy of the original action. In this case, we can modify thisthis case, we can modify this copy of thecopy of the external actionexternal action in the calling test.in the calling test. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 62. Actions on Quick Test WindowActions on Quick Test Window (Keyword View):(Keyword View): Actions Tool BarActions Tool Bar contains buttons and acontains buttons and a list of actions, enabling us to view thelist of actions, enabling us to view the details of an individual action or the entiredetails of an individual action or the entire test flow. The test flowtest flow. The test flow displays the overalldisplays the overall flow of the test with all the actions in theflow of the test with all the actions in the test.test. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 64. How to set an Action asHow to set an Action as ReusableReusable 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 65. How to Call a Reusable ActionHow to Call a Reusable Action Insert Call to existing Action 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 66. Recovery Scenario ManagerRecovery Scenario Manager The recovery scenario manager is used to :The recovery scenario manager is used to :  defining the trigger eventdefining the trigger event that interrupts the runthat interrupts the run sessionsession  specifying the recovery operation(s)specifying the recovery operation(s) required torequired to continuecontinue  choosing a post-recoverychoosing a post-recovery test run operationtest run operation  specifying a name and descriptionspecifying a name and description for thefor the recovery scenariorecovery scenario  specifying whether to associate the recoveryspecifying whether to associate the recovery scenario to thescenario to the current test and/or to all newcurrent test and/or to all new tests.tests. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 68. Components of a RecoveryComponents of a Recovery ScenarioScenario The event that interrupts the test run (e.g. a pop up screen or run error) The operation that needs to be performed in order to continue running the test. The instructions on how the test should proceed once the recovery operation is performed. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 69. Steps to add a RecoverySteps to add a Recovery Scenario…contdScenario…contd After clicking on HAND, select the message/ error window. The click on Next.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 70. Steps to add a RecoverySteps to add a Recovery Scenario…contdScenario…contd 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 71. Steps to add a RecoverySteps to add a Recovery Scenario…contdScenario…contd After clicking on HAND, select the OK button in the Error/Message window.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 72. Steps to add a RecoverySteps to add a Recovery Scenario…contdScenario…contd 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 73. Steps to add a RecoverySteps to add a Recovery Scenario…contdScenario…contd Give a name and description to the recovery scenario 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 74. Steps to add a RecoverySteps to add a Recovery Scenario…contdScenario…contd 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 75. DebuggingDebugging  TheThe PausePause option in the Debug menu is used tooption in the Debug menu is used to temporarily suspend the run. To resume runningtemporarily suspend the run. To resume running a paused test, click thea paused test, click the RunRun button.button.  TheThe StepIntoStepInto(F11) option in the Debug menu is(F11) option in the Debug menu is used to run the current line of the test. If theused to run the current line of the test. If the current line of the active test or component callscurrent line of the active test or component calls another action or a function, the calledanother action or a function, the called action/function is displayed in the QuickTestaction/function is displayed in the QuickTest window, and the test or component pauses at thewindow, and the test or component pauses at the first line of the called action/function.first line of the called action/function.  Step OutStep Out ChooseChoose DebugDebug >> Step OutStep Out or click theor click the Step OutStep Out button, or pressbutton, or press SHIFT+F11SHIFT+F11 only afteronly after usingusing Step IntoStep Into to enter a action or a user-to enter a action or a user- defined function.defined function. Step OutStep Out runs to the end of theruns to the end of the called action or user-defined function, thencalled action or user-defined function, then returns to the calling action and pauses the runreturns to the calling action and pauses the run session.session.04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 76. BreakpointBreakpoint TheThe InsertRemove BreakpointInsertRemove Breakpoint(F9) option in the(F9) option in the Debug menu is used to stop a test run at a pre-Debug menu is used to stop a test run at a pre- determined place in a test.determined place in a test. To set a breakpoint:To set a breakpoint: 11 Click a step or a line in the test or componentClick a step or a line in the test or component where you want the run to stop.where you want the run to stop. 22 ChooseChoose Debug > Insert/Remove BreakpointDebug > Insert/Remove Breakpoint,, press F9, or click thepress F9, or click the Insert/RemoveInsert/Remove BreakpointBreakpoint button. The breakpoint symbol isbutton. The breakpoint symbol is displayed in the left margin of the Keyword Viewdisplayed in the left margin of the Keyword View and Expert View.and Expert View. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 77. Debug ViewerDebug Viewer TheThe DebugViewerDebugViewer option in the View menuoption in the View menu is used to view, set, or modify the currentis used to view, set, or modify the current value of objects or variables in thevalue of objects or variables in the test,when a test stops at a breakpoint.test,when a test stops at a breakpoint. To open the Debug Viewer pane:To open the Debug Viewer pane: 11 Run a test or component with one or moreRun a test or component with one or more breakpoints.breakpoints. 22 When it pauses at a breakpoint, chooseWhen it pauses at a breakpoint, choose View > Debug ViewerView > Debug Viewer or click theor click the Debug ViewerDebug Viewer button.button. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 78. Debug ViewerDebug Viewer 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 79. Debug Viewer ..CntdDebug Viewer ..Cntd  Watch Expressions Tab:Watch Expressions Tab: Use the Watch ExpressionsUse the Watch Expressions tab to view the current value of any variable or VBScripttab to view the current value of any variable or VBScript object that you enter in the Watch Expressions table.object that you enter in the Watch Expressions table. Paste or type the name of the object or variable into thePaste or type the name of the object or variable into the NameName column and press ENTER to view the currentcolumn and press ENTER to view the current value in thevalue in the ValueValue column.column.  Variables Tab :Variables Tab :Use the Variables tab to view the currentUse the Variables tab to view the current value of all variables, in the current action or selectedvalue of all variables, in the current action or selected subroutine, identified up to the point where the test orsubroutine, identified up to the point where the test or component stoppedcomponent stopped  Command Tab :Command Tab :Use the Command tab to execute a lineUse the Command tab to execute a line of script in order to set or modify the current value of aof script in order to set or modify the current value of a variable or VBScript object in your test or component.variable or VBScript object in your test or component. 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com
  • 80. ConceptsConceptsThank YouThank You 04/08/1404/08/14 www.ramupalanki.comwww.ramupalanki.com