QTP Training Session IV


 Presented By : Aisha Mazhar
        13 Aug 2012
Agenda - Intermediate
•   Output Values
•   Understanding the script
•   VBScript basics.
•   Some FUM's (Frequently Used Methods)
•   Object Identification Mechanism (Object Spy)
•   Descriptive programming.
Output Values
• Output values are used for checking the
  properties of the object. And these properties
  are stored in the specified column during run
  session in the DataTable
VB Script basics
• Declaring Variables
   – Using Dim, Public, Private
• Naming Restrictions
   – Must begin with an alphabetic character.
   – Cannot contain an embedded period.
   – Must not exceed 255 characters.
   – Must be unique in the scope in which it is declared.
   – Make sure you never create variables that have the same
     name as keywords
• Assigning Values to Variables
• Creating Constants
• Conditions & Looping
FUM’s
• 'GetROProperty

• 'Exist(n)

• 'Wait

• 'Msgbox

• DataTable.GetSheet(“SheetNo/Name").GetRowCount

• ExitTest (“Optional Message”)

• strcomp(<variable>,”<Text to compare>“ <Operator > <Condition>)

    E.G Strcomp(State,”--Please Select--” = True)
Object Spy
    • An inbuilt tool that enlists all of the test-object and runtime-
    object properties.

    • Can view the properties of any Object in the open application.

P
R
O
P
E
R                                    V
T                                    A
I                                    L
E                                    U
S                                    E
                                     S
DP
DP? What ?? Descriptive Programming.

But What?? Cool way to work w/o QTP object repository

And Why? Many Reasons

How? There are two ways

1. Throw the properties and values straight into a command

ObjectClassName("property:=value", "property:=value")

Ofcourse we're not limited to only 2 properties. We can write more:

ObjectClassName("property:=value", "property:=value", "property:=value")
DP
2. Throw the properties & values into a description object, and throw IT into the
    command

We are using the variable oDesc to store the return from Description.Create.
  Since, oDesc is preceded by a Set statement, that makes it an object
  reference. Therefore, when the above statement executes, oDesc will become
  an object reference to a description object.

colObject is nothing but an array of all objects having the exact same properties
   as the description object.
Thank You 

More Related Content

ODP
Functional programming in Javascript
PDF
JavaScript: Patterns, Part 2
PDF
JavaScript Execution Context
ODP
JavaScript global object, execution contexts & closures
PPT
A Deeper look into Javascript Basics
ODP
JavaScript Object Oriented Programming Cheat Sheet
PDF
Advanced realm in swift
ODP
Functors, Applicatives and Monads In Scala
Functional programming in Javascript
JavaScript: Patterns, Part 2
JavaScript Execution Context
JavaScript global object, execution contexts & closures
A Deeper look into Javascript Basics
JavaScript Object Oriented Programming Cheat Sheet
Advanced realm in swift
Functors, Applicatives and Monads In Scala

What's hot (20)

PPTX
Advanced Javascript
PPTX
Presentation on overloading
PDF
Javascript basic course
PPTX
Introduction to RxJS
PDF
Let's JavaScript
PDF
JavaScript: Patterns, Part 3
PPTX
PDF
Useful and Practical Functionalities in Realm
PPTX
Javascript
PPT
Lec 28 - operator overloading
PDF
Introduction to RxJS
PDF
NyaruDBにゃるものを使ってみた話 (+Realm比較)
PPT
Lec 26.27-operator overloading
PDF
Introduction to Object Oriented Javascript
PDF
Operator_Overloaing_Type_Conversion_OOPC(C++)
PPTX
Introduction to JavaScript Programming
PDF
Object Oriented Programming in JavaScript
PPTX
Object Oriented Programming In JavaScript
PPT
Advanced JavaScript
PPTX
Operator overloading and type conversions
Advanced Javascript
Presentation on overloading
Javascript basic course
Introduction to RxJS
Let's JavaScript
JavaScript: Patterns, Part 3
Useful and Practical Functionalities in Realm
Javascript
Lec 28 - operator overloading
Introduction to RxJS
NyaruDBにゃるものを使ってみた話 (+Realm比較)
Lec 26.27-operator overloading
Introduction to Object Oriented Javascript
Operator_Overloaing_Type_Conversion_OOPC(C++)
Introduction to JavaScript Programming
Object Oriented Programming in JavaScript
Object Oriented Programming In JavaScript
Advanced JavaScript
Operator overloading and type conversions
Ad

Similar to Qtp training session IV (20)

PPT
Qtp Descriptive Programming
PPT
Qtp Mgl Presentation
PPT
Qtp Descriptive Programming 11200
PPT
Qtp Descriptive Programming 11200
PPT
QTP Descriptive Programming
PPT
QTP Slides Presentation.
PPT
N Dhanasekaran 2008-2009 Quick Test Professional Presentation
PPT
Qtp Slides
DOCX
descriptive programming
PPT
Qtp - Introduction to synchronization
PPTX
Automation Tool QTP
PPT
Qtp - Introduction to automation basics
PPT
PPT
Qtp - Introduction to fundamentals of vbscript
PPT
Qtp Training Deepti 2 Of 44780
PPT
HP Quick Test Professional
PPTX
QTP Automation Testing Tutorial 2
DOC
Qtp interview questions
DOC
Qtp interview questions
DOC
Interview qutions
Qtp Descriptive Programming
Qtp Mgl Presentation
Qtp Descriptive Programming 11200
Qtp Descriptive Programming 11200
QTP Descriptive Programming
QTP Slides Presentation.
N Dhanasekaran 2008-2009 Quick Test Professional Presentation
Qtp Slides
descriptive programming
Qtp - Introduction to synchronization
Automation Tool QTP
Qtp - Introduction to automation basics
Qtp - Introduction to fundamentals of vbscript
Qtp Training Deepti 2 Of 44780
HP Quick Test Professional
QTP Automation Testing Tutorial 2
Qtp interview questions
Qtp interview questions
Interview qutions
Ad

Recently uploaded (20)

PDF
Hindi spoken digit analysis for native and non-native speakers
PPTX
The various Industrial Revolutions .pptx
PDF
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
PDF
August Patch Tuesday
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PPTX
Final SEM Unit 1 for mit wpu at pune .pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PDF
STKI Israel Market Study 2025 version august
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
PDF
Getting Started with Data Integration: FME Form 101
PDF
Five Habits of High-Impact Board Members
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
Developing a website for English-speaking practice to English as a foreign la...
PPT
What is a Computer? Input Devices /output devices
Hindi spoken digit analysis for native and non-native speakers
The various Industrial Revolutions .pptx
TrustArc Webinar - Click, Consent, Trust: Winning the Privacy Game
A review of recent deep learning applications in wood surface defect identifi...
Hybrid horned lizard optimization algorithm-aquila optimizer for DC motor
Zenith AI: Advanced Artificial Intelligence
Univ-Connecticut-ChatGPT-Presentaion.pdf
ENT215_Completing-a-large-scale-migration-and-modernization-with-AWS.pdf
August Patch Tuesday
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Final SEM Unit 1 for mit wpu at pune .pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
STKI Israel Market Study 2025 version august
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
Getting Started with Data Integration: FME Form 101
Five Habits of High-Impact Board Members
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Developing a website for English-speaking practice to English as a foreign la...
What is a Computer? Input Devices /output devices

Qtp training session IV

  • 1. QTP Training Session IV Presented By : Aisha Mazhar 13 Aug 2012
  • 2. Agenda - Intermediate • Output Values • Understanding the script • VBScript basics. • Some FUM's (Frequently Used Methods) • Object Identification Mechanism (Object Spy) • Descriptive programming.
  • 3. Output Values • Output values are used for checking the properties of the object. And these properties are stored in the specified column during run session in the DataTable
  • 4. VB Script basics • Declaring Variables – Using Dim, Public, Private • Naming Restrictions – Must begin with an alphabetic character. – Cannot contain an embedded period. – Must not exceed 255 characters. – Must be unique in the scope in which it is declared. – Make sure you never create variables that have the same name as keywords • Assigning Values to Variables • Creating Constants • Conditions & Looping
  • 5. FUM’s • 'GetROProperty • 'Exist(n) • 'Wait • 'Msgbox • DataTable.GetSheet(“SheetNo/Name").GetRowCount • ExitTest (“Optional Message”) • strcomp(<variable>,”<Text to compare>“ <Operator > <Condition>) E.G Strcomp(State,”--Please Select--” = True)
  • 6. Object Spy • An inbuilt tool that enlists all of the test-object and runtime- object properties. • Can view the properties of any Object in the open application. P R O P E R V T A I L E U S E S
  • 7. DP DP? What ?? Descriptive Programming. But What?? Cool way to work w/o QTP object repository And Why? Many Reasons How? There are two ways 1. Throw the properties and values straight into a command ObjectClassName("property:=value", "property:=value") Ofcourse we're not limited to only 2 properties. We can write more: ObjectClassName("property:=value", "property:=value", "property:=value")
  • 8. DP 2. Throw the properties & values into a description object, and throw IT into the command We are using the variable oDesc to store the return from Description.Create. Since, oDesc is preceded by a Set statement, that makes it an object reference. Therefore, when the above statement executes, oDesc will become an object reference to a description object. colObject is nothing but an array of all objects having the exact same properties as the description object.