SlideShare a Scribd company logo
Working With Dynamic Content



Working With Dynamic Content – Runtime
Identification of Objects



Working with Dynamic Content
•
•
•



Objects Dynamically Changing Objects
To check that a child window exists (or does not exist)
QuickTest records dynamically generated URLs and
Web pages

Session Wrap-Up
pgorantla.blogspot.com
Working With Dynamic Content



QuickTest identifies objects in your application based on a set of test object
properties.



QuickTest stores the object data it learns in the object repository.



If one or more of the property values of an object in the application differ
from the property values QuickTest uses to identify the object, a test or
component may fail.



When the property values of objects in the application change, modify the
corresponding test object property values so that it can continue to use the
existing tests or components.

pgorantla.blogspot.com
Working With Dynamic Content



Methods for modifying test object properties :
 Manually change a test object property value to match a new static
property of an object in your application.
 Use the SetTOProperty method to modify test object properties

during a run session without changing the property values in the
object repository.
Can modify the properties of the temporary version of the object
during the run session without affecting the permanent values in
the object repository by adding a SetTOProperty statement in the
Expert View.
Syntax

Object(description).SetTOProperty Property, Value
pgorantla.blogspot.com
Working With Dynamic Content

 Can modify the set of properties that QuickTest uses to identify the
object, so that it will be able to identify an object even when some of its
properties change. You can use configure mandatory and assistive
properties for a test object class.
 Can parameterize a test object property with a Data Table parameter if
you expect the property value to change in a predictable way with each
iteration of the test.
 Can use regular expressions to identify an object based on conditions
or patterns you define.
 Can make the most of these modifications in the Object Properties
dialog box or in the Object Repository dialog box.
 Can save your objects either in a shared object repository or in action
object repository. In shared object repository mode, you can use one
object repository file for multiple tests or components. In object
repository per-action mode, QuickTest automatically creates an object
repository file for each action in your test. Object repository per-action
mode is not available for components.
pgorantla.blogspot.com
Working With Dynamic Content

•

Problem:
• Suppose that whenever a Web image is displayed more than once on a
page (like a logo displayed on the bottom and top of a page), the Web
designer adds a special ID property to the Image tag.
• Mandatory properties are sufficient to create a unique description for
images that are only displayed once on the page,but we want QuickTest to
learn the ID property for images that are displayed more than once on a
page.

•

Solution:
• To do this, Add the ID property as an assistive property, so that QuickTest
learns the ID property only when it is necessary for creating a unique test
object description.

pgorantla.blogspot.com
Working With Dynamic Content

1.

Objects Dynamically Changing Objects


Sometimes the content of objects in a Web page or
application changes due to dynamic content. We can
create dynamic descriptions of these objects so that
QuickTest will recognize them when it runs the test.



Case Study:
 Scenario: How to click on a dynamically changing text.
To click on this link
 Solution: After recording the script, change the Text

property of the link to w.* to find zero or more occurrences
of any character (except n).


pgorantla.blogspot.com
Working With Dynamic Content

Change Text Value to w.*
using regular expression.

Result Screen

pgorantla.blogspot.com
Working With Dynamic Content

2. Check Existence of Child Window
– Sometimes a link in one window creates another window. We can use the Exist
property to check whether or not a window exists. For example:
Browser("Window_name").Exist
– Can Use the ChildObjects method to retrieve all child objects (or the subset of child
objects that match a certain description) on the Desktop or within any other parent
object.

pgorantla.blogspot.com
Working With Dynamic Content

Scenario :
Verify for the existence of
Browser
for the following Yahoo
site.
Solution:
Use Exist property for the
existence
of Browser “Under
Construction:
Mercury ”.
Results show the existence
of
Browser “Under
Construction: Mercury”

pgorantla.blogspot.com
3. Recording 0f Dynamically Generated URLs and
Web pages.


QuickTest actually clicks on links as they are displayed
on the page. Therefore, QuickTest records how to find a
particular object, such as a link on the page, rather than
the object itself.



Scenario: If the link to a dynamically generated URL is an
image, then QuickTest records the "IMG" HTML tag, and
the name of the image. This enables QuickTest to find this
image in the future and click on it.
pgorantla.blogspot.com


Scenario : Check for the "IMG" HTML
tag, and the name of the image for the
dynamically generated URL image.



Solution: In the below recorded script,
Rediff Matchmaker is an image for
dynamically generated URL



QuickTest records the "IMG" HTML
tag, and the name of the image which
interns enables to find this image in
the future and click on it.

pgorantla.blogspot.com
Working With Dynamic Content

Q & A….

pgorantla.blogspot.com
Working With Dynamic Content



QuickTest identifies objects in your application based on a
set of test object properties.



The Smart Identification mechanism may enable
QuickTest to identify an object, even when some of its
property values change.



We can manually change a test object property value to
match a new static property of an object in your
application.



We can use the SetTOProperty method to modify test
object properties during a run session without changing
the property values in the object repository.



We can use regular expressions to identify an object based
on conditions or patterns you define.
pgorantla.blogspot.com

More Related Content

Viewers also liked

Marketo Summit 2014 - Taking Dynamic Content and PURLs to the Next Level
Marketo Summit 2014 - Taking Dynamic Content and PURLs to the Next LevelMarketo Summit 2014 - Taking Dynamic Content and PURLs to the Next Level
Marketo Summit 2014 - Taking Dynamic Content and PURLs to the Next Level
Etumos
 
Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...
Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...
Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...
Etumos
 
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Amazon Web Services
 
Content that converts - Conversion summit Frankfurt
Content that converts  - Conversion summit FrankfurtContent that converts  - Conversion summit Frankfurt
Content that converts - Conversion summit Frankfurt
Conversionista
 
AWS Summit London 2014 | Dynamic Content Acceleration (300)
AWS Summit London 2014 | Dynamic Content Acceleration (300)AWS Summit London 2014 | Dynamic Content Acceleration (300)
AWS Summit London 2014 | Dynamic Content Acceleration (300)
Amazon Web Services
 
Content, Conversation, Conversion - was Content mit Conversion zu tun hat
Content, Conversation, Conversion - was Content mit Conversion zu tun hatContent, Conversation, Conversion - was Content mit Conversion zu tun hat
Content, Conversation, Conversion - was Content mit Conversion zu tun hat
ScribbleLive
 

Viewers also liked (6)

Marketo Summit 2014 - Taking Dynamic Content and PURLs to the Next Level
Marketo Summit 2014 - Taking Dynamic Content and PURLs to the Next LevelMarketo Summit 2014 - Taking Dynamic Content and PURLs to the Next Level
Marketo Summit 2014 - Taking Dynamic Content and PURLs to the Next Level
 
Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...
Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...
Dynamic Content and Segmentations (Silicon Valley Marketo User Group, Novembe...
 
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
Dynamic Content Acceleration: Amazon CloudFront and Amazon Route 53 (ARC309) ...
 
Content that converts - Conversion summit Frankfurt
Content that converts  - Conversion summit FrankfurtContent that converts  - Conversion summit Frankfurt
Content that converts - Conversion summit Frankfurt
 
AWS Summit London 2014 | Dynamic Content Acceleration (300)
AWS Summit London 2014 | Dynamic Content Acceleration (300)AWS Summit London 2014 | Dynamic Content Acceleration (300)
AWS Summit London 2014 | Dynamic Content Acceleration (300)
 
Content, Conversation, Conversion - was Content mit Conversion zu tun hat
Content, Conversation, Conversion - was Content mit Conversion zu tun hatContent, Conversation, Conversion - was Content mit Conversion zu tun hat
Content, Conversation, Conversion - was Content mit Conversion zu tun hat
 

Similar to Dynamic Content in QTP

Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Azhar Satti
 
KnockoutJS and MVVM
KnockoutJS and MVVMKnockoutJS and MVVM
KnockoutJS and MVVM
Manvendra Singh
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
VGlobal Govi
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
VGlobal Govi
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
Karmanjay Verma
 
Flex3 Deep Dive Final
Flex3 Deep Dive FinalFlex3 Deep Dive Final
Flex3 Deep Dive Final
RJ Owen
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorialpingkapil
 
WPF - Controls & Data
WPF - Controls & DataWPF - Controls & Data
WPF - Controls & DataSharada Gururaj
 
(An Extended) Beginners Guide to Object Orientation in PHP
(An Extended) Beginners Guide to Object Orientation in PHP(An Extended) Beginners Guide to Object Orientation in PHP
(An Extended) Beginners Guide to Object Orientation in PHP
Rick Ogden
 
Page object pattern
Page object patternPage object pattern
Page object pattern
Petro Konopelko
 
Improving Your Selenium WebDriver Tests - Belgium testing days_2016
Improving Your Selenium WebDriver Tests - Belgium testing days_2016Improving Your Selenium WebDriver Tests - Belgium testing days_2016
Improving Your Selenium WebDriver Tests - Belgium testing days_2016
Roy de Kleijn
 
Microdata for Dummies
Microdata for DummiesMicrodata for Dummies
Microdata for Dummies
giurca
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
Kobkrit Viriyayudhakorn
 
React-Native Lecture 11: In App Storage
React-Native Lecture 11: In App StorageReact-Native Lecture 11: In App Storage
React-Native Lecture 11: In App Storage
Kobkrit Viriyayudhakorn
 
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrienCustomizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Chris O'Brien
 
QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5
Akash Tyagi
 
React a11y-csun
React a11y-csunReact a11y-csun
React a11y-csun
Poonam Tathavadkar
 
Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8
goodfriday
 
IBM FileNet Training.pdf
IBM FileNet Training.pdfIBM FileNet Training.pdf
IBM FileNet Training.pdf
SpiritsoftsTraining
 
Custom components in JSF
Custom components in JSFCustom components in JSF
Custom components in JSF
ESRI Bulgaria
 

Similar to Dynamic Content in QTP (20)

Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780Qtp Training Deepti 2 Of 44780
Qtp Training Deepti 2 Of 44780
 
KnockoutJS and MVVM
KnockoutJS and MVVMKnockoutJS and MVVM
KnockoutJS and MVVM
 
QTP Faqs
QTP FaqsQTP Faqs
QTP Faqs
 
SAP Testing Training
SAP Testing TrainingSAP Testing Training
SAP Testing Training
 
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...React JS; all concepts. Contains React Features, JSX, functional & Class comp...
React JS; all concepts. Contains React Features, JSX, functional & Class comp...
 
Flex3 Deep Dive Final
Flex3 Deep Dive FinalFlex3 Deep Dive Final
Flex3 Deep Dive Final
 
QTP Tutorial
QTP TutorialQTP Tutorial
QTP Tutorial
 
WPF - Controls & Data
WPF - Controls & DataWPF - Controls & Data
WPF - Controls & Data
 
(An Extended) Beginners Guide to Object Orientation in PHP
(An Extended) Beginners Guide to Object Orientation in PHP(An Extended) Beginners Guide to Object Orientation in PHP
(An Extended) Beginners Guide to Object Orientation in PHP
 
Page object pattern
Page object patternPage object pattern
Page object pattern
 
Improving Your Selenium WebDriver Tests - Belgium testing days_2016
Improving Your Selenium WebDriver Tests - Belgium testing days_2016Improving Your Selenium WebDriver Tests - Belgium testing days_2016
Improving Your Selenium WebDriver Tests - Belgium testing days_2016
 
Microdata for Dummies
Microdata for DummiesMicrodata for Dummies
Microdata for Dummies
 
React Native Firebase
React Native FirebaseReact Native Firebase
React Native Firebase
 
React-Native Lecture 11: In App Storage
React-Native Lecture 11: In App StorageReact-Native Lecture 11: In App Storage
React-Native Lecture 11: In App Storage
 
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrienCustomizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
Customizing the SharePoint 2013 user interface with JavaScript - Chris OBrien
 
QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5QTP Automation Testing Tutorial 5
QTP Automation Testing Tutorial 5
 
React a11y-csun
React a11y-csunReact a11y-csun
React a11y-csun
 
Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8Integrating Your Site With Internet Explorer 8
Integrating Your Site With Internet Explorer 8
 
IBM FileNet Training.pdf
IBM FileNet Training.pdfIBM FileNet Training.pdf
IBM FileNet Training.pdf
 
Custom components in JSF
Custom components in JSFCustom components in JSF
Custom components in JSF
 

More from Praveen Gorantla

Troubleshooting with QTP
Troubleshooting with QTPTroubleshooting with QTP
Troubleshooting with QTP
Praveen Gorantla
 
File System Object in QTP
File System Object in QTPFile System Object in QTP
File System Object in QTP
Praveen Gorantla
 
Recovery Scenario in QTP
Recovery Scenario in QTPRecovery Scenario in QTP
Recovery Scenario in QTP
Praveen Gorantla
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
Praveen Gorantla
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
Praveen Gorantla
 
VB Script Overview
VB Script OverviewVB Script Overview
VB Script Overview
Praveen Gorantla
 
Regular Expressions in QTP
Regular Expressions in QTPRegular Expressions in QTP
Regular Expressions in QTPPraveen Gorantla
 
Business Process Testing
Business Process TestingBusiness Process Testing
Business Process Testing
Praveen Gorantla
 

More from Praveen Gorantla (13)

Troubleshooting with QTP
Troubleshooting with QTPTroubleshooting with QTP
Troubleshooting with QTP
 
File System Object in QTP
File System Object in QTPFile System Object in QTP
File System Object in QTP
 
Recovery Scenario in QTP
Recovery Scenario in QTPRecovery Scenario in QTP
Recovery Scenario in QTP
 
Selenium WebDriver FAQ's
Selenium WebDriver FAQ'sSelenium WebDriver FAQ's
Selenium WebDriver FAQ's
 
QTP Functions
QTP FunctionsQTP Functions
QTP Functions
 
VB Script Overview
VB Script OverviewVB Script Overview
VB Script Overview
 
Regular Expressions in QTP
Regular Expressions in QTPRegular Expressions in QTP
Regular Expressions in QTP
 
Business Process Testing
Business Process TestingBusiness Process Testing
Business Process Testing
 
QTP Basics-2
QTP Basics-2QTP Basics-2
QTP Basics-2
 
QTP with QualityCenter
QTP with  QualityCenterQTP with  QualityCenter
QTP with QualityCenter
 
Virtual objects
Virtual objectsVirtual objects
Virtual objects
 
2.regular expressions
2.regular expressions2.regular expressions
2.regular expressions
 
1.qtp basics
1.qtp basics1.qtp basics
1.qtp basics
 

Recently uploaded

GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
Neo4j
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
Alex Pruden
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Paige Cruz
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
ThomasParaiso2
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
KAMESHS29
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
名前 です男
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Vladimir Iglovikov, Ph.D.
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 

Recently uploaded (20)

GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
GraphSummit Singapore | Enhancing Changi Airport Group's Passenger Experience...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex ProofszkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
zkStudyClub - Reef: Fast Succinct Non-Interactive Zero-Knowledge Regex Proofs
 
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdfObservability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
Observability Concepts EVERY Developer Should Know -- DeveloperWeek Europe.pdf
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...GridMate - End to end testing is a critical piece to ensure quality and avoid...
GridMate - End to end testing is a critical piece to ensure quality and avoid...
 
RESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for studentsRESUME BUILDER APPLICATION Project for students
RESUME BUILDER APPLICATION Project for students
 
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
みなさんこんにちはこれ何文字まで入るの?40文字以下不可とか本当に意味わからないけどこれ限界文字数書いてないからマジでやばい文字数いけるんじゃないの?えこ...
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AIEnchancing adoption of Open Source Libraries. A case study on Albumentations.AI
Enchancing adoption of Open Source Libraries. A case study on Albumentations.AI
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 

Dynamic Content in QTP

  • 1.
  • 2. Working With Dynamic Content  Working With Dynamic Content – Runtime Identification of Objects  Working with Dynamic Content • • •  Objects Dynamically Changing Objects To check that a child window exists (or does not exist) QuickTest records dynamically generated URLs and Web pages Session Wrap-Up pgorantla.blogspot.com
  • 3. Working With Dynamic Content  QuickTest identifies objects in your application based on a set of test object properties.  QuickTest stores the object data it learns in the object repository.  If one or more of the property values of an object in the application differ from the property values QuickTest uses to identify the object, a test or component may fail.  When the property values of objects in the application change, modify the corresponding test object property values so that it can continue to use the existing tests or components. pgorantla.blogspot.com
  • 4. Working With Dynamic Content  Methods for modifying test object properties :  Manually change a test object property value to match a new static property of an object in your application.  Use the SetTOProperty method to modify test object properties during a run session without changing the property values in the object repository. Can modify the properties of the temporary version of the object during the run session without affecting the permanent values in the object repository by adding a SetTOProperty statement in the Expert View. Syntax Object(description).SetTOProperty Property, Value pgorantla.blogspot.com
  • 5. Working With Dynamic Content  Can modify the set of properties that QuickTest uses to identify the object, so that it will be able to identify an object even when some of its properties change. You can use configure mandatory and assistive properties for a test object class.  Can parameterize a test object property with a Data Table parameter if you expect the property value to change in a predictable way with each iteration of the test.  Can use regular expressions to identify an object based on conditions or patterns you define.  Can make the most of these modifications in the Object Properties dialog box or in the Object Repository dialog box.  Can save your objects either in a shared object repository or in action object repository. In shared object repository mode, you can use one object repository file for multiple tests or components. In object repository per-action mode, QuickTest automatically creates an object repository file for each action in your test. Object repository per-action mode is not available for components. pgorantla.blogspot.com
  • 6. Working With Dynamic Content • Problem: • Suppose that whenever a Web image is displayed more than once on a page (like a logo displayed on the bottom and top of a page), the Web designer adds a special ID property to the Image tag. • Mandatory properties are sufficient to create a unique description for images that are only displayed once on the page,but we want QuickTest to learn the ID property for images that are displayed more than once on a page. • Solution: • To do this, Add the ID property as an assistive property, so that QuickTest learns the ID property only when it is necessary for creating a unique test object description. pgorantla.blogspot.com
  • 7. Working With Dynamic Content 1. Objects Dynamically Changing Objects  Sometimes the content of objects in a Web page or application changes due to dynamic content. We can create dynamic descriptions of these objects so that QuickTest will recognize them when it runs the test.  Case Study:  Scenario: How to click on a dynamically changing text. To click on this link  Solution: After recording the script, change the Text property of the link to w.* to find zero or more occurrences of any character (except n).  pgorantla.blogspot.com
  • 8. Working With Dynamic Content Change Text Value to w.* using regular expression. Result Screen pgorantla.blogspot.com
  • 9. Working With Dynamic Content 2. Check Existence of Child Window – Sometimes a link in one window creates another window. We can use the Exist property to check whether or not a window exists. For example: Browser("Window_name").Exist – Can Use the ChildObjects method to retrieve all child objects (or the subset of child objects that match a certain description) on the Desktop or within any other parent object. pgorantla.blogspot.com
  • 10. Working With Dynamic Content Scenario : Verify for the existence of Browser for the following Yahoo site. Solution: Use Exist property for the existence of Browser “Under Construction: Mercury ”. Results show the existence of Browser “Under Construction: Mercury” pgorantla.blogspot.com
  • 11. 3. Recording 0f Dynamically Generated URLs and Web pages.  QuickTest actually clicks on links as they are displayed on the page. Therefore, QuickTest records how to find a particular object, such as a link on the page, rather than the object itself.  Scenario: If the link to a dynamically generated URL is an image, then QuickTest records the "IMG" HTML tag, and the name of the image. This enables QuickTest to find this image in the future and click on it. pgorantla.blogspot.com
  • 12.  Scenario : Check for the "IMG" HTML tag, and the name of the image for the dynamically generated URL image.  Solution: In the below recorded script, Rediff Matchmaker is an image for dynamically generated URL  QuickTest records the "IMG" HTML tag, and the name of the image which interns enables to find this image in the future and click on it. pgorantla.blogspot.com
  • 13. Working With Dynamic Content Q & A…. pgorantla.blogspot.com
  • 14. Working With Dynamic Content  QuickTest identifies objects in your application based on a set of test object properties.  The Smart Identification mechanism may enable QuickTest to identify an object, even when some of its property values change.  We can manually change a test object property value to match a new static property of an object in your application.  We can use the SetTOProperty method to modify test object properties during a run session without changing the property values in the object repository.  We can use regular expressions to identify an object based on conditions or patterns you define. pgorantla.blogspot.com

Editor's Notes

  1. Briefly review the session agenda as indicated here. Currently we are in the “Prep Session Introduction” section, during which we will review basic information about this session, including how to use Centra to participate. Note: The Prep Session Introduction section should take no longer than 15 minutes.
  2. Spend a few moments answering participants’ questions about the agenda of this session or the Centra controls they will be using. Remind them to use the “Raise Hand” icon to ask a question.