Dynamic handling of object Repositories
Dynamic handling of object Repositories
Loading repositories during running, finding path of the repositories and removing repositories is called Dynamic Handling of Object Repositories.
Using this feature we can increase QTP performance. To do this, QTP is providing an object called “RepositoriesCollection”.
By Jigar Gosai
Email: jigar.gosai@gmail.com
Syntax for Loading a Repository:
RepositoriesCollection.Add “Path of the Repository File”
Syntax for finding Position of the Repository:
Variable=RepositoriesCollection.Find(“Path of the Repository”)
Syntax for Removing the Repository:
RepositoriesCollection.Remove(position)
Syntax for Removing All Repositories:
RepositoriesCollection.RemoveAll
Example:
RepPath="C:\Documents and Settings\Administrator\My Documents\Login.tsr"
RepositoriesCollection.Add (RepPath)
systemutil.Run "C:\Program Files\HP\QuickTest Professional\samples\flight\app\flight4a.exe"
Dialog("Login").Activate
Dialog("Login").WinEdit("Agent Name:").Set "sudhakar"
Dialog("Login").WinEdit("Password:").Set "mercury"
Dialog("Login").WinButton("OK").Click
pos=RepositoriesCollection.Find(RepPath)
RepositoriesCollection.Remove(pos)
RepositoriesCollection.RemoveAll
***********************************
By Jigar Gosai
Email: jigar.gosai@gmail.com
Cloud Testing
Cloud Testing
ISTQB Certification
ISTQB Sample Paper - 3
ISTQB Sample Paper - 2
ISTQB Sample Paper - 1
QC Certification
QTPCertification Sample Paper (HP0-M15) Dumps
QTP Certification
QTP Certification Sample Paper (HP0-M16) Dumps
QTP Interview Questions and Answers
QTP Interview Questions and Answers - 1
QTP Interview Questions and Answers - 2
QTP Interview Questions and Answers - 3
QTP Interview Questions and Answers - 4
QTP Interview Questions and
Answers - 5
QTP Interview Questions and Answers - 6
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment