SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Aug 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Windows Declaration

    Couple of simple question from Silk newbie -
    1. My window decl has so many objects that I may never use. Is it better to record window declaration and only save useful objects. ie. open the .inc file and delete the objects that will never be used.
    2. Do people use functions to get a list of specific objects and use that to generate window declarations .inc file? (I would not have to do this if the Window declarations capture window would let you filter or sort by object type.)

    ------------------


    [This message has been edited by softlogger (edited 10-08-2002).]

  2. #2
    Senior Member
    Join Date
    Aug 1999
    Location
    Cambridge, UK
    Posts
    470
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows Declaration

    My recommendation would be to leave in all the objects; they don't do any harm, and I have found in the past that I have ended up using objects that I thought I would never have a use for.

    ------------------

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows Declaration

    I'm with vince.

    There really is no substitute for an excellent include file. I find that I spend quite a bit more time getting good declarations than I do actually coding the tests. You'll be thankful for it later.

    Now, one trick is to make effective use of the collapsable code. Place a comment in the include file that tells what is under it, then nest your declarations one "bump" to the right of that comment and collapse it. That will clean things up a bit visually, while preserving the declarations for you to use in the future.



    ------------------

  4. #4
    Member
    Join Date
    Mar 2001
    Location
    nashville, tn, usa
    Posts
    86
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows Declaration

    I will argue on the other side of the fence here.

    Being new to the application, it might make sense to pare down the list. You will be better able to find and focus exactly what you need then.

    Also, the declaration might not even structured in a beneficial way - especially if you have a complex window.

    Once you get familiar with the application and the declarations you need, added them back in as you need them is easy. And you will likely create these from scratch anyway - as opposed to just taking what SilkTest decides.

    ------------------

  5. #5
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows Declaration

    It is really just a matter of your personal coding style. I usually leave everything, but move the declarations that I am using to the top.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  6. #6
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows Declaration

    I've done it both ways but I am slowly changing to deleting declarations that I'm not immediately going to use. This keeps down the clutter, and provides a way to know for certain that objects that appear in the declarations ARE being utilized by something somewhere.

    As a matter of course I always delete the statictext objects that are directly associated with input controls. The input control uses the static text as its tag, so I lose nothing by doing this.

    John


    ------------------

  7. #7
    Senior Member
    Join Date
    May 2002
    Posts
    448
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Windows Declaration

    I have never deleted any of the currently unwanted objects from the declaration, except for the static text items ofcourse. The reason being that the app that we were testing was under continuous developement, actually came out with 10 major releases and for every test cycle the coverage kept on increasing. So we actually had no idea whether the items now in the declaration could or could not be used in the future.

    I dont have to highlight here that we built re-usable scripts right from day one

    ------------------
    never say die
    Life, that dares send, A challenge to his end,
    And when it comes say, Welcome friend.

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin 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 10:44 AM.

Copyright BetaSoft Inc.