SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Aug 2001
    Location
    Manchester, NH
    Posts
    121
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Does everyone declare all their windows?

    Another thread got me wondering if everyone is in the practice of declaring all their windows, or if there are situations where people are not declaring windows.

    I believe in the benefit declaring all of my windows, however I find myself in a situation where I probably won't be able to do that for an application I just need to write a quick script for.

    ------------------
    Adam Kuczkowski

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Elizabeth, CO, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does everyone declare all their windows?

    Again...yes...and no.

    When working on an application (e.g. a web app) that has a lot of template-based windows (that is, windows that are all alike with perhaps different contents or graphics based on actions), I may create common windows to handle all of those.

    You may discover that many things fall into this category. For example, most e-commerce sites, the product pages are all the same but with different content, graphics, etc. ASP or JSP pages with different queries thrown to them.

    So, no, I don't declare every page, but I declare every unique page that has significant differences to them.

    - Dave



    ------------------
    Amelior Technology
    dreed@ameliortech.com
    WaltzingRhino.com
    A concerned Borland customer, a fly in the ointment, a wrench in the works.

  3. #3
    Member
    Join Date
    Oct 1999
    Location
    St. Paul, MN
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does everyone declare all their windows?

    We wondered the same and posed this question a few years back to a Segue training rep. He said that test execution will go quicker if you record all your windows - and all objects within the windows. Apparently if you don't record all the objects within your windows SilkTest still has to capture that information during execution. Maybe things have changed as SilkTest has progressed....

    Dana


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

  4. #4
    Junior Member
    Join Date
    Aug 2001
    Location
    Mountain View, CA
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does everyone declare all their windows?

    I have a question that falls into this area as well. When testing web apps (where many pages are the same with different links, etc), I have problems with some pages when the links change. For example, on a message board, one page may have many more message links than the next, so sometimes during execution silk cant find the link at all, or it clicks the wrong one because it was a different place on the similar page recorded. I have tried declaring each window separately, giving each unique identifiers/tags, but silk always recongnizes all the windows as the main one. I havent explained this very well, but hopefully someone may have some insight.

  5. #5
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does everyone declare all their windows?

    For many web applications, I record the window, then delete all of the child objects. This way the window itself is recognized, but the objects within the window are all dynamically instantiated.

    Example:

    Login.HtmlTextField ("$user").SetText ("abc")
    Preferences.HtmlLink ("Home").Click ()

    The aeweb3.inc library, available at automationexpertise.com, also allows you to manipulate most web objects with just a tag, regardless of whether it is a table, using functions such as Link, Image, and LinkPathClick ()

    Examples:

    Link ("Home")
    Image ("$imglogo")
    TextFieldSetText ("$user", "abc")

    With this functions, no declarations are required, resulting in more meaningful testcases and less maintenance.

    Hope this helps.

    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  6. #6
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does everyone declare all their windows?

    As a rule,

    Declare what objects you need to interact with. (textfields to type into, buttons to push, ect.) But be careful of the tags you choose for the object. WindowId is a good choice, be cautious with using index.

    Don't mess with the rest. If your scripts don't refer to the objects in your frame file, get rid of them. Less to maintain. Less to worry about.



    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  7. #7
    Senior Member
    Join Date
    Sep 2000
    Location
    Twin Cities, MN, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Does everyone declare all their windows?

    It depends on the page and what I'm doing with it. For pages that have a lot of fields and buttons that differ in recognition, I have set up databases with a table for each page. Browser would be one field, followed by fields for the moniker I attach to each object. The value is the index. By querying the DB table in my test case I can pull the index by browser.
    For situations like this I think it's six of one and half-a-dozen of the other. This is just my way. I have tried multiple declarations, empty declarations, etc. My preference is no declarations and a DB.

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

 

 

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 08:53 AM.

Copyright BetaSoft Inc.