SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Regex Setting change in OR with SetTOProperty?

    Hi,

    Using SetTOProperty, is it possible to modify the "Regex" setting enabled for a particular property of an object?

    In my project, for the weblist object captured in OR, the regex has been enabled for the name property. The name of the weblist goes something like this - "A.B.C[0]"

    Now while setting the value of this property, using "SetTOProperty" method, QTP demands the value like this "A.B.C\[0\]". QTP does not identify the object when I pass "A.B.C[0]" in the SetTOProperty method. The reason for this is that the regex has been enabled for this property in OR.

    So, is it possible at Run Time to disable the Regex so that I can straight away give the value like - "A.B.C[0]".

    Please clarify.

    - Devaraj R

  2. #2
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regex Setting change in OR with SetTOProperty?

    Hi,

    Is what I have asked reg. SetTOProperty is possible with QTP?

    Please let me know.

    - Devaraj R

  3. #3
    Senior Member
    Join Date
    Sep 2008
    Posts
    111
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regex Setting change in OR with SetTOProperty?

    We cannot set regex checkbox at runtime in OR.

  4. #4
    Member
    Join Date
    Dec 2009
    Posts
    261
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regex Setting change in OR with SetTOProperty?

    Hi,
    So, setting / Unsetting Regex for an object captured in Object Repository is not possible at Run time. Is my understanding correct?

    -Devaraj R

  5. #5
    Senior Member
    Join Date
    Sep 2008
    Posts
    111
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Regex Setting change in OR with SetTOProperty?

    Yes, absolutely

 

 

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.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 11.54%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 03:04 AM.

Copyright BetaSoft Inc.