SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    .tsr file in QTP

    How to load a .tsr file(object repository) in QTP 9 thru QTP code or VBS ? [img]/images/graemlins/confused.gif[/img]
    Regards,
    RD

  2. #2
    Senior Member
    Join Date
    Feb 2006
    Location
    Bangalore
    Posts
    593
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: .tsr file in QTP

    I cant say for QTP9. But the following code works fine for QTP8.2
    <font class="small">Code:</font><hr /><pre>
    Dim qtApp 'As QuickTest.Application ' Declare the Application objectvariable
    Dim qtTestResources 'As QuickTest.Resources ' Declare a Resources object variable
    Set qtApp = CreateObject("QuickTest.Application") ' Create the Applicationobject
    qtApp.Launch ' Start QuickTest
    qtApp.Visible = True ' Make the QuickTest application visible
    Set qtTestResources = qtApp.Test.Settings.Resources
    ORPath=absolutepath/filename
    qtTestResources.ObjectRepositoryPath =ORPath
    qtTestResources.SetObjectRepositoryAsDefault
    </pre><hr />
    Vengat Ramanan.R

  3. #3
    Moderator ifraser's Avatar
    Join Date
    Jul 2004
    Location
    Brisbane, Australia
    Posts
    2,090
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: .tsr file in QTP

    [ QUOTE ]
    I cant say for QTP9. But the following code works fine for QTP8.2
    <font class="small">Code:</font><hr /><pre>
    Dim qtApp 'As QuickTest.Application ' Declare the Application objectvariable
    Dim qtTestResources 'As QuickTest.Resources ' Declare a Resources object variable
    Set qtApp = CreateObject("QuickTest.Application") ' Create the Applicationobject
    qtApp.Launch ' Start QuickTest
    qtApp.Visible = True ' Make the QuickTest application visible
    Set qtTestResources = qtApp.Test.Settings.Resources
    ORPath=absolutepath/filename
    qtTestResources.ObjectRepositoryPath =ORPath
    qtTestResources.SetObjectRepositoryAsDefault
    </pre><hr />

    [/ QUOTE ]

    These methods no longer work in QTP 9.0 there is an example in the QTP 9.0 help on how to deal with OR's. It didnt take me long to find.
    You can buy my Art from: "Post Cards now available"
    Ian Fraser Landscape Photography
    World Wide Shipping.

    http://mowogman.wordpress.com/

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:55 PM.

Copyright BetaSoft Inc.