SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 19
  1. #1
    Junior Member
    Join Date
    Dec 2001
    Location
    New Haven, CT, US
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unable to see custom controls on a Custom Canvas

    I am using silk 5.0.3.1 to test a stand alone java application (jdk1.3.1_02). I have SilkTest_Java2.jar in my classpath and silk recognises the standard java controls.
    In our application we have a custom canvas and a set of custom controls in a gallaery. the user can drag any custom control from the gallery on the custom canvas and draw a flow diagram using custom controls like (nodes, data flow lines, control flow lines). silk recorder sees the canvas as AnyWin but cannot see anything on the canvas. I need to find out and verify the custom controls on the canvas.
    Is there a way silk can see the custom components on the custom canvas.

  2. #2
    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: Unable to see custom controls on a Custom Canvas

    On your Record menu, use Record Class. Check show all classes and show all methods checkboxes. Hover the mouse over the object type of the class you want to record. Ctrl-Alt it just like you do when recording declarations. Paste this recording into your include file. Uncheck the two previously checked checkboxes and close the record class dialog.

    Now take declarations on the custom objects and Silk should be able to see them.

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

  3. #3
    Junior Member
    Join Date
    Dec 2001
    Location
    New Haven, CT, US
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to see custom controls on a Custom Canvas

    I enabled the show all classes and show all methods in the recorder, and was able to record class for the Canvas which i put in the .inc file. the declaration for canvase looks like
    winclass ComMetaserverIdeTaskeditorTaskGraphCanvas : AnyWin

    anywhere i move the mouse in the canvas including the custom components in canvas, the recorder shows it as ComMetaserverIdeTaskeditorTaskGraphCanvas.
    i am not able to see the custom components on the canvas(like the nodes). just to make it more clear, i am attaching a jpeg image of the canvas and the custom controls i want to verify.

    [This message has been edited by mvaidya (edited 05-09-2002).]

  4. #4
    Junior Member
    Join Date
    Dec 2001
    Location
    New Haven, CT, US
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to see custom controls on a Custom Canvas

    i forgot to attach the jpeg. here it is.


    [This message has been edited by mvaidya (edited 05-09-2002).]

    [This message has been edited by mvaidya (edited 05-09-2002).]

  5. #5
    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: Unable to see custom controls on a Custom Canvas

    I'm guessing that there wasn't anything inside that winclass recording other than a tag. Is that right?

    These kinds of problems are so frustrating, I know.

    Things I would try:
    1. Talk to the developers about the relationship between the Canvas, and those nodes and workflow lines on/in the canvas.

    2. Find out what methods are exposed in that ComMetaserverIdeTaskeditorTaskGraphCanvas class. It may have a method you can call to get and manipulate the objects it contains. Perhaps not... Development is understandably a little nervous about exposing things like that.

    3. Find out if there are classes or Java packages specific to the nodes and workflow lines. If there are, there is a way you can force Silk to interrogate those classes. At the bottom of your javaex.ini file in the SilkTest/Extend directory is a [ClassList] section. If you place your java class here, Silk will interrogate that class. I've found this helpful in the past getting Silk to see Java classes that it would not otherwise see.

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


    [This message has been edited by DJGray (edited 05-10-2002).]

  6. #6
    Junior Member
    Join Date
    Dec 2001
    Location
    New Haven, CT, US
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to see custom controls on a Custom Canvas

    I am attaching the canvas.inc file which has the ComMetaserverIdeTaskeditorTaskGraphCanvas's declaration. i am a new bee and don't know how to use the methods exposed in the declaration.

    i talked to the developer and he told me that nodes, work flow lines and other custom controls have underlying classes. so can i add those classes with their packages in classlist section of the javaex.ini file, restart silk and get it working???? do i also need to add the base class from which these custom controls are derived to the classlist section??

    thanks for ur help

  7. #7
    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: Unable to see custom controls on a Custom Canvas

    I'm posting this as a placeholder so it shows up as a new message. I don't have time to formulate a useful reply right now, BUT after glancing at your include, you're in good shape! This will work for you. Silk is seeing the underlying methods and you can call those methods.

    I'll post more later. Perhaps some of the other folks here would like to take this up. Bottom line? Don't sweat. You're in good shape.


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

  8. #8
    Junior Member
    Join Date
    Dec 2001
    Location
    New Haven, CT, US
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to see custom controls on a Custom Canvas

    thanks a lot!!
    if i can automate this part, that would be great!!!! i can save a of time and effort which people would have to put otherwise doing it manually.

    waiting for some one to send me the steps !!!

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

  9. #9
    Senior Member
    Join Date
    Jan 2002
    Location
    Des Moines, Iowa
    Posts
    289
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to see custom controls on a Custom Canvas

    DJGray,

    I will pick this up for you. Besides I just took the class, lets see if I can explain it properly.

    I will post the instructions in the morning.

    When I have the book and code in front of me.

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

  10. #10
    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: Unable to see custom controls on a Custom Canvas

    Your Canvas.inc shows your custom class derives from anywin, so you need to add this to your frame so Silktest has access to the declarations, just copy/paste it in. Basically you anre going to need to try a lot of things to "see" what silk "sees". Keep in mind Get and Set methods - Get returns what is on the screen, Set updates the screen. for example this method from your class retuns an int:
    [ ] obj int getComponentCount ()
    make an int iObjCt, use it in a testcase:
    MyWin.iObjCt = getComponentCount ()
    print it out - print ("objct = {Str(iObjCt)}") - now you have the count of objects on the screen. This one looks like it returns obj name: [ ] obj String xgetName () alias "getName"
    Basically you'll have to try some out to find out what Silktest sees on your window. Good Luck. -Len


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

 

 
Page 1 of 2 12 LastLast

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:34 AM.

Copyright BetaSoft Inc.