QUICK TEST PROFESSIONAL 8.2
Mercury Quick Test Professional 8.2 provides the industry’s best solution for functional test and regression test automation - addressing every major software application and environment
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
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
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
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
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
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
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