SlideShare a Scribd company logo
Copyright 2015 IT Professional Academy 1
Automation (QTP) Testing
Course
DAY - 3
Copyright 2015 IT Professional Academy 2
Topics
Record & Play back
i. Recording Process
ii. Playback
iii. Analyze the test result
iv. QTP Test folder structure
Object Identification
i. Environment
ii. Object Classes
iii. Properties
a. Mandatory
b. Assistive
c. Ordinal Identifier
d. Enable Smart Identification
Recording modes
a) Standard recording
i. Normal or Default
ii. Low level Recording
iii. Analog
Copyright 2015 IT Professional Academy 3
Record and Play Back
1. Recording Process
2. Playback
3. Check Point
4. Analyze Test Result
5. QTP Test Folder Structure
Demonstration with Details: Record and Playback
Open Browser and Login in to Para bank Website.
Copyright 2015 IT Professional Academy 4
Object Identification
1. Environment:
2. Object Classes
3. Object Properties: Mandatory, Assistive
4. Ordinal Identifier
5. Smart Identification
Copyright 2015 IT Professional Academy 5
Environment
Copyright 2015 IT Professional Academy 6
Object Classes and Properties
Copyright 2015 IT Professional Academy 7
Ordinal Identifier
Ordinal Identifier: Creation Time, Index and Location
1. This property is present for all the objects and its primary
objective is to identify the Object Correctly, if objects with
same description appears.
2. If two object with same description is present in the page,
QTP assigns Ordinal identifier to each object based on the
appearance in the HTML document.
3. It is then used to identify the Objects at run time.
4. Its not very stable and Ordinal Identifiers can fail to identify
correct object if number of “same description object” changes
every time.
5. Index, Creation Time and Location are types of Ordinal
Identifier and all starts from 0.
Copyright 2015 IT Professional Academy 8
CreationTime & Index
•For Browser object, there is additional Ordinal Identifier i.e.
CreationTime; Browser which is Opened first will have Creation
Time as 0, and Subsequent Browser will have creation Time as 1
and so forth.
•Same holds true for Index
Note: Live Example.:
http://www.itprofessionalacademy.in/demo_site/multiple_text_box/index.html
Copyright 2015 IT Professional Academy 9
Ordinal Identifier: Location
Identifying an Object Using the Location Property
While learning an object, QuickTest can assign a value to the test
object's Location property to uniquely identify the object. The
value is based on the order in which the object appears within
the window, frame, or dialog box, in relation to other objects
with identical properties. The first occurrence of the object is 0.
Values are assigned in columns from top to bottom, and left to
right.
Copyright 2015 IT Professional Academy 10
Smart Identification
1. When QuickTest uses the learned description to identify an
object, it searches for an object that matches all of the property
values in the description. In most cases, this description is the
simplest way to identify the object, and, unless the main
properties of the object change, this method will work.
2. If QuickTest is unable to find any object that matches the
learned object description, or if it finds more than one object
that fits the description, then QuickTest ignores the learned
description, and uses the Smart Identification mechanism to try
to identify the object.
3. While the Smart Identification mechanism is more complex, it is
more flexible. Therefore, if configured logically, a Smart
Identification definition can probably help QuickTest identify an
object, if it is present, even when the learned description fails.
Copyright 2015 IT Professional Academy 11
Smart Identification: Summary
1. Smart Identification is an QTP mechanism for Object
Identification.
2. Its an effort by QTP to Identify the object when all the description
on Test Object fails to map Run-Time Object. i.e. It is invoked if
QTP fails to find the Object correctly at run-time.
3. Example: Assume Browser has title property as “xyz” and
RunTime Browser Object property is “abc”.
Now, if Smart identification is enabled, QTP will still identify the
Object and move further. However, it will mention in the report
as a warning that it has found the object using Smart
Identification, which might not be correct.
4. It is not recommended to use as we want our test to rather fail if
some object is not found, then to get wrong results later.
5. It will only get invoked if its enabled. Two ways to enable or
disable it.
Copyright 2015 IT Professional Academy 12
Smart Identification: Settings
Copyright 2015 IT Professional Academy 13
Smart Identification: Each Object
Copyright 2015 IT Professional Academy 14
Smart Identification: Configuration
Copyright 2015 IT Professional Academy 15
Smart Identification: Configuration
The Smart Identification mechanism uses two types of
properties:
Base Filter Properties. The most fundamental properties
of a particular test object class; those whose values cannot
be changed without changing the essence of the original
object. For example, if a Web link's tag was changed from
<A> to any other value, you could no longer call it the same
object.
Optional Filter Properties. Other properties that can
help identify objects of a particular class. These properties
are unlikely to change on a regular basis, but can be
ignored if they are no longer applicable.
Copyright 2015 IT Professional Academy 16
Smart Identification: Internal Function
Understanding the Smart Identification Process
1. If QuickTest activates the Smart Identification mechanism during a run
session (because it was unable to identify an object based on its learned
description), it follows the following process to identify the object:
2. QuickTest "forgets" the learned test object description and creates a new
object candidate list containing the objects (within the object's parent
object) that match all of the properties defined in the Base Filter Properties
list.
3. QuickTest filters out any object in the object candidate list that does not
match the first property listed in the Optional Filter Properties list. The
remaining objects become the new object candidate list.
4. QuickTest evaluates the new object candidate list:
5. If the new object candidate list still has more than one object, QuickTest
uses the new (smaller) object candidate list to repeat step 2 for the next
optional filter property in the list.
6. If the new object candidate list is empty, QuickTest ignores this optional
filter property, returns to the previous object candidate list, and repeats
step 2 for the next optional filter property in the list.
7. If the object candidate list contains exactly one object, then QuickTest
concludes that it has identified the object and performs the statement
containing the object.
Copyright 2015 IT Professional Academy 17
Smart Identification: Internal Function
5. QuickTest continues the process described in steps 2 and 3 until it either
identifies one object, or runs out of optional filter properties to use.
6. If, after completing the Smart Identification elimination process,
QuickTest still cannot identify the object, then QuickTest uses the learned
description plus the ordinal identifier to identify the object.
7. If the combined learned description and ordinal identifier are not
sufficient to identify the object, then QuickTest stops the run session and
displays a Run Error message.
Copyright 2015 IT Professional Academy 18
Recording Modes: Normal
Choosing the Recording Mode:
1. Normal
2. Analog
3. Low level
Normal recording mode records the objects in your
application and the operations performed on them. This
mode is the default and takes full advantage of the
QuickTest test object model, recognizing the objects in
your application regardless of their location on the screen.
When working with specific types of objects or operations,
however, you may want to choose from the following,
alternative recording modes:
Copyright 2015 IT Professional Academy 19
Recording Modes: Analog
Analog Recording. Enables you to record the exact
mouse and keyboard operations you perform in relation to
either the screen or the application window. In this
recording mode, QuickTest records and tracks every
movement of the mouse as you drag the mouse around a
screen or window.
This mode is useful for recording operations that cannot
be recorded at the level of an object, for example,
recording a signature produced by dragging the mouse.
Note: You cannot edit Analog Recording steps from
within QuickTest.
Copyright 2015 IT Professional Academy 20
Recording Modes: Low-Level
Low Level Recording. Enables you to record on any
object in your application, whether or not QuickTest
recognizes the specific object or the specific operation.
This mode records at the object level and records all run-
time objects as Window or WinObject test objects. Use
low-level recording for recording in an environment or on
an object not recognized by QuickTest. You can also use
low-level recording if the exact coordinates of the object
are important for your test
Copyright 2015 IT Professional Academy 21
Hands On After Class
1. Open URL: http://www.parabank.parasoft.com
2. Record a Script to Create New User using Register
Link.
3. Check the OR and analyze its properties.
4. Play Back and Analyze the Results.
5. Create Another Script.
6. Add all the Objects manually in the Local OR.
7. Set Properties required.
8. Disable Smart Identifications.
9. Write Script and Run it.
10. Set Index in the Practice Form. URL:
http://www.itprofessionalacademy.in/demo_site/multi
ple_text_box/index.html
Copyright 2015 IT Professional Academy 22
Thank You

More Related Content

What's hot

Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
sunny.deb
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
Ramu Palanki
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
Ramu Palanki
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
Ramu Palanki
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
tjdhans
 
Qtp - Introduction to automation basics
Qtp -  Introduction to automation basicsQtp -  Introduction to automation basics
Qtp - Introduction to automation basics
Vibrant Technologies & Computers
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
tjdhans
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
yoummr
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
Azhar Satti
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
Prashanth BS
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
Pravinsinh
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
mehramit
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
Vishwaprakash Sahoo
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
sasidhar
 
Unit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - KenyaUnit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - Kenya
Erick M'bwana
 
Unit Testing Full@
Unit Testing Full@Unit Testing Full@
Unit Testing Full@
Alex Borsuk
 

What's hot (18)

Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Hp Quick Test Professional
Hp Quick Test ProfessionalHp Quick Test Professional
Hp Quick Test Professional
 
Interview questions in qtp
Interview questions in qtpInterview questions in qtp
Interview questions in qtp
 
Qtp questions and answers
Qtp questions and answersQtp questions and answers
Qtp questions and answers
 
Copy of qtp presentation
Copy of qtp presentationCopy of qtp presentation
Copy of qtp presentation
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
QTP Slides Presentation.
QTP Slides Presentation.QTP Slides Presentation.
QTP Slides Presentation.
 
Qtp - Introduction to automation basics
Qtp -  Introduction to automation basicsQtp -  Introduction to automation basics
Qtp - Introduction to automation basics
 
First QTP Tutorial
First QTP TutorialFirst QTP Tutorial
First QTP Tutorial
 
Pro smartbooksquestions
Pro smartbooksquestionsPro smartbooksquestions
Pro smartbooksquestions
 
Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
 
Qtp day 1
Qtp day 1Qtp day 1
Qtp day 1
 
QTP Training by INFOTECH
QTP Training by INFOTECHQTP Training by INFOTECH
QTP Training by INFOTECH
 
Qtp Training
Qtp TrainingQtp Training
Qtp Training
 
Qtp certification training_material
Qtp certification training_materialQtp certification training_material
Qtp certification training_material
 
Qtp 92 Tutorial
Qtp 92 TutorialQtp 92 Tutorial
Qtp 92 Tutorial
 
Unit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - KenyaUnit testing and mocking in Python - PyCon 2018 - Kenya
Unit testing and mocking in Python - PyCon 2018 - Kenya
 
Unit Testing Full@
Unit Testing Full@Unit Testing Full@
Unit Testing Full@
 

Viewers also liked

QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1
Akash Tyagi
 
Qtp vb scripting
Qtp vb scriptingQtp vb scripting
Qtp vb scripting
Bharath Sannadi
 
Qtp check points
Qtp check pointsQtp check points
Qtp check points
Bharath Sannadi
 
Qtp object repository
Qtp object repositoryQtp object repository
Qtp object repository
Bharath Sannadi
 
Estimación esfuerzo de prueba maestro v1.0
Estimación esfuerzo de prueba maestro v1.0Estimación esfuerzo de prueba maestro v1.0
Estimación esfuerzo de prueba maestro v1.0
testingbaires
 
Qtp recording types
Qtp recording typesQtp recording types
Qtp recording types
Bharath Sannadi
 

Viewers also liked (6)

QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1QTP Automation Testing Tutorial 1
QTP Automation Testing Tutorial 1
 
Qtp vb scripting
Qtp vb scriptingQtp vb scripting
Qtp vb scripting
 
Qtp check points
Qtp check pointsQtp check points
Qtp check points
 
Qtp object repository
Qtp object repositoryQtp object repository
Qtp object repository
 
Estimación esfuerzo de prueba maestro v1.0
Estimación esfuerzo de prueba maestro v1.0Estimación esfuerzo de prueba maestro v1.0
Estimación esfuerzo de prueba maestro v1.0
 
Qtp recording types
Qtp recording typesQtp recording types
Qtp recording types
 

Similar to QTP Automation Testing Tutorial 3

Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
Ramu Palanki
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
Ramu Palanki
 
Solmar QTP0100 Sample
Solmar QTP0100 SampleSolmar QTP0100 Sample
Solmar QTP0100 Sample
Yaron Assa
 
Qtp Mgl Presentation
Qtp Mgl PresentationQtp Mgl Presentation
Qtp Mgl Presentation
techgajanan
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTP
BugRaptors
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
Ramu Palanki
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
Ramu Palanki
 
Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questions
kspanigra
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
Ramu Palanki
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
VGlobal Govi
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
VGlobal Govi
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
medsherb
 
Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
Siddhartha Parida
 
Object Repository
Object RepositoryObject Repository
Object Repository
G.C Reddy
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.ppt
Kalyan Chakravarthy
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
Prashanth BS
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
mehramit
 
Presentation-Session3
Presentation-Session3Presentation-Session3
Presentation-Session3
Arsala Dilshad
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
pingkapil
 
Rft courseware
Rft coursewareRft courseware
Rft courseware
prakashkanamarlapudi
 

Similar to QTP Automation Testing Tutorial 3 (20)

Qtp basic stuff
Qtp basic stuffQtp basic stuff
Qtp basic stuff
 
Qtp stuff
Qtp stuffQtp stuff
Qtp stuff
 
Solmar QTP0100 Sample
Solmar QTP0100 SampleSolmar QTP0100 Sample
Solmar QTP0100 Sample
 
Qtp Mgl Presentation
Qtp Mgl PresentationQtp Mgl Presentation
Qtp Mgl Presentation
 
Automation Tool QTP
Automation Tool  QTPAutomation Tool  QTP
Automation Tool QTP
 
Qtp interview questions3
Qtp interview questions3Qtp interview questions3
Qtp interview questions3
 
Qtp interview questions
Qtp interview questionsQtp interview questions
Qtp interview questions
 
Qtp Interview Questions
Qtp Interview QuestionsQtp Interview Questions
Qtp Interview Questions
 
Qtp material for beginners
Qtp material for beginnersQtp material for beginners
Qtp material for beginners
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
 
Qtp 8.0 basic
Qtp 8.0 basicQtp 8.0 basic
Qtp 8.0 basic
 
Qtp 80 Basics3561
Qtp 80 Basics3561Qtp 80 Basics3561
Qtp 80 Basics3561
 
Object Repository
Object RepositoryObject Repository
Object Repository
 
QTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.pptQTP 10.0_Kalyan Chakravarthy.ppt
QTP 10.0_Kalyan Chakravarthy.ppt
 
Qtp day 2
Qtp day 2Qtp day 2
Qtp day 2
 
Qtp Basics
Qtp BasicsQtp Basics
Qtp Basics
 
Presentation-Session3
Presentation-Session3Presentation-Session3
Presentation-Session3
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
 
Rft courseware
Rft coursewareRft courseware
Rft courseware
 

Recently uploaded

BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
RidwanHassanYusuf
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Vivekanand Anglo Vedic Academy
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
Nguyen Thanh Tu Collection
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
JomonJoseph58
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
nitinpv4ai
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
Steve Thomason
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
Nicholas Montgomery
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 

Recently uploaded (20)

BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptxBIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
BIOLOGY NATIONAL EXAMINATION COUNCIL (NECO) 2024 PRACTICAL MANUAL.pptx
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDFLifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
Lifelines of National Economy chapter for Class 10 STUDY MATERIAL PDF
 
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
BÀI TẬP DẠY THÊM TIẾNG ANH LỚP 7 CẢ NĂM FRIENDS PLUS SÁCH CHÂN TRỜI SÁNG TẠO ...
 
Stack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 MicroprocessorStack Memory Organization of 8086 Microprocessor
Stack Memory Organization of 8086 Microprocessor
 
Bonku-Babus-Friend by Sathyajith Ray (9)
Bonku-Babus-Friend by Sathyajith Ray  (9)Bonku-Babus-Friend by Sathyajith Ray  (9)
Bonku-Babus-Friend by Sathyajith Ray (9)
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
A Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two HeartsA Visual Guide to 1 Samuel | A Tale of Two Hearts
A Visual Guide to 1 Samuel | A Tale of Two Hearts
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
Film vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movieFilm vocab for eal 3 students: Australia the movie
Film vocab for eal 3 students: Australia the movie
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 

QTP Automation Testing Tutorial 3

  • 1. Copyright 2015 IT Professional Academy 1 Automation (QTP) Testing Course DAY - 3
  • 2. Copyright 2015 IT Professional Academy 2 Topics Record & Play back i. Recording Process ii. Playback iii. Analyze the test result iv. QTP Test folder structure Object Identification i. Environment ii. Object Classes iii. Properties a. Mandatory b. Assistive c. Ordinal Identifier d. Enable Smart Identification Recording modes a) Standard recording i. Normal or Default ii. Low level Recording iii. Analog
  • 3. Copyright 2015 IT Professional Academy 3 Record and Play Back 1. Recording Process 2. Playback 3. Check Point 4. Analyze Test Result 5. QTP Test Folder Structure Demonstration with Details: Record and Playback Open Browser and Login in to Para bank Website.
  • 4. Copyright 2015 IT Professional Academy 4 Object Identification 1. Environment: 2. Object Classes 3. Object Properties: Mandatory, Assistive 4. Ordinal Identifier 5. Smart Identification
  • 5. Copyright 2015 IT Professional Academy 5 Environment
  • 6. Copyright 2015 IT Professional Academy 6 Object Classes and Properties
  • 7. Copyright 2015 IT Professional Academy 7 Ordinal Identifier Ordinal Identifier: Creation Time, Index and Location 1. This property is present for all the objects and its primary objective is to identify the Object Correctly, if objects with same description appears. 2. If two object with same description is present in the page, QTP assigns Ordinal identifier to each object based on the appearance in the HTML document. 3. It is then used to identify the Objects at run time. 4. Its not very stable and Ordinal Identifiers can fail to identify correct object if number of “same description object” changes every time. 5. Index, Creation Time and Location are types of Ordinal Identifier and all starts from 0.
  • 8. Copyright 2015 IT Professional Academy 8 CreationTime & Index •For Browser object, there is additional Ordinal Identifier i.e. CreationTime; Browser which is Opened first will have Creation Time as 0, and Subsequent Browser will have creation Time as 1 and so forth. •Same holds true for Index Note: Live Example.: http://www.itprofessionalacademy.in/demo_site/multiple_text_box/index.html
  • 9. Copyright 2015 IT Professional Academy 9 Ordinal Identifier: Location Identifying an Object Using the Location Property While learning an object, QuickTest can assign a value to the test object's Location property to uniquely identify the object. The value is based on the order in which the object appears within the window, frame, or dialog box, in relation to other objects with identical properties. The first occurrence of the object is 0. Values are assigned in columns from top to bottom, and left to right.
  • 10. Copyright 2015 IT Professional Academy 10 Smart Identification 1. When QuickTest uses the learned description to identify an object, it searches for an object that matches all of the property values in the description. In most cases, this description is the simplest way to identify the object, and, unless the main properties of the object change, this method will work. 2. If QuickTest is unable to find any object that matches the learned object description, or if it finds more than one object that fits the description, then QuickTest ignores the learned description, and uses the Smart Identification mechanism to try to identify the object. 3. While the Smart Identification mechanism is more complex, it is more flexible. Therefore, if configured logically, a Smart Identification definition can probably help QuickTest identify an object, if it is present, even when the learned description fails.
  • 11. Copyright 2015 IT Professional Academy 11 Smart Identification: Summary 1. Smart Identification is an QTP mechanism for Object Identification. 2. Its an effort by QTP to Identify the object when all the description on Test Object fails to map Run-Time Object. i.e. It is invoked if QTP fails to find the Object correctly at run-time. 3. Example: Assume Browser has title property as “xyz” and RunTime Browser Object property is “abc”. Now, if Smart identification is enabled, QTP will still identify the Object and move further. However, it will mention in the report as a warning that it has found the object using Smart Identification, which might not be correct. 4. It is not recommended to use as we want our test to rather fail if some object is not found, then to get wrong results later. 5. It will only get invoked if its enabled. Two ways to enable or disable it.
  • 12. Copyright 2015 IT Professional Academy 12 Smart Identification: Settings
  • 13. Copyright 2015 IT Professional Academy 13 Smart Identification: Each Object
  • 14. Copyright 2015 IT Professional Academy 14 Smart Identification: Configuration
  • 15. Copyright 2015 IT Professional Academy 15 Smart Identification: Configuration The Smart Identification mechanism uses two types of properties: Base Filter Properties. The most fundamental properties of a particular test object class; those whose values cannot be changed without changing the essence of the original object. For example, if a Web link's tag was changed from <A> to any other value, you could no longer call it the same object. Optional Filter Properties. Other properties that can help identify objects of a particular class. These properties are unlikely to change on a regular basis, but can be ignored if they are no longer applicable.
  • 16. Copyright 2015 IT Professional Academy 16 Smart Identification: Internal Function Understanding the Smart Identification Process 1. If QuickTest activates the Smart Identification mechanism during a run session (because it was unable to identify an object based on its learned description), it follows the following process to identify the object: 2. QuickTest "forgets" the learned test object description and creates a new object candidate list containing the objects (within the object's parent object) that match all of the properties defined in the Base Filter Properties list. 3. QuickTest filters out any object in the object candidate list that does not match the first property listed in the Optional Filter Properties list. The remaining objects become the new object candidate list. 4. QuickTest evaluates the new object candidate list: 5. If the new object candidate list still has more than one object, QuickTest uses the new (smaller) object candidate list to repeat step 2 for the next optional filter property in the list. 6. If the new object candidate list is empty, QuickTest ignores this optional filter property, returns to the previous object candidate list, and repeats step 2 for the next optional filter property in the list. 7. If the object candidate list contains exactly one object, then QuickTest concludes that it has identified the object and performs the statement containing the object.
  • 17. Copyright 2015 IT Professional Academy 17 Smart Identification: Internal Function 5. QuickTest continues the process described in steps 2 and 3 until it either identifies one object, or runs out of optional filter properties to use. 6. If, after completing the Smart Identification elimination process, QuickTest still cannot identify the object, then QuickTest uses the learned description plus the ordinal identifier to identify the object. 7. If the combined learned description and ordinal identifier are not sufficient to identify the object, then QuickTest stops the run session and displays a Run Error message.
  • 18. Copyright 2015 IT Professional Academy 18 Recording Modes: Normal Choosing the Recording Mode: 1. Normal 2. Analog 3. Low level Normal recording mode records the objects in your application and the operations performed on them. This mode is the default and takes full advantage of the QuickTest test object model, recognizing the objects in your application regardless of their location on the screen. When working with specific types of objects or operations, however, you may want to choose from the following, alternative recording modes:
  • 19. Copyright 2015 IT Professional Academy 19 Recording Modes: Analog Analog Recording. Enables you to record the exact mouse and keyboard operations you perform in relation to either the screen or the application window. In this recording mode, QuickTest records and tracks every movement of the mouse as you drag the mouse around a screen or window. This mode is useful for recording operations that cannot be recorded at the level of an object, for example, recording a signature produced by dragging the mouse. Note: You cannot edit Analog Recording steps from within QuickTest.
  • 20. Copyright 2015 IT Professional Academy 20 Recording Modes: Low-Level Low Level Recording. Enables you to record on any object in your application, whether or not QuickTest recognizes the specific object or the specific operation. This mode records at the object level and records all run- time objects as Window or WinObject test objects. Use low-level recording for recording in an environment or on an object not recognized by QuickTest. You can also use low-level recording if the exact coordinates of the object are important for your test
  • 21. Copyright 2015 IT Professional Academy 21 Hands On After Class 1. Open URL: http://www.parabank.parasoft.com 2. Record a Script to Create New User using Register Link. 3. Check the OR and analyze its properties. 4. Play Back and Analyze the Results. 5. Create Another Script. 6. Add all the Objects manually in the Local OR. 7. Set Properties required. 8. Disable Smart Identifications. 9. Write Script and Run it. 10. Set Index in the Practice Form. URL: http://www.itprofessionalacademy.in/demo_site/multi ple_text_box/index.html
  • 22. Copyright 2015 IT Professional Academy 22 Thank You

Editor's Notes

  1. Live Example: