Friday, 24 July 2015

DYNAMIC HANDLING REPOSITORIES IN QTP


              Dynamic handling 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”.

STEPS:
Generate the script
Go to object repository
Go to file
Export local objects
Save with extension .tsr
Copy the path of the shared repository file

                             var="C:\Documents and Settings\srss\Desktop\asa.tsr"
                             RepositoriesCollection.RemoveAll
                             repositoriescollection.Add (var)
                             VbWindow("CALCULATOR").VbEdit("VALUE1").Set "10"
                             VbWindow("CALCULATOR").VbEdit("VALUE2").Set "20"
                             VbWindow("CALCULATOR").VbButton("ADD").Click




No comments:

Post a Comment