SlideShare a Scribd company logo
1 of 21
QTP – Recording Types
QTP – Recording Types
There are three types of Recording
• Context Sensitive or Normal Mode
• Analog
• Low Level
Normal Recording
• It is the default mode of recording which takes full advantage of Quick Test Professional's test object
model.
• It recognizes objects in application regardless of their location on the screen.
• It records the objects in your application and the operations performed on them
• Clicking on Record button will enable the Normal recording
• In case if you want to record in other modes then you have first start recording and then switch to
other modes
Normal Recording – Web Apps
To record in QTP
• Go to Automation Tab on the
menu bar
• Click on the Record and Run
settings
Normal Record and Run – Web Settings
• To record on the browser that is
already opened select the first option
– Record and run test on any open
browser
• Click on Ok Button
• Then open Internet Explorer and
perform the actions that has to be
recorded
Normal Record and Run – Web Settings
• Select the second option if you
want QTP to open new
instance of an internet
explorer browser and then
start recording
• Select the URL – for example
http://facebook.com and
Browser Type as Microsoft
Internet Explorer
• Click on Ok Button
Normal Recording
• As shown here Internet
explorer will get
launched and will
navigate to
facebook.com when you
click on record button
• Perform the actions like
providing the First name
and Last Name etc.
• The actions that you
perform will get
recorded by the QTP.
Normal Recording
• As shown here
the QTP records
all the actions
that user
performs on the
browser.
• The Highlighted
code will get
generated while
recording the
events.
Record and Run – Windows App Settings
To record in Windows applications in QTP
• Click on Automation Tab on the menu bar as
shown before
• Select Record and Run settings
• Then navigate to the Windows applications tab
on the Record and Run settings
• If you want to record on already open windows
application then select the first option
• If you want to QTP to open the application and
record then select the second option and click
on add symbol
• A window to select the application will get
launched , as given in next slide
Record and Run – Windows App Settings
• On the Application details window select
the windows application that you want
to automate
• For example : if you want to automate
Sample QTP application – Flight
Reservation
• Click on browse button and Navigate to
the executable .exe file of the Flight
application present in C:program
Files(x86)HPQuick Test
Professionalsamplesflightappflight4a
.exe
• Click Ok
Record and Run – Windows App Settings
• Once the application gets selected
the click OK button on Record and
run setting to Launch the Windows
application and record
• All the events that you perform on
the VB sample application will get
recorded in the same way as the
Web application
Normal Record and Run or Context Sensitive mode
Below are the steps to record the script on the Flight Reservation Application
1. Click on Record button
2. On the Record and Run Settings dialog box, click on Windows Applications and then select the Record
and run only on radio button.
3. Click on the + icon and then on the Application Details dialog box, click on OK button.
4. Click on Apply and then click on OK.
5. Record the script.
6. Click on Stop to stop the recording and then click on Run to execute the script
Ex: Flight Reservation Application
Ex: Flight Reservation Application
Here are the steps to perform the
normal record and run on any
other window application
(Example: Calculator)
1. Click on the Record button
2. On the Record and Run
Settings dialog box, click on
Windows Application and
then select the Record and
run test on any open Window-
based applications
3. Click on Apply and then click
on OK
Recording – Low Level Recording
Low Level
• This mode enables you to record on any object in your application, irrespective of QTP
recognizes the specific object or the specific operation.
• This mode records at the object level and records all run-time objects as either Window or
WinObject test objects.
• It is used when the exact coordinates of the object are important for your tests.
• Used when recording tests in an environment (or on an object) not recognized by QTP
• Low level mode records the x,y coordinates of any clicks
Recording – Low Level Recording
• To select the Low Level recording
• First do all the settings as
mentioned in the Normal recording
• Then click on the record button
• Once the QTP starts recording
switch the recording mode from
Normal to Low Level Recording as
shown here
• QTP will start recording in low-level
once you select Low Level Recording
Recording – Low Level Recording
• As shown below QTP records all the Low level events like capturing the screen coordinates for mouse
clicks and also records keyboard operations
• The Low level recording should be used when the QTP cannot recognize the object
Recording – Low Level Recording
Consider the following guidelines when choosing Analog Recording or Low Level Recording:
 Use analog recording or low-level recording only when normal recording mode does not accurately
record your operation
 Analog recording and low-level recording require more disk space than normal recording mode
 You can switch to either Analog Recording or Low Level Recording in the middle of a recording session
for specific steps. After you record the necessary steps using analog recording or low-level recording,
you can return to normal recording mode for the remainder of your recording session.
Recording – Analog Recording
Analog Recording Mode:
• In analog recording mode, Quick Test Professional records and tracks every movement of the mouse as
you drag the mouse around a screen or window.
• QTP's Analog recording is captured as Tracks and stored in the directory of your test
• It is useful for recording operations that cannot be recorded at the level of an object. Eg., A signature
produced by dragging the mouse
• In Analog mode you can record
• Record Relative to screen
• Relative to window
• When your analog operation are confined to just one window , use relative to window
• When your analog operation involve multiple screens like dragging and dropping an object from one
window to other use the screen option
Analog Recording - Example
Analog recording mode:
1. Click on Record button and then click on Analog recording icon.
2. On the Analog Recording Settings dialog box, do any of the radio buttons.
i. Select the Record relative to the screen radio button, if you perform analog operations on objects
located within more than one window or if the window itself may move while you are recording your
analog operations.
ii. Record relative to the following window: QTP records any mouse movements or keyboard input relative
to the coordinates of the specified window.
 Select the Record relative to the following window radio button.
 Click on the pointing hand icon, click anywhere in the window on which you want to record in Analog
Recording mode.
Note: The title of the window you clicked will be displayed in the window title box.
 Click on Start Analog Record.
Analog Recording - Example
 Draw something on the
paint and the script gets
recorded on the QTP
window in form of Track
Note: Analog recording
mode will be enabled,
only when you click on
the Record button.
Record Other Windows Application - Calc
Navigate to the
location where
Calculator
exists, open the
calculator and
then start the
recording.
Calculator
=>

More Related Content

Viewers also liked

Community Organizing 2010
Community Organizing 2010Community Organizing 2010
Community Organizing 2010sadierynmiller
 
Community organisation
Community organisationCommunity organisation
Community organisationMathew Devasia
 
Primary models of community development
Primary models of community developmentPrimary models of community development
Primary models of community developmentChristian-Paul Stenta
 
Methods of community organization
Methods of community organizationMethods of community organization
Methods of community organizationBhargavi Vaishnavi
 
Community development
Community developmentCommunity development
Community developmentJoseph Berry
 
Community Planning: Principles, Methods and Strategies
Community Planning: Principles, Methods and StrategiesCommunity Planning: Principles, Methods and Strategies
Community Planning: Principles, Methods and StrategiesNick Wates
 
Community organization
Community organizationCommunity organization
Community organizationBimal Antony
 
Community development concept and principles-imran ahmad sajid
Community development concept and principles-imran ahmad sajidCommunity development concept and principles-imran ahmad sajid
Community development concept and principles-imran ahmad sajidDr. Imran A. Sajid
 
Final rural-development-in-india
Final rural-development-in-indiaFinal rural-development-in-india
Final rural-development-in-indiamaheshgautambsr
 
Presentation - What is Social Work?
Presentation - What is Social Work?Presentation - What is Social Work?
Presentation - What is Social Work?ict4devwg
 
The community Development Handbook
The community Development HandbookThe community Development Handbook
The community Development Handbookforeman
 

Viewers also liked (13)

Community Organizing 2010
Community Organizing 2010Community Organizing 2010
Community Organizing 2010
 
Community organisation
Community organisationCommunity organisation
Community organisation
 
Primary models of community development
Primary models of community developmentPrimary models of community development
Primary models of community development
 
Methods of community organization
Methods of community organizationMethods of community organization
Methods of community organization
 
Community development
Community developmentCommunity development
Community development
 
Community Planning: Principles, Methods and Strategies
Community Planning: Principles, Methods and StrategiesCommunity Planning: Principles, Methods and Strategies
Community Planning: Principles, Methods and Strategies
 
Community organization
Community organizationCommunity organization
Community organization
 
Community development concept and principles-imran ahmad sajid
Community development concept and principles-imran ahmad sajidCommunity development concept and principles-imran ahmad sajid
Community development concept and principles-imran ahmad sajid
 
Community Development
Community DevelopmentCommunity Development
Community Development
 
Final rural-development-in-india
Final rural-development-in-indiaFinal rural-development-in-india
Final rural-development-in-india
 
Rural Development
Rural DevelopmentRural Development
Rural Development
 
Presentation - What is Social Work?
Presentation - What is Social Work?Presentation - What is Social Work?
Presentation - What is Social Work?
 
The community Development Handbook
The community Development HandbookThe community Development Handbook
The community Development Handbook
 

Similar to Qtp recording types

Automation Anywhere Training Deck
Automation Anywhere Training DeckAutomation Anywhere Training Deck
Automation Anywhere Training DeckAllison Thompson
 
Qtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.comQtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.comonsoftwaretest
 
QTP Presentation
QTP PresentationQTP Presentation
QTP Presentationamittech3
 
Qtp 9.2 tutorials
Qtp 9.2 tutorialsQtp 9.2 tutorials
Qtp 9.2 tutorialsmedsherb
 
QTP with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programmingKuldeep Sharma
 
Qtp with descriptive programming
Qtp with descriptive programmingQtp with descriptive programming
Qtp with descriptive programmingmedsherb
 
Qtp With Descriptive Programming
Qtp With Descriptive ProgrammingQtp With Descriptive Programming
Qtp With Descriptive ProgrammingKuldeep Sharma
 
Win runner testing tool
Win runner testing toolWin runner testing tool
Win runner testing toolmansirajpara
 
testproject-210523182343.pdf
testproject-210523182343.pdftestproject-210523182343.pdf
testproject-210523182343.pdfVishalPatil105290
 
Introduction to "TestProject" tool and first testcase with TestProject
Introduction to "TestProject" tool and first testcase with TestProjectIntroduction to "TestProject" tool and first testcase with TestProject
Introduction to "TestProject" tool and first testcase with TestProjectAdvait Kshirsagar
 
360 view on Load and Performance Testing
360 view on Load and Performance Testing360 view on Load and Performance Testing
360 view on Load and Performance TestingMaheshShri1
 
WCC COMM 106 video logging LUTHER
WCC COMM 106 video logging LUTHERWCC COMM 106 video logging LUTHER
WCC COMM 106 video logging LUTHERprofluther
 

Similar to Qtp recording types (20)

Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
 
Automation Anywhere Training Deck
Automation Anywhere Training DeckAutomation Anywhere Training Deck
Automation Anywhere Training Deck
 
Qtp tutorials
Qtp tutorialsQtp tutorials
Qtp tutorials
 
Qtp Tutorials
Qtp TutorialsQtp Tutorials
Qtp Tutorials
 
Qtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.comQtp 9.5 Tutorials by www.onsoftwaretest.com
Qtp 9.5 Tutorials by www.onsoftwaretest.com
 
QTP Presentation
QTP PresentationQTP Presentation
QTP Presentation
 
Qtp Tutorials
Qtp TutorialsQtp Tutorials
Qtp Tutorials
 
Steps Recorder.pptx
Steps Recorder.pptxSteps Recorder.pptx
Steps Recorder.pptx
 
1.qtp basics
1.qtp basics1.qtp basics
1.qtp basics
 
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 with Descriptive programming
QTP with Descriptive programmingQTP with Descriptive programming
QTP with Descriptive programming
 
Qtp with descriptive programming
Qtp with descriptive programmingQtp with descriptive programming
Qtp with descriptive programming
 
Qtp With Descriptive Programming
Qtp With Descriptive ProgrammingQtp With Descriptive Programming
Qtp With Descriptive Programming
 
Qtp
QtpQtp
Qtp
 
Win runner testing tool
Win runner testing toolWin runner testing tool
Win runner testing tool
 
testproject-210523182343.pdf
testproject-210523182343.pdftestproject-210523182343.pdf
testproject-210523182343.pdf
 
Introduction to "TestProject" tool and first testcase with TestProject
Introduction to "TestProject" tool and first testcase with TestProjectIntroduction to "TestProject" tool and first testcase with TestProject
Introduction to "TestProject" tool and first testcase with TestProject
 
360 view on Load and Performance Testing
360 view on Load and Performance Testing360 view on Load and Performance Testing
360 view on Load and Performance Testing
 
WCC COMM 106 video logging LUTHER
WCC COMM 106 video logging LUTHERWCC COMM 106 video logging LUTHER
WCC COMM 106 video logging LUTHER
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 

Qtp recording types

  • 2. QTP – Recording Types There are three types of Recording • Context Sensitive or Normal Mode • Analog • Low Level
  • 3. Normal Recording • It is the default mode of recording which takes full advantage of Quick Test Professional's test object model. • It recognizes objects in application regardless of their location on the screen. • It records the objects in your application and the operations performed on them • Clicking on Record button will enable the Normal recording • In case if you want to record in other modes then you have first start recording and then switch to other modes
  • 4. Normal Recording – Web Apps To record in QTP • Go to Automation Tab on the menu bar • Click on the Record and Run settings
  • 5. Normal Record and Run – Web Settings • To record on the browser that is already opened select the first option – Record and run test on any open browser • Click on Ok Button • Then open Internet Explorer and perform the actions that has to be recorded
  • 6. Normal Record and Run – Web Settings • Select the second option if you want QTP to open new instance of an internet explorer browser and then start recording • Select the URL – for example http://facebook.com and Browser Type as Microsoft Internet Explorer • Click on Ok Button
  • 7. Normal Recording • As shown here Internet explorer will get launched and will navigate to facebook.com when you click on record button • Perform the actions like providing the First name and Last Name etc. • The actions that you perform will get recorded by the QTP.
  • 8. Normal Recording • As shown here the QTP records all the actions that user performs on the browser. • The Highlighted code will get generated while recording the events.
  • 9. Record and Run – Windows App Settings To record in Windows applications in QTP • Click on Automation Tab on the menu bar as shown before • Select Record and Run settings • Then navigate to the Windows applications tab on the Record and Run settings • If you want to record on already open windows application then select the first option • If you want to QTP to open the application and record then select the second option and click on add symbol • A window to select the application will get launched , as given in next slide
  • 10. Record and Run – Windows App Settings • On the Application details window select the windows application that you want to automate • For example : if you want to automate Sample QTP application – Flight Reservation • Click on browse button and Navigate to the executable .exe file of the Flight application present in C:program Files(x86)HPQuick Test Professionalsamplesflightappflight4a .exe • Click Ok
  • 11. Record and Run – Windows App Settings • Once the application gets selected the click OK button on Record and run setting to Launch the Windows application and record • All the events that you perform on the VB sample application will get recorded in the same way as the Web application
  • 12. Normal Record and Run or Context Sensitive mode Below are the steps to record the script on the Flight Reservation Application 1. Click on Record button 2. On the Record and Run Settings dialog box, click on Windows Applications and then select the Record and run only on radio button. 3. Click on the + icon and then on the Application Details dialog box, click on OK button. 4. Click on Apply and then click on OK. 5. Record the script. 6. Click on Stop to stop the recording and then click on Run to execute the script Ex: Flight Reservation Application
  • 13. Ex: Flight Reservation Application Here are the steps to perform the normal record and run on any other window application (Example: Calculator) 1. Click on the Record button 2. On the Record and Run Settings dialog box, click on Windows Application and then select the Record and run test on any open Window- based applications 3. Click on Apply and then click on OK
  • 14. Recording – Low Level Recording Low Level • This mode enables you to record on any object in your application, irrespective of QTP recognizes the specific object or the specific operation. • This mode records at the object level and records all run-time objects as either Window or WinObject test objects. • It is used when the exact coordinates of the object are important for your tests. • Used when recording tests in an environment (or on an object) not recognized by QTP • Low level mode records the x,y coordinates of any clicks
  • 15. Recording – Low Level Recording • To select the Low Level recording • First do all the settings as mentioned in the Normal recording • Then click on the record button • Once the QTP starts recording switch the recording mode from Normal to Low Level Recording as shown here • QTP will start recording in low-level once you select Low Level Recording
  • 16. Recording – Low Level Recording • As shown below QTP records all the Low level events like capturing the screen coordinates for mouse clicks and also records keyboard operations • The Low level recording should be used when the QTP cannot recognize the object
  • 17. Recording – Low Level Recording Consider the following guidelines when choosing Analog Recording or Low Level Recording:  Use analog recording or low-level recording only when normal recording mode does not accurately record your operation  Analog recording and low-level recording require more disk space than normal recording mode  You can switch to either Analog Recording or Low Level Recording in the middle of a recording session for specific steps. After you record the necessary steps using analog recording or low-level recording, you can return to normal recording mode for the remainder of your recording session.
  • 18. Recording – Analog Recording Analog Recording Mode: • In analog recording mode, Quick Test Professional records and tracks every movement of the mouse as you drag the mouse around a screen or window. • QTP's Analog recording is captured as Tracks and stored in the directory of your test • It is useful for recording operations that cannot be recorded at the level of an object. Eg., A signature produced by dragging the mouse • In Analog mode you can record • Record Relative to screen • Relative to window • When your analog operation are confined to just one window , use relative to window • When your analog operation involve multiple screens like dragging and dropping an object from one window to other use the screen option
  • 19. Analog Recording - Example Analog recording mode: 1. Click on Record button and then click on Analog recording icon. 2. On the Analog Recording Settings dialog box, do any of the radio buttons. i. Select the Record relative to the screen radio button, if you perform analog operations on objects located within more than one window or if the window itself may move while you are recording your analog operations. ii. Record relative to the following window: QTP records any mouse movements or keyboard input relative to the coordinates of the specified window.  Select the Record relative to the following window radio button.  Click on the pointing hand icon, click anywhere in the window on which you want to record in Analog Recording mode. Note: The title of the window you clicked will be displayed in the window title box.  Click on Start Analog Record.
  • 20. Analog Recording - Example  Draw something on the paint and the script gets recorded on the QTP window in form of Track Note: Analog recording mode will be enabled, only when you click on the Record button.
  • 21. Record Other Windows Application - Calc Navigate to the location where Calculator exists, open the calculator and then start the recording. Calculator =>