SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Junior Member
    Join Date
    Jul 1999
    Location
    Piscatway NJ US
    Posts
    6
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Silktest+Java+Hidden Obj

    Hello, I a weird problem here, hope someone can lend a hand...

    The application is stand alone, written in JBuilder.
    The class of the object is "borland.jbcl.view.GridCore".

    When I do a RECORD/Window Identifer, and place the mouse
    over the object (ie., a table cell), the only reference
    it states is the actual window when the object is in.
    So I then go to RECORD/Class, and point to it, and
    Silk comes up with the same thing. Now, on the RECORD
    CLASS dialog box, I then check the "Show all classes"
    check box. Now, I point the object, and it is seen as:

    *CLASS NAME: BorlandJbclViewGridCore
    *TAG: [borland.jbcl.view.GridCore]
    *Derived: AnyWin
    *WINDOW:
    OrderList.
    CustomWin("[com.bellcore.mvan.framework.MFrame$MRootPane]#1|
    $com.bellcore.mvan.framework.MFrame$MRootPane").
    CustomWin("[com.sun.java.swing.JLayeredPane]#1|$null.layeredPane").
    CustomWin("[com.sun.java.swing.JPanel]#1|$null.contentPane").
    CustomWin("[com.sun.java.swing.JPanel]Order Number:|$com.sun.java.swing.JPanel").
    CustomWin("[borland.jbcl.control.GridControl]#1|
    $borland.jbcl.control.GridControl").
    CustomWin("[com.sun.java.swing.JViewport]#3|
    $com.sun.java.swing.JViewport[3]").
    CustomWin("[borland.jbcl.view.GridCore]#1|
    $borland.jbcl.view.GridCore")


    Before I close the record class dialog, I uncheck the "Show all
    class" check box.

    From the above tags and etc., I then make several new classes
    and place them in a seperate .inc file and place the
    USE statement in my main .inc file

    [-] winclass GridCore : AnyWin
    [ ] tag "[borland.jbcl.view.GridCore]"
    [ ]
    [-] winclass ViewPort :AnyWin
    [ ] tag "[com.sun.java.swing.JViewport]"
    [ ]
    [-] winclass MFrame :AnyWin
    [ ] tag "[com.bellcore.mvan.framework.MFrame]"
    [ ]
    [-] winclass LayeredPane :AnyWin
    [ ] tag "[com.sun.java.swing.JLayeredPane]"
    [ ]
    [-] winclass JPanel :AnyWin
    [ ] tag "[com.sun.java.swing.JPanel]"
    [ ]
    [-] winclass GridControl: AnyWin
    [ ] tag "[borland.jbcl.control.GridControl]"

    I then open the JAVAEX.INI file and add ALL the above tags
    without the []'s to the CLASSLIST section:

    [ClassList]
    borland.jbcl.view.GridCore=TRUE
    borland.jbcl.control.GridControl = TRUE
    com.bellcore.mvan.framework.MFrame=TRUE
    com.sun.java.swing.JLayeredPane=TRUE
    com.sun.java.swing.JPanel = TRUE
    com.sun.java.swing.JViewport = TRUE


    Next, I exit out of Silk, and my application, and restart both again.

    I then try record class, and record window declaration to determine if
    the above procedures have help--same result, object not found.
    Now, the strange part is when I bring up RECORD/Class again,
    and check the show all class button, it comes up the names of
    the classes as I named them:

    OrderList.
    MFrame("#1|$com.bellcore.mvan.framework.MFrame$MRo otPane").
    LayeredPane("#1|$null.layeredPane").
    JPanel("#1|$null.contentPane").
    JPanel("Order Number:|$com.sun.java.swing.JPanel").
    GridControl("#1|$borland.jbcl.control.GridControl" ).
    ViewPort("#3|$com.sun.java.swing.JViewport[3]").
    GridCore("#1|$borland.jbcl.view.GridCore")

    With the show all classes box STILL enabled, I close the
    record class dialog. Next, I declare the window and
    take the parts I need:

    [-] MFrame MvanFramework
    [ ] tag "$com.bellcore.mvan.framework.MFrame$MRootPane "
    [-] JPanel NullGlassPane
    [ ] tag "$null.glassPane"
    [-] LayeredPane NullLayeredPane
    [ ] tag "$null.layeredPane"
    [-] JPanel NullContentPane
    [ ] tag "$null.contentPane"
    [ ]
    [+] JavaJFCPushButton ShowItems
    [ ] tag "Show Items"
    [ ]
    [-] GridControl OrderNumber1
    [-] multitag "Order Number:"
    [ ] "$borland.jbcl.control.GridControl"
    [-] JavaJFCScrollBar ScrollPane1
    [ ] tag "#2"
    [-] JavaJFCScrollBar ScrollPane2
    [ ] tag "#1"
    [-] ViewPort Viewport3
    [ ] tag "$com.sun.java.swing.JViewport[3]"
    [-] GridCore ViewGridCore
    [ ] tag "$borland.jbcl.view.GridCore"
    [-] CustomWin Canvas0
    [ ] msw tag "[borland.jbcl.view.GridCore_Divider]$canvas0"
    [-] ViewPort Viewport2
    [ ] tag "$com.sun.java.swing.JViewport[2]"
    [-] CustomWin ViewHeaderView
    [ ] msw tag "[borland.jbcl.view.HeaderView]$borland.jbcl.view.HeaderView"
    [-] ViewPort Viewport1
    [ ] tag "$com.sun.java.swing.JViewport[1]"
    [ ]
    [-] JPanel OrderNumber3
    [-] multitag "Order Number:"
    [ ] "$com.sun.java.swing.JPanel"
    [-] GridControl BorlandJbclControlGridContr
    [ ] tag "$borland.jbcl.control.GridControl"
    [-] ViewPort Viewport3
    [ ] tag "$com.sun.java.swing.JViewport[3]"
    [-] GridCore ViewGridCore2
    [ ] tag "$borland.jbcl.view.GridCore"
    [-] CustomWin Canvas1
    [ ] msw tag "[borland.jbcl.view.GridCore_Divider]$canvas1"
    [-] JavaJFCScrollBar JScrollBar
    [ ] tag "#1"

    At this point, when I go to the record indentifiers, Silk
    does see the object as:

    OrderList.MvanFramework.NullLayeredPane.NullConten tPane.
    OrderNumber3.BorlandJbclControlGridContr.Viewport3 .ViewGridCore2


    I then go back to the record class box, and uncheck the
    show all classes check box. Now, when i open the record
    window identifiers box, the object is not found.
    Regardless, I try to run the testcase:

    [ ] OrderList.SetActive ()
    [ ] print(OrderList.OrderList.MvanFramework.NullLayere dPane.
    NullContentPane.OrderNumber3.BorlandJbclControlGri dContr.
    Viewport3.ViewGridCore2.InvokeJava("gridh",({6,6}) ))


    And it tells me the object is not found:

    [ ] *** Error: Window '[com.bellcore.mvan.framework.MFrame$MRootPane]
    $com.bellcore.mvan.framework.MFrame$MRootPane' was not found
    [ ] Occurred in OrderList.MvanFramework.NullLayeredPane.
    NullContentPane.OrderNumber3.BorlandJbclControlGri dContr.
    Viewport3.ViewGridCore2.InvokeJava
    [ ] Called from Test2 at test.t(26)


    In essence, the problem is that SilkTest can only find the
    object when the show all classes check box is enabled.

    This problem has been pressing for several days now, and I would
    appreciate a resolution soon

    Thanks,

    Anthony Pontoriero
    Telcorida Technologies
    NCON Software Testing
    apontori@telcordia.com
    (732) 699-3327

  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: Silktest+Java+Hidden Obj

    Hi, I just wanted to inform you that there is a much better way to post code to this forum, all you need to do is read the attaching code section in the UBB Code help (click the UBB Code is ON) link on the left side.
    I'll try to demo:

    To attach code:
    type:
    [ c o d e ] # Without the spaces
    Paste
    your
    code
    here
    [ / c o d e ] # Without the spaces

    The end product looks like this:



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

  3. #3
    Guest

    Re: Silktest+Java+Hidden Obj

    Well, the user manual says to uncheck the box....along with tech support....

    It seems that Silk DOES NOT want you to work with an UNCHECKED box...fortuanly, I found a switch that lets me "check/uncheck the box on demand"

  4. #4
    Junior Member
    Join Date
    Jul 1999
    Location
    Redwood Shores
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Silktest+Java+Hidden Obj

    It seems that you unchecked "ShowALLClasses" is that true? You should not be doing that. What you did was you exposed custom class to Silk it recorded it/them, you modified .ini file, and then by unchecking ShowAllClasses you cut off hierarchical path to the exposed object. Silk of course will not find it. You should not uncheck that checkbox otherwise you will not be able to use InvokeJava/invokeMethdos methods. Even if Silk would find your object you would have gotten an error when you make a call to your Java class (BTW do you have that class written?) teling you that method is not defined or unaccessible. This happenes because all java related stuff in Silk implements Reflection API, so if you take a look at it you will have an idea why Silk cannot find your object.

  5. #5
    Junior Member
    Join Date
    Jul 1999
    Location
    Redwood Shores
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Silktest+Java+Hidden Obj

    To tell you the truth Segue tech support on Java related topics sucks big time, so you pretty much on yur own here (at least I have been)

 

 

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 09:19 PM.

Copyright BetaSoft Inc.