SPONSORS:






User Tag List

Results 1 to 3 of 3
  1. #1
    Junior Member
    Join Date
    Apr 2001
    Location
    Sacramento, CA, USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Adding Java properties as 4Test properties

    Has anyone successfully added a new 4Test property to a JavaJFC... class that is a Java property of the underlying Java class? Specifically I wanted to add an Accelerator property to the JavaJFCMenuItem class.

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

  2. #2
    Member
    Join Date
    Oct 2001
    Posts
    93
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Adding Java properties as 4Test properties

    Have you tried doing a record class on the control. This will show you what all of the public properties of a particular class are ad allow you to access them through SilkTest. You can also use CaptureAllClasses/CaptureObjectClass from the script to do this.

    If you cannot get the property this way, also look at using InvokeJava to create an instance of the object from Silk.

    Hope this helps

    Paul

    ------------------
    Paul Tucker
    Merit AT
    www.merit-at.com
    Paul Tucker
    Merit AT
    www.merit-at.com

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

    Re: Adding Java properties as 4Test properties

    Well I've been able to add a property to a Button by declaring the following:

    [-] winclass MyPushButton : JavaJFCPushButton
    [ ] obj AnyType invokeMethods(List of String stra, List of List of AnyType ataa)
    [ ]
    [-] property Tooltip
    [-] String Get()
    [ ] return invokeMethods({"getToolTipText"}, {{}})
    [ ]
    [ ] List of String lsPropertyNames = {"Tooltip"}
    [ ]

    Getting the accelerator property from the JMenuItem proves to be elusive still.

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

 

 

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:56 PM.

Copyright BetaSoft Inc.