SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with invokeMethods, accessing java classes

    Hello.
    I am testing a java stand alone app. This app contains tables which SilkTest recognizes as JavaJFCTables. The developers have extended these classes and therefor I am have trouble getting CellValues for certain columns. I have used invokeMethods with {"getValueAt"} to solve most of my problems, however for some columns I still cannot get the cell value. My developers have told me they can add a method to their class which will return me the cellvalue, however i cannot figure out how to get invokeMethods to work with it.. Can anyone help me on how I can get invokeMethods or invokeJava to access a public method in a class.

    Basically, how can I get access to a public method they have added to a class
    Thanks


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


    [This message has been edited by tfaron (edited 07-22-2002).]

  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: Help with invokeMethods, accessing java classes

    I believe if the developers do as they are saying, you can simply record the class for that table and the exposed method will show up in your recording. You should then be able to access it directly as you do any other class that Silk recognizes.

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

  3. #3
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with invokeMethods, accessing java classes

    That is what i was thinking too- But when I record the class, which is recognized as a JavaJFCTable it likes methods which can be called by invokeMethods, but the ones I am looking for are not there.. hmm

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

  4. #4
    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: Help with invokeMethods, accessing java classes

    ... so, when you do Record Class (not Declarations!) and you hover the mouse over the cells in the table with the extended Java clases, you don't see somethign like "com.mycompany.some_cryptic_classname..."?

    Inside that class you should see the newly created and exposed methods that you can manipulate on an object of this class type.



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

  5. #5
    Senior Member
    Join Date
    Oct 2001
    Location
    Worcester
    Posts
    133
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Help with invokeMethods, accessing java classes

    Thanks for the help, I see them now.. another problem was the methods were protected and not public..

    Thanks again all


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

  6. #6
    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: Help with invokeMethods, accessing java classes

    Great! Glad you got it going.

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

 

 

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

Copyright BetaSoft Inc.