SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Nov 2001
    Location
    Stockholm, Sweden
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Raw attach or Object mapping?

    Hi!
    We are just about to start using TestPartner to test a Html/Java application. I've noticed that the default setting is to record objects as raw attach instead of learning the objects and store them in the object map.
    Does any of you experienced guys know which way of working is best? Raw attach or object mapping? Perhaps a combination is best? What do you suggest, and why?

    Thanks!!

  2. #2
    Junior Member
    Join Date
    Aug 2002
    Location
    Vienna
    Posts
    15
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Raw attach or Object mapping?

    Normally you have nothing to change in the default settings of TestPartner. Windows are stored in the object map and all the other things are raw attach. That works perfect. If you have problems with special objects, then you can add this object also to the object map and change what ever you want. Thatīs the best way.

  3. #3
    Senior Member
    Join Date
    Jul 2001
    Location
    Montreal, QC, Canada
    Posts
    366
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Raw attach or Object mapping?

    In my experience with object maps, they take up alot of room, take a long time to load when you have alot and you can not export them to keep a copy in text form of the mappings. I'm not a fan of how they were implemented, however the need for centralized mapping does not go away.

    In new projects i've opted for raw attach, however i would always edit your scripts to use a variable and keep these mappings in a module so they can easily be edited/maintained.

    Example:

    Captured:
    Window("Application=IEXPLORE.EXE Caption='STS Web - Logon - Microsoft Internet Explorer'").Attach

    Edit:
    Window(csLoginWindow).Attach

    Module has ('$TPInclude module in scripts or Class however you are set up):

    Public Const csLoginWindow = "Application=IEXPLORE.EXE Caption='STS Web - Logon - Microsoft Internet Explorer'"

    Not only can i export the module to have a copy of the mappings but if the caption gets changed to NSB Web - Logon ... then i have one place to change and i've up and running again.

    HTH,
    Max

  4. #4
    Member
    Join Date
    Aug 2002
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Raw attach or Object mapping?

    Thanks Max,

    Does this mean that we can define the window attahced as a public constant and then use the same reference all over places? Does this apply to all type of windows?

  5. #5
    Senior Member
    Join Date
    Jul 2001
    Location
    Montreal, QC, Canada
    Posts
    366
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Raw attach or Object mapping?

    I'm not sure i understand what you are asking. It's not only windows, it's any object. What i've done is created a module for the recognition strings called modConstants and defined all my windows, buttons, urls, etc... basically any recognitions required that would be hard coded in the function calls that TP uses to attach to windows or get/set values on the object.

    This module is TPInclude'd in my classes, there's at least one class i use in any of my scripts, so the recognition strings are visible everywhere.

    Max

 

 

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 9.68%
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:47 AM.

Copyright BetaSoft Inc.