SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    JavaJFCPageLists are hosed...?

    JVM 1.3 ... Applet...
    I have a tabbed pane(JavaJFCPageList) with 12 tabs.
    Each tab contains a ListView.
    Each list has an item called 'tabbug' in it.
    I wrote a test method:

    void selectListItem(string tabname)
    getTabbedPane().Select(tabname)
    getList().SetFocus()
    selectListItem("tabbug")

    This method is a public member of a class called 'wcLaunch' which is simply the encapsulation of a panel containing the tabbed pane.

    The following piece of code causes the dreaded response:
    *** Error: Internal error in agent - Child not found

    window launch = wcLaunch()
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(EXTERNALS) // fails here
    launch.selectListItem(SCHEMAS)
    launch.selectListItem(INSTANCES)
    launch.selectListItem(OUTPUTS)
    launch.selectListItem(EXTERNALS)
    launch.selectListItem(STRUCTURES)


    however Silk Test is happy with the next piece of code:

    window launch = wcLaunch()
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)
    launch.selectListItem(STRUCTURES)

    This suggests Silk Test has a problem
    dealing with JavaJFCPageList.


    ------------------
    Tempus fugit, Carpe Diem, et al

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

    Re: JavaJFCPageLists are hosed...?

    Your problem in both posts is most likely due to applying an incorrect tag.

    Compile your test. Then using Record/Tags or Record/Identifier take a careful look at the objects inside your pagelists.
    Record/Identifier will show a dynamic tag, instead of a label, when you point the cursor at an incorrectly tagged object.

    Pagelists are containers. That means that the objects within them must have the pagelist tag as part of their fully-qualified tags for Silk to be able to recognise them.
    You have three alternatives here: explicitly with a parent statement, use a concatenated-tag, or imply parentage with nesting.

    I typically prefer the second so that I don't have to explicitly identify the "PageList" as part of the window.method call.

    Pagelists are also like radio lists in that they're manipulated by passing a string which represents their label.

    I use Select() to activate a particular page, and GetSelText() to obtain "who's on top".

    HTH,

    John


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

  3. #3
    Senior Member
    Join Date
    Nov 2001
    Location
    UK, Oxford
    Posts
    150
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: JavaJFCPageLists are hosed...?

    But...
    Silk Test is having no problem recognising the components inside the tabbed pane.
    I disagree that it is a tag issue.
    However, I was not as thorough as I could have been, and I noticed later that I was having a particular problem switching between
    two particular tabs.
    If I re-arranged the test so I was never switching between these tags directly, everything was OK.
    So I thought the problem is mine, not Silk Test.
    I then decided to try selecting the first thing from each list, using "#1" notation.
    The test failed in a completely different place, same error message.
    Now, something is clearly wrong here, that has nothing to do with tags, or declarations...

    ------------------
    Tempus fugit, Carpe Diem, et al

  4. #4
    Junior Member
    Join Date
    Jan 2002
    Location
    Santa Clara, Ca. USA
    Posts
    22
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: JavaJFCPageLists are hosed...?

    A little different take on selecting the tabs, I had a similar issue and didn't want to keep track of the active window, I used:
    sWin = [string]SnifferAgent.GetActive ( )
    then pass in the tab name:
    @sWin.ClickTab("Decode")
    Clicktab is in the win class and uses a select stmt to click the tab based on "this":
    this.Afx40000081.Afx40000081.Click (1, 35, 7)
    The point being my tabs would have different inheritance based on the active page, yours may be similar. -Len


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

 

 

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 02:29 PM.

Copyright BetaSoft Inc.