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
    Oct 2001
    Posts
    28
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    trying to reuse code

    Hello,

    I have the following problem :
    Some tabbs are used in several places in the AUT. So I'd like to reuse some (recorded) code.
    I've done the following : I've recorded some actions on tab1 in window1 then I've tried to replay this record in tab1 within window2.
    I've got the following exception :

    "ScriptException on line 32 of script Test.reutilisation - com.rational.test.ft.ObjectNotFoundException: Looking for [GuiSubitemTestObject(Map:listedongletsdepage)], best failing candidate score(23575) was [{accessibleContext.accessibleRole=liste d''onglets de page, tabCount=5, .tabs={Général,Supports,Copie patient,Copies,Adresse spécifique}, name=cPnlOngletDiffusion.cTbpDiffusion, .classIndex=0}].]."

    Notice that Tab1 has the same value on its property "name" in window1 and window2

    Can somebody help ?
    Thanks in advance !

    Corinne.

  2. #2
    Junior Member
    Join Date
    Aug 2003
    Location
    India
    Posts
    19
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: trying to reuse code

    Hi,

    Just check by opening tab2 and object map and use option "show object" on object captued for tab1( it comes when you do right click on object after selection)

    If the red square appears on object for tab 2.

    If it apperas there are some hope.

    You have to play around with regular expression for the higher object in Object map.

    Like you may have to put tab1|tab2 in recognition properties.

    All the Best
    **************************************************
    Do not forget to share your Experience if it works
    or you faced some other issues
    **************************************************

  3. #3
    Senior Member
    Join Date
    Apr 2003
    Posts
    388
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: trying to reuse code

    You object is on an object tree.
    If you wildcard (using Rex-regular expressions)all objects on the tree above you tables then you would be able to reuse the table object name and the code. I use a MainObject that is wild carded. On the tree for this main object I keep menus, help text, logout options and items that do not change from page to page. Once the MainObject is created, drag the tab2 object map onto the tab1 object in the mainobject tree. This should resolve your issue.

 

 

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 08:04 PM.

Copyright BetaSoft Inc.