SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Junior Member
    Join Date
    Feb 2000
    Location
    Lenexa, Kansas (USA)
    Posts
    1
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Window ID for java objects

    There are 2 parts to this question: I am testing a standalone java application using java 1.3 on NT4.0. I would like to know what property of the java components that SilkTest is reading to determine the Caption for the window identifier. If I can get the answer then I can have a java developer make the necessary change to the code. I currently get "" as the caption. I cannot use the index or the window id as they are not constant from window to window.

    A second part to the question is the same component, which is an image for a button, has a button id property which I can capture. Is there any way to use this button id property as a window identifier. I hope someone can help as I currently have 4 cases outstanding with Segue Support on java issues which they have not been able to answer or even let me know they are working on them. Thanks for your help.

    ------------------
    Kevin Evans, CQA CSTE
    QA Director
    FriendlyWorks
    kevans@friendlyworks.com
    Kevin Evans, CQA CSTE
    QA Director
    FriendlyWorks
    kevans@friendlyworks.com

  2. #2
    AJ
    AJ is offline
    Moderator AJ's Avatar
    Join Date
    Jun 1999
    Location
    San Jose, CA
    Posts
    1,691
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Window ID for java objects

    1st part:
    Why aren't the Window ID constant? They are supposed to be different from Window to Window. It is when they're the same in each window that is a problem.

    My advice is to use Window id 1st then index 2nd and the location 3rd in the multitag.

    2nd part:
    properties may be able to help in identifying the object... Here's how...

    I'm guessing at this though, but I have done it before I think way in the past.

    You create a class and in the class the tag is a function call to get the property

    you change the objects you need to have these tags as what you think their properties should be. (The class has to inherit from the window class)

    ------------------
    AJ Alhait
    BetaSoft Inc.
    AJ Alhait
    BetaSoft Inc.

 

 

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 05:31 PM.

Copyright BetaSoft Inc.