SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 9 of 9
  1. #1
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    disabling Smart ID on all PCs

    Currently you can disable Object Recognition's Enabled Smart Identification for EACH Web object using the Tools->Object Identification dialog.

    If I want to do this on all PCs is there a config file of some sort I can copy from one PC to another so as to not have to interact with QTP's IDE multiple times?

    -Thanks, Terry (I am using QTP 9.2)

  2. #2
    Moderator
    Join Date
    Jan 2007
    Location
    Pittsburgh, PA
    Posts
    2,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    I never tried this before, but it's worth giving a try.

    1) Disable Smart Identification for all objects on one pc and generate code using Generate script button on the Object Identification dialog.
    2) Take the generated code into vbs and run it on all other machines.

  3. #3
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    Good idea. Never thought of this. Looking at the generated script it should work--and for more than just disabling [UN-]smart identification. I should be able to experiment on a a single PC to confirm that this works or not. Will reply back with results.

    -Thanks, Terry

  4. #4
    Senior Member
    Join Date
    Jun 2007
    Location
    Brussels, Belgium
    Posts
    118
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    Is there any thing other than this, why generate script is there?

    I use generate script all the time to keep the settings same on all my QTP PCs.

    There are 3 places exactly where the generate script is available.

    Enjoy.
    -----------
    Regards,
    Feroz

    Its automation not automagic

  5. #5
    Senior Member
    Join Date
    Dec 2006
    Location
    Germany, Dresden
    Posts
    1,536
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    [ QUOTE ]
    Good idea. Never thought of this. Looking at the generated script it should work--and for more than just disabling [UN-]smart identification. I should be able to experiment on a a single PC to confirm that this works or not. Will reply back with results.

    -Thanks, Terry

    [/ QUOTE ]

    i use following code in my init-function:
    '###
    Set App = CreateObject("QuickTest.Application")
    App.Test.Settings.Run.DisableSmartIdentification = True
    '###

    or

    '###
    Setting("DisableSmartIdentification") = True
    '###

    its a short fast way, you dont need to configure each single test-pc
    http://qcmt.pc-polis.de

    de omnibus dubitandum

    For all Questions: Please be sure to take a look at the QTP Manual before posting any Questions, thanks for doing this

  6. #6
    SQA Knight
    Join Date
    Jul 1999
    Location
    Grand Rapids, MI
    Posts
    3,727
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    Well I want to absolutely, positively, inhibit QTP from recording objects into the OR with SI disabled. Your method inhibits the use of SI objects at playback time. While that should be adequate, I want to make sure that SI enabled objects never see the light of day in any script recorded on any PC.

    SI is absolutely the worst "enhancement" I have ever encountered in any automation test tool I have worked with. And to add insult to injury you have to "opt out" of its implicit use.

  7. #7
    Moderator
    Join Date
    Jul 2005
    Location
    Delhi
    Posts
    15,575
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    7 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    Terry, I believe SI should be a run-time feature and not a record time feature. So what rscholz660 should be enough to resolve your concern

  8. #8
    Member
    Join Date
    Jan 2007
    Posts
    230
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    Reading the above, and the QTP help manuals and confused at getting init-function to work.

    Where do I go to create this file?

    How do I save it with the script so that multiple PCs can use?
    Kevin Jackey

  9. #9
    Member
    Join Date
    Jan 2007
    Posts
    230
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: disabling Smart ID on all PCs

    Also recieved this tip from Mercury allowing the changing of all repository Smart Identification values to "False":

    "To Disable all Smart Identification switches for an OR;
    1. Open the object repository file in the "Object Repository Manager" in QTP and go to menu "File->Export to XML" to export the object repository to an XML file.
    2. Use an editor (for example, Notepad) to open the XML file
    3. Perform a "Replace" operation as follows;
    Find What: SmartIdentification Algorithm="Mercury.TolerantPriority" Active="1"
    Replace with: SmartIdentification Algorithm="Mercury.TolerantPriority" Active="0"
    4. ‘Replace All’ to change the smart identification of all objects to False.
    5. Then, go back to the "Object Repository Manager" and go to the menu "File->Import From XML" and save or overwrite the new object repository."
    Kevin Jackey

 

 

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.00%
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 05:48 AM.

Copyright BetaSoft Inc.