Qtp -  Introduction to synchronization
QTP 9.2 SynchronizationQTP 9.2 Synchronization
By :- Vibrant Technologies &
Computers
ObjectivesObjectives
• Automation – Need for automation, Rules of automation
• Exposure to the Automation Concepts and Kick start the
learning of one of the leading tool QTP
Need of AutomationNeed of Automation
• Speed – Automation Scripts run very fast when
compared to human users
• Reliable – Tests perform precisely the same operations
each time they are run, there by eliminating human error.
• Repeatable – We can test how the application reacts after
repeated execution of the same operation
• Comprehensive – We can build a suite of tests that covers
every feature in our application
• Reusable – We can reuse tests on different versions of an
application, even if the user interface changes.
Rules of AutomationRules of Automation
Testing Tools are usually very expensive.
The test manager or the test lead has to
think twice before going in for automating
his test effort. There are also some widely
held false notions or beliefs about
automation tools.
In general, the golden rules that should be
kept in mind in the regard are.
Golden RulesGolden Rules
• Product feature understanding, test planning, test case
documentation, test bed setup, defect tracking,
progression tests are all done in manual mode
• Test automation success depends on robustness of the
test cases not on the test tool.
• Every manual step has commands in test scripts
• If it is not worth, DO NOT AUTOMATE.
• Do not build application logic in your test scripts
• Always have a common know base state for test cases
• One test script Action must address one test case.
What are the different tools available in the marketWhat are the different tools available in the market
(for functional testing)-(for functional testing)-
• Quick Test Professional (HP)
• WinRunner (HP)
• Robot (IBM Rational)
• Functional Tester (IBM Rational)
• SilkTest (Borland)
• TestComplete (AutomatedQA)
• QAWizard (Seapine)
• TestPartner (Compuware)
• QEngine (AdventNet)
• Open source tools (Sahi, Watir)
Life Cycle OfLife Cycle Of
AutomationAutomation
Analyze the Application
Select The
Tool
Identify the session
Design/ Record Test Scripts
Run the
test scripts
Finding & Reporting the defects
Introduction to QTPIntroduction to QTP
• Developed by Mercury interactive now owned by HP
• Developed for web functionality
• QTP supports both web applications & windows applications
• QTP Developed in 2002, present version in the market is 9.5
• Test Script developed on VB Script
• QTP supported Technology
• .NET. J2EE, Main Frame, XML, Java, Delphi
• ERP -> SAP, Seibel, People soft
• QTP Supports both Technical & Non Technical People
• QTP run on only windows platform not supporting UNIX, Linux etc
Environment needs for QTP 9.2Environment needs for QTP 9.2
System Requirement : Equivalent to P3 and above
Hardware Drive : 250MB of Free Memory space
RAM : 512MB of RAM
OS : M/S windows 2000 server
with 3-4 service pack
M/S windows XP with 1-2 SP
M/S windows 2003 with no service pack
Web Browser : MS Internet Explorer 5.5 and above
Netscape Navigator 6.11, 6.22, 6.23, 7.02, 7.1
AOL 8.0, 9.0
Add Ins of QTAdd Ins of QT
Technology supported by the QTP
By default three Add Ins are there in QTP
• ActiveX
• VB
• Web
Additional Add ins:
• Java
• Oracle
• People soft
• .NET
• Terminal Emulator (RTE)
• SAP
• Siebel
• Delphi
Window Structure of QTPWindow Structure of QTP
1) Test Pane
2) Active Screen
3) Data Table
4) Debug
Viewer
Architecture Of QTPArchitecture Of QTP
Script(.mts file)
Action1 Rep1(.mtr file)
Sheet1(localSheet)
Parameters (Action
Parameter)
Shared Repository (.tsr File) Action2 Rep2
Global Sheet Sheet2(localSheet)
Environment Parameter Parameters (Action Parameter)
Test Parameter
Action3 Rep3
Sheet3(localSheet)
Parameters (Action
Parameter)
Course ObjectiveCourse Objective
Object SpyObject Spy
Object spy is used to display or view all the physical properties and
methods of an object.
Object IdentificationObject Identification
• Used to Map non Standard Object to Standard Object
• Used to configure Recognition properties for an object class.
o Recognition properties are configured using
• Mandatory Properties
• Assistive properties (are used when mandatory property fails to
recognize the object uniquely)
• Ordinal Identifier (are used when both mandatory and assistive fails
to recognize the object uniquely)
o Location (Represent x- coordinate of the screen or parent object Nearest to
x is 0)
o Index (Works based on active screen – active screen being 0 by default)
o Creation Time (For web browsers, no. of instances decides the creation time)
Object RepositoryObject Repository
• Stores the object for the purpose of playing back
• Uses Logical Name and Description properties to
recognize the object from script and application
respectively
• Description Properties are created through Object
Identification
• Repository can be managed using Per Action mode
(.mtr File) and Shared Repository Mode (.tsr File) by
the script
Object Repository Dialog Box-Object Repository Dialog Box-
Recording ModesRecording Modes
• Three Modes of Recording
o Context Sensitive or Normal Recording – Uses the object class
and properties and method to perform action.
o Analog Recording – Understands only the key or mouse
movements
o Relative to the screen: Desktop.RunAnalog “Track1”
o Relative to the window: Window(<<objName>>).RunAnalog “Track1”
o Low Level Recording – Understand the x and y coordinate of
the within the object on which the action is performed.
• Object(<<ObjName>>).Click (22,45)
Record a TestRecord a Test
Record & Run SettingsRecord & Run Settings
Run a Test and Save ResultsRun a Test and Save Results
View Test ResultsView Test Results
Virtual ObjectVirtual Object
• Virtual Object is used to identify the properties of
similar objects in a particular Area.
Example: In normal recording if we select the paint brush
window, the script will look like this-
window(“Paint”).Activate
Window(“Paint”).Winobject(“colors”).Click 72,16
Window(“Paint”).Winobject(“colors”).Click 80,14
window(“Paint”).Close
If we are using Virtual object, the script will look like this-
window(“Paint”).Activate
Window(“Paint”).Winobject(“colors”).Virtual Button(“RED”)
Window(“Paint”).Winobject(“colors”).Virtual Button(“BLUE”)
window(“Paint”).Close
VB ScriptingVB Scripting
• Msgbox()
• Inputbox()
• String manupulation
• Using Variables
• Using Concatenation
• Split ()
• Instr()
• Loops – For loop, Do while, Select Case
• Conditions – If then Else
Parameters – Data manipulationParameters – Data manipulation
• Script Level Parameterization
o Constant
o DataTable(“clmName”,dtLocal/GlobalSheet)
o RandomNumber(start,End)
o Environment(“Paraname”)
o Action Parameter - Parameter(“ParaName”)
• Action Parameter
o Constant
o DataTable
o RandomNumber
o Environment
o Test Parameter
• Test Parameter
o Constant (Test Parameter can be configured only through Action Parameter)
• Environment Parameter
o Build In
o User Defined
Action ParameterAction Parameter
• Action Parameter
o To create an Action Parameter – Go to Action, Right Click, Select Action Properties
and give Default value to be used.
o To Modify Action Parameter default value – Go to Action, Right Click, Select Action
Call Properties and select the parameter for which modification is needed, select
value column and click on configure value button under value.
o To control the iteration of Action Sheet, Go to Action, Right Click, Select Action call
properties and Run tab
Test Parameter &EnvironmentTest Parameter &Environment
• Test Parameter
o File->Setting->Parameter Tab
o Only constant value can be used
o To use the test parameter in the script, Test parameter needs to configured to action
parameter.
• Environment Parameter
o File->Setting->Environment Tab
o Build in and User defined parameters
o To use the environment in other machines, use export and import under environment
parameter tab
Setting the Parameter ValueSetting the Parameter Value
Using Data Sheet (Global, Local & Location)Using Data Sheet (Global, Local & Location)
Multiple ActionsMultiple Actions
• How to Create New Actions?
o Creating as Independent Action (Call to New action, Select “at the
end of test” radio button)
o Creating as Nested Action (Call to new action, Select “After the
current test” radio button)
• Dependent Action – One action depends on another action for want
of data
o Using Datatable Output Value
o Using Output Parameter Output Value
o Output value
• Select the object from active screen, Right click, Select output value
• At Recording time Select from menu Insert->Output Value-
>Standard Output value
Reusable ActionsReusable Actions
• How to make an action as Reusable Action?
• Passing Parameters for Reusable Action
o Using Input Parameters
o Using Output Parameters
• SystemUtil Commands
• .Exist Command
• Syntex of Reusable Action
o RunAction “ActionName[ScriptName]”, One/Alliteration, Parameters(optional)
Dynamic ObjectsDynamic Objects
• What is Dynamic Object?
• When we can say, the object is dynamic?
• Ways to Solve those dynamic objects
o SetTOProperty
• Parent().Object(“Logical”).SetTOProperty “propertyName”,
Value
o Regular Expression
o Repository Parameter
o Smart Identification
• What is Smart Identification?
o It is a second level of Recognition Mechanism to recognize an
object when it is failed using Description properties
o It is not a permanent method to solve a dynamic object – It is an
indication to the user that the object is not managed using
description properties
Regular ExpressionsRegular Expressions
• This can be used where there is a pattern of Change.
Regular Expressions can be used in the following areas:
1) Check Points
2) In parameterization
3) Data Driven test
4) Actions
5) Exception Handling….etc
Using a Regular ExpressionUsing a Regular Expression
Some Regular Expressions-Some Regular Expressions-
Expression Char Description
Period . Matches any single character
Asterisk * Matches zero to any number of occurrences of the
preceding character
Plus + Matches one to any number of occurrences of the
preceding character
Brackets [A-Z][a-z] Matches a range of characters
[0-9] Matches a range of numbers
w Matches any alphanumeric character including underscore
W Matches any non-alphanumeric character
Digit d Matches any digit
d{4} Matches exactly four digits
Smart Identification-Smart Identification-
• Smart Identification is used as Second level of recognition mechanism.
When the Quick test fails to recognize the object through description
properties, it tries to identify the object using Smart identification.
By invoking smart identification, system takes more time than usual
time so if an object is identified in smart identification method then that
object needs to be attended
Two properties are available in Smart identification
They are-
Base Filter Properties (This property has to match)
Optional Filter Properties (Atleast one of the property should be
unique)
Synchronization PointSynchronization Point
• Synchronization point maintains the time coordination
between testing process and your application process.
• Types of Synchronization
o Sync
o Wait
o WaitProperty
o Exist
Check PointsCheck Points
• Check Point is a verification point that
compares the current value of the specified
property with the expected value for that
property.
• Standard Check Point
• Text/ Text Area Check Point
• Bitmap Check point
• Database Check Point
• XML Check Point
• Accessibility Check Point/ Web Checkpoint
Checkpoint TypesCheckpoint Types
Inserting a Checkpoint During RecordingInserting a Checkpoint During Recording
Insert a Checkpoint After RecordingInsert a Checkpoint After Recording
Identifying a Failed CheckpointIdentifying a Failed Checkpoint
Exception Handling-Exception Handling-
• It enables Quick test to detect and handle when
unexpected error occurred during execution time.
• Types of Exception Handling:
o Popup Exception Handling
o Object State Exception Handling
o Test Run Exception Handling
o Application Crash
ThankThank You !!!You !!!
For More Information click below link:
Follow Us on:
http://vibranttechnologies.co.in/qtp-classes-in-mumbai.html

More Related Content

PPT
Qtp92 Presentation
PPTX
Automation Tool QTP
PDF
Why GC is eating all my CPU?
PPT
Qtp Mgl Presentation
PPTX
Non blocking programming and waiting
PPT
QTP Slides Presentation.
PPTX
Optimizing mobile applications - Ian Dundore, Mark Harkness
PPTX
QTP Power Point Presentation
Qtp92 Presentation
Automation Tool QTP
Why GC is eating all my CPU?
Qtp Mgl Presentation
Non blocking programming and waiting
QTP Slides Presentation.
Optimizing mobile applications - Ian Dundore, Mark Harkness
QTP Power Point Presentation

What's hot (7)

PPTX
DIY Java Profiling
PDF
The State of Managed Runtimes 2013, by Attila Szegedi
PPT
HP Quick Test Professional
DOC
Interview qutions
PDF
Wait for your fortune without Blocking!
PDF
Writing testable code
PPTX
Testing in Scala. Adform Research
DIY Java Profiling
The State of Managed Runtimes 2013, by Attila Szegedi
HP Quick Test Professional
Interview qutions
Wait for your fortune without Blocking!
Writing testable code
Testing in Scala. Adform Research
Ad

Viewers also liked (20)

PPTX
Dev/Test scenarios in DevOps world
PDF
Elixir & Phoenix - fast, concurrent and explicit
PDF
Elm functional programming in your browser
PPTX
Managing PTZ cameras using Elixir and the Phoenix Framework
PPT
Test automation principles, terminologies and implementations
PPTX
Elixir Phoenix
PDF
Elm or how I learned to love front-end development
PPT
Test automation using selenium
PPTX
Real World Test Automation
PPTX
Performance Management In a Nutshell (Myanmar)
PDF
Capacity Management Process Handbook
PDF
Ruby to Elixir - what's great and what you might miss
PDF
Claudia Doppioslash - Time Travel for game development with Elm
ODP
Elixir and elm - the perfect couple
PDF
What i've learned about test automation and DevOps
PPTX
Selenium Automation in Java Using HttpWatch Plug-in
PPTX
Preparing to set up your test environment
DOCX
UFT- New features and comparison with QTP
PDF
Hello elixir (and otp)
PDF
TestWorksConf 2015 Keynote Test Automation Conference Amsterdam
Dev/Test scenarios in DevOps world
Elixir & Phoenix - fast, concurrent and explicit
Elm functional programming in your browser
Managing PTZ cameras using Elixir and the Phoenix Framework
Test automation principles, terminologies and implementations
Elixir Phoenix
Elm or how I learned to love front-end development
Test automation using selenium
Real World Test Automation
Performance Management In a Nutshell (Myanmar)
Capacity Management Process Handbook
Ruby to Elixir - what's great and what you might miss
Claudia Doppioslash - Time Travel for game development with Elm
Elixir and elm - the perfect couple
What i've learned about test automation and DevOps
Selenium Automation in Java Using HttpWatch Plug-in
Preparing to set up your test environment
UFT- New features and comparison with QTP
Hello elixir (and otp)
TestWorksConf 2015 Keynote Test Automation Conference Amsterdam
Ad

Similar to Qtp - Introduction to synchronization (20)

DOCX
Qtp basic
PPT
Automation qtp classes in mumbai
PPTX
Win runner testing tool
PPT
Qtp - Introduction to automation basics
PPTX
QTP/UFT Overview and Installation
PDF
Pro smartbooksquestions
PPTX
QTP Presentation
PPT
QTP Online Training
PPT
Qtpppt1
PPT
Qtp Basics
PPTX
QTP Automation Testing Tutorial 2
PPTX
Unit testing and mocking in Python - PyCon 2018 - Kenya
PPT
Automation testing
PPT
Automation testing IBM RFT - Rational Functional Tester
DOCX
QTP Interview Questions and answers
PPT
QTP 10.0_Kalyan Chakravarthy.ppt
PDF
Getting your mobile test automation process in place - using Cucumber and Cal...
PDF
Pekka_Aho_Complementing GUI Testing Scripts - Testing Assembly 2022.pdf
PPT
1.qtp basics
PPTX
Qtp training session I
Qtp basic
Automation qtp classes in mumbai
Win runner testing tool
Qtp - Introduction to automation basics
QTP/UFT Overview and Installation
Pro smartbooksquestions
QTP Presentation
QTP Online Training
Qtpppt1
Qtp Basics
QTP Automation Testing Tutorial 2
Unit testing and mocking in Python - PyCon 2018 - Kenya
Automation testing
Automation testing IBM RFT - Rational Functional Tester
QTP Interview Questions and answers
QTP 10.0_Kalyan Chakravarthy.ppt
Getting your mobile test automation process in place - using Cucumber and Cal...
Pekka_Aho_Complementing GUI Testing Scripts - Testing Assembly 2022.pdf
1.qtp basics
Qtp training session I

More from Vibrant Technologies & Computers (20)

PPT
Buisness analyst business analysis overview ppt 5
PPT
SQL Introduction to displaying data from multiple tables
PPT
SQL- Introduction to MySQL
PPT
SQL- Introduction to SQL database
PPT
ITIL - introduction to ITIL
PPT
Salesforce - Introduction to Security & Access
PPT
Data ware housing- Introduction to olap .
PPT
Data ware housing - Introduction to data ware housing process.
PPT
Data ware housing- Introduction to data ware housing
PPT
Salesforce - classification of cloud computing
PPT
Salesforce - cloud computing fundamental
PPT
SQL- Introduction to PL/SQL
PPT
SQL- Introduction to advanced sql concepts
PPT
SQL Inteoduction to SQL manipulating of data
PPT
SQL- Introduction to SQL Set Operations
PPT
Sas - Introduction to designing the data mart
PPT
Sas - Introduction to working under change management
PPT
SAS - overview of SAS
PPT
Teradata - Architecture of Teradata
PPT
Teradata - Restoring Data
Buisness analyst business analysis overview ppt 5
SQL Introduction to displaying data from multiple tables
SQL- Introduction to MySQL
SQL- Introduction to SQL database
ITIL - introduction to ITIL
Salesforce - Introduction to Security & Access
Data ware housing- Introduction to olap .
Data ware housing - Introduction to data ware housing process.
Data ware housing- Introduction to data ware housing
Salesforce - classification of cloud computing
Salesforce - cloud computing fundamental
SQL- Introduction to PL/SQL
SQL- Introduction to advanced sql concepts
SQL Inteoduction to SQL manipulating of data
SQL- Introduction to SQL Set Operations
Sas - Introduction to designing the data mart
Sas - Introduction to working under change management
SAS - overview of SAS
Teradata - Architecture of Teradata
Teradata - Restoring Data

Recently uploaded (20)

PDF
CEH Module 2 Footprinting CEH V13, concepts
PDF
Build Real-Time ML Apps with Python, Feast & NoSQL
PDF
EIS-Webinar-Regulated-Industries-2025-08.pdf
PDF
NewMind AI Weekly Chronicles – August ’25 Week IV
PDF
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
PPTX
Presentation - Principles of Instructional Design.pptx
PPTX
Internet of Everything -Basic concepts details
PDF
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
PDF
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
PDF
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
PDF
The AI Revolution in Customer Service - 2025
PDF
Examining Bias in AI Generated News Content.pdf
PDF
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
PDF
substrate PowerPoint Presentation basic one
PPTX
Build automations faster and more reliably with UiPath ScreenPlay
PDF
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
PDF
Lung cancer patients survival prediction using outlier detection and optimize...
PDF
Rapid Prototyping: A lecture on prototyping techniques for interface design
PPTX
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
PDF
Altius execution marketplace concept.pdf
CEH Module 2 Footprinting CEH V13, concepts
Build Real-Time ML Apps with Python, Feast & NoSQL
EIS-Webinar-Regulated-Industries-2025-08.pdf
NewMind AI Weekly Chronicles – August ’25 Week IV
The-2025-Engineering-Revolution-AI-Quality-and-DevOps-Convergence.pdf
Presentation - Principles of Instructional Design.pptx
Internet of Everything -Basic concepts details
zbrain.ai-Scope Key Metrics Configuration and Best Practices.pdf
IT-ITes Industry bjjbnkmkhkhknbmhkhmjhjkhj
The-Future-of-Automotive-Quality-is-Here-AI-Driven-Engineering.pdf
The AI Revolution in Customer Service - 2025
Examining Bias in AI Generated News Content.pdf
ment.tech-Siri Delay Opens AI Startup Opportunity in 2025.pdf
substrate PowerPoint Presentation basic one
Build automations faster and more reliably with UiPath ScreenPlay
Transform-Your-Supply-Chain-with-AI-Driven-Quality-Engineering.pdf
Lung cancer patients survival prediction using outlier detection and optimize...
Rapid Prototyping: A lecture on prototyping techniques for interface design
AI-driven Assurance Across Your End-to-end Network With ThousandEyes
Altius execution marketplace concept.pdf

Qtp - Introduction to synchronization

  • 2. QTP 9.2 SynchronizationQTP 9.2 Synchronization By :- Vibrant Technologies & Computers
  • 3. ObjectivesObjectives • Automation – Need for automation, Rules of automation • Exposure to the Automation Concepts and Kick start the learning of one of the leading tool QTP
  • 4. Need of AutomationNeed of Automation • Speed – Automation Scripts run very fast when compared to human users • Reliable – Tests perform precisely the same operations each time they are run, there by eliminating human error. • Repeatable – We can test how the application reacts after repeated execution of the same operation • Comprehensive – We can build a suite of tests that covers every feature in our application • Reusable – We can reuse tests on different versions of an application, even if the user interface changes.
  • 5. Rules of AutomationRules of Automation Testing Tools are usually very expensive. The test manager or the test lead has to think twice before going in for automating his test effort. There are also some widely held false notions or beliefs about automation tools. In general, the golden rules that should be kept in mind in the regard are.
  • 6. Golden RulesGolden Rules • Product feature understanding, test planning, test case documentation, test bed setup, defect tracking, progression tests are all done in manual mode • Test automation success depends on robustness of the test cases not on the test tool. • Every manual step has commands in test scripts • If it is not worth, DO NOT AUTOMATE. • Do not build application logic in your test scripts • Always have a common know base state for test cases • One test script Action must address one test case.
  • 7. What are the different tools available in the marketWhat are the different tools available in the market (for functional testing)-(for functional testing)- • Quick Test Professional (HP) • WinRunner (HP) • Robot (IBM Rational) • Functional Tester (IBM Rational) • SilkTest (Borland) • TestComplete (AutomatedQA) • QAWizard (Seapine) • TestPartner (Compuware) • QEngine (AdventNet) • Open source tools (Sahi, Watir)
  • 8. Life Cycle OfLife Cycle Of AutomationAutomation Analyze the Application Select The Tool Identify the session Design/ Record Test Scripts Run the test scripts Finding & Reporting the defects
  • 9. Introduction to QTPIntroduction to QTP • Developed by Mercury interactive now owned by HP • Developed for web functionality • QTP supports both web applications & windows applications • QTP Developed in 2002, present version in the market is 9.5 • Test Script developed on VB Script • QTP supported Technology • .NET. J2EE, Main Frame, XML, Java, Delphi • ERP -> SAP, Seibel, People soft • QTP Supports both Technical & Non Technical People • QTP run on only windows platform not supporting UNIX, Linux etc
  • 10. Environment needs for QTP 9.2Environment needs for QTP 9.2 System Requirement : Equivalent to P3 and above Hardware Drive : 250MB of Free Memory space RAM : 512MB of RAM OS : M/S windows 2000 server with 3-4 service pack M/S windows XP with 1-2 SP M/S windows 2003 with no service pack Web Browser : MS Internet Explorer 5.5 and above Netscape Navigator 6.11, 6.22, 6.23, 7.02, 7.1 AOL 8.0, 9.0
  • 11. Add Ins of QTAdd Ins of QT Technology supported by the QTP By default three Add Ins are there in QTP • ActiveX • VB • Web Additional Add ins: • Java • Oracle • People soft • .NET • Terminal Emulator (RTE) • SAP • Siebel • Delphi
  • 12. Window Structure of QTPWindow Structure of QTP 1) Test Pane 2) Active Screen 3) Data Table 4) Debug Viewer
  • 13. Architecture Of QTPArchitecture Of QTP Script(.mts file) Action1 Rep1(.mtr file) Sheet1(localSheet) Parameters (Action Parameter) Shared Repository (.tsr File) Action2 Rep2 Global Sheet Sheet2(localSheet) Environment Parameter Parameters (Action Parameter) Test Parameter Action3 Rep3 Sheet3(localSheet) Parameters (Action Parameter)
  • 15. Object SpyObject Spy Object spy is used to display or view all the physical properties and methods of an object.
  • 16. Object IdentificationObject Identification • Used to Map non Standard Object to Standard Object • Used to configure Recognition properties for an object class. o Recognition properties are configured using • Mandatory Properties • Assistive properties (are used when mandatory property fails to recognize the object uniquely) • Ordinal Identifier (are used when both mandatory and assistive fails to recognize the object uniquely) o Location (Represent x- coordinate of the screen or parent object Nearest to x is 0) o Index (Works based on active screen – active screen being 0 by default) o Creation Time (For web browsers, no. of instances decides the creation time)
  • 17. Object RepositoryObject Repository • Stores the object for the purpose of playing back • Uses Logical Name and Description properties to recognize the object from script and application respectively • Description Properties are created through Object Identification • Repository can be managed using Per Action mode (.mtr File) and Shared Repository Mode (.tsr File) by the script
  • 18. Object Repository Dialog Box-Object Repository Dialog Box-
  • 19. Recording ModesRecording Modes • Three Modes of Recording o Context Sensitive or Normal Recording – Uses the object class and properties and method to perform action. o Analog Recording – Understands only the key or mouse movements o Relative to the screen: Desktop.RunAnalog “Track1” o Relative to the window: Window(<<objName>>).RunAnalog “Track1” o Low Level Recording – Understand the x and y coordinate of the within the object on which the action is performed. • Object(<<ObjName>>).Click (22,45)
  • 21. Record & Run SettingsRecord & Run Settings
  • 22. Run a Test and Save ResultsRun a Test and Save Results
  • 23. View Test ResultsView Test Results
  • 24. Virtual ObjectVirtual Object • Virtual Object is used to identify the properties of similar objects in a particular Area. Example: In normal recording if we select the paint brush window, the script will look like this- window(“Paint”).Activate Window(“Paint”).Winobject(“colors”).Click 72,16 Window(“Paint”).Winobject(“colors”).Click 80,14 window(“Paint”).Close If we are using Virtual object, the script will look like this- window(“Paint”).Activate Window(“Paint”).Winobject(“colors”).Virtual Button(“RED”) Window(“Paint”).Winobject(“colors”).Virtual Button(“BLUE”) window(“Paint”).Close
  • 25. VB ScriptingVB Scripting • Msgbox() • Inputbox() • String manupulation • Using Variables • Using Concatenation • Split () • Instr() • Loops – For loop, Do while, Select Case • Conditions – If then Else
  • 26. Parameters – Data manipulationParameters – Data manipulation • Script Level Parameterization o Constant o DataTable(“clmName”,dtLocal/GlobalSheet) o RandomNumber(start,End) o Environment(“Paraname”) o Action Parameter - Parameter(“ParaName”) • Action Parameter o Constant o DataTable o RandomNumber o Environment o Test Parameter • Test Parameter o Constant (Test Parameter can be configured only through Action Parameter) • Environment Parameter o Build In o User Defined
  • 27. Action ParameterAction Parameter • Action Parameter o To create an Action Parameter – Go to Action, Right Click, Select Action Properties and give Default value to be used. o To Modify Action Parameter default value – Go to Action, Right Click, Select Action Call Properties and select the parameter for which modification is needed, select value column and click on configure value button under value. o To control the iteration of Action Sheet, Go to Action, Right Click, Select Action call properties and Run tab
  • 28. Test Parameter &EnvironmentTest Parameter &Environment • Test Parameter o File->Setting->Parameter Tab o Only constant value can be used o To use the test parameter in the script, Test parameter needs to configured to action parameter. • Environment Parameter o File->Setting->Environment Tab o Build in and User defined parameters o To use the environment in other machines, use export and import under environment parameter tab
  • 29. Setting the Parameter ValueSetting the Parameter Value
  • 30. Using Data Sheet (Global, Local & Location)Using Data Sheet (Global, Local & Location)
  • 31. Multiple ActionsMultiple Actions • How to Create New Actions? o Creating as Independent Action (Call to New action, Select “at the end of test” radio button) o Creating as Nested Action (Call to new action, Select “After the current test” radio button) • Dependent Action – One action depends on another action for want of data o Using Datatable Output Value o Using Output Parameter Output Value o Output value • Select the object from active screen, Right click, Select output value • At Recording time Select from menu Insert->Output Value- >Standard Output value
  • 32. Reusable ActionsReusable Actions • How to make an action as Reusable Action? • Passing Parameters for Reusable Action o Using Input Parameters o Using Output Parameters • SystemUtil Commands • .Exist Command • Syntex of Reusable Action o RunAction “ActionName[ScriptName]”, One/Alliteration, Parameters(optional)
  • 33. Dynamic ObjectsDynamic Objects • What is Dynamic Object? • When we can say, the object is dynamic? • Ways to Solve those dynamic objects o SetTOProperty • Parent().Object(“Logical”).SetTOProperty “propertyName”, Value o Regular Expression o Repository Parameter o Smart Identification • What is Smart Identification? o It is a second level of Recognition Mechanism to recognize an object when it is failed using Description properties o It is not a permanent method to solve a dynamic object – It is an indication to the user that the object is not managed using description properties
  • 34. Regular ExpressionsRegular Expressions • This can be used where there is a pattern of Change. Regular Expressions can be used in the following areas: 1) Check Points 2) In parameterization 3) Data Driven test 4) Actions 5) Exception Handling….etc
  • 35. Using a Regular ExpressionUsing a Regular Expression
  • 36. Some Regular Expressions-Some Regular Expressions- Expression Char Description Period . Matches any single character Asterisk * Matches zero to any number of occurrences of the preceding character Plus + Matches one to any number of occurrences of the preceding character Brackets [A-Z][a-z] Matches a range of characters [0-9] Matches a range of numbers w Matches any alphanumeric character including underscore W Matches any non-alphanumeric character Digit d Matches any digit d{4} Matches exactly four digits
  • 37. Smart Identification-Smart Identification- • Smart Identification is used as Second level of recognition mechanism. When the Quick test fails to recognize the object through description properties, it tries to identify the object using Smart identification. By invoking smart identification, system takes more time than usual time so if an object is identified in smart identification method then that object needs to be attended Two properties are available in Smart identification They are- Base Filter Properties (This property has to match) Optional Filter Properties (Atleast one of the property should be unique)
  • 38. Synchronization PointSynchronization Point • Synchronization point maintains the time coordination between testing process and your application process. • Types of Synchronization o Sync o Wait o WaitProperty o Exist
  • 39. Check PointsCheck Points • Check Point is a verification point that compares the current value of the specified property with the expected value for that property. • Standard Check Point • Text/ Text Area Check Point • Bitmap Check point • Database Check Point • XML Check Point • Accessibility Check Point/ Web Checkpoint
  • 41. Inserting a Checkpoint During RecordingInserting a Checkpoint During Recording
  • 42. Insert a Checkpoint After RecordingInsert a Checkpoint After Recording
  • 43. Identifying a Failed CheckpointIdentifying a Failed Checkpoint
  • 44. Exception Handling-Exception Handling- • It enables Quick test to detect and handle when unexpected error occurred during execution time. • Types of Exception Handling: o Popup Exception Handling o Object State Exception Handling o Test Run Exception Handling o Application Crash
  • 45. ThankThank You !!!You !!! For More Information click below link: Follow Us on: http://vibranttechnologies.co.in/qtp-classes-in-mumbai.html