SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Dec 2007
    Location
    PA, USA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Changing window names changing object hierarchies

    Hi,
    We are using 8.2 version of QTP to automate SIEBEL application.

    We found the following changes that was happening constantly in the application. From Page(Siebel Pharma)To Page(Siebel epharma)
    [img]/images/graemlins/confused.gif[/img]
    From Page(Siebel epharma) To Page(Siebel Pharma)
    From Page(Siebel Pharma) To Page(Siebel epharma)
    From SiebApplication("Siebel Pharma") To SiebApplication("Siebel epharma")

    To overcome this issue, the probable solution recommended was on the lines of ‘regular expressions’.
    But we were unable to implement this in 8.2

    Kindly provide me with a solution at the earliest.

    Thanks.
    Keep smiling
    Keep posting
    Manny

  2. #2
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Changing window names changing object hierarchies

    Regular expression you need to use is

    Page("Siebel.*) or Page("Siebel.*harma")

    and

    SiebApplication("Siebel.*") or SiebApplication("Siebel.*harma")
    -Suchit

  3. #3
    Junior Member
    Join Date
    Dec 2007
    Location
    PA, USA
    Posts
    18
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Changing window names changing object hierarchies

    Will this work with QTP 8.2
    Keep smiling
    Keep posting
    Manny

  4. #4
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Changing window names changing object hierarchies

    You need to make the change in the OR. Its basic QTP stuff and works for 8.2
    -Suchit

  5. #5
    Senior Member
    Join Date
    Mar 2006
    Location
    Bristol, UK
    Posts
    1,530
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Changing window names changing object hierarchies

    [ QUOTE ]
    Regular expression you need to use is

    Page("Siebel.*) or Page("Siebel.*harma")

    and

    SiebApplication("Siebel.*") or SiebApplication("Siebel.*harma")

    [/ QUOTE ]

    Are you sure thsi works? I never knew that regular expressions could be used in this way. I would have used the regular expression within the OR itself not within the name of the object.

    If this works then cool, it's something else to note, if it doesn't work then create one page and one SiebApplication object in the OR, and have the regular expression within that

  6. #6
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Changing window names changing object hierarchies

    Will confirm and post the reply.
    -Suchit

  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: Changing window names changing object hierarch

    Nope it won't work the way it is posted. It is just the logical name that is changing

  8. #8
    Senior Member
    Join Date
    Feb 2008
    Location
    Los Angeles, CA, USA
    Posts
    861
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Changing window names changing object hierarch

    Yah. sorry about that. Infact two of my own posts are contradictory!

    The solution would be

    In object repository, change the page title/name to

    "Siebel.*" or "Siebel.*harma" for Page(Siebel epharma)/Page(Siebel Pharma)


    and

    "Siebel.*" or "Siebel.*harma" for SiebApplication("Siebel Pharma")/SiebApplication("Siebel epharma")
    -Suchit

 

 

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 06:38 AM.

Copyright BetaSoft Inc.