SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Jul 2000
    Location
    Lafayette, CA USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Testing non-GUI Java objects

    I need to test some java classes that have no GUI. Is there a way to have SilkTest instantiate the class and then call its methods for test purposes?

    It looks like the SilkTest InvokeJava() method might do what I want, but all the examples in the on-line help show a GUI object being used to invoke the non-GUI object:
    GUIObject.InvokeJava ("JavaClassName", {params})

    Anyone have any luck doing this? Is there a way to test a stand-alone java class using SilkTest? Or did you have to create a dummy Java GUI for SilkTest to use?

    Any help or examples would be greatly appreciated.

    Thanks

    Jeff

    [This message has been edited by jpetersen (edited 07-14-2000).]

  2. #2
    rg
    rg is offline
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing non-GUI Java objects

    You can use InvokeJava but it requires that there be at least one Java GUI object on the screen.

    You could also use SilkPilot to do what you need. And it is completely GUI driven => no scripting.

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

    Re: Testing non-GUI Java objects

    Can the "Java GUI object on the screen" be any java GUI object? For example, could I just create a small Java applet that puts up a form and then call InvokeJava() through it?
    MySimpleJavaGUIApp.InvokeJava("ClassToTestObject", {})

    Or does the Java GUI object need to be derived somehow from the non-GUI class I want to test?

    I never would have thought of SilkPilot. I thought it was just for CORBA testing. Have you used it to directly test Java classes?

    Thanks for your help.

    Jeff
    jeffbpetersen@yahoo.com

  4. #4
    rg
    rg is offline
    Member
    Join Date
    Feb 2000
    Posts
    98
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Testing non-GUI Java objects

    The Java class can be anywhere on the screen. Basically, SilkTest needs some Java object to "hook" into. That should do the trick. And, no, you don't need to have it derived from your non-GUI class. You just need to have your non-GUI class in your classpath.

    As for SilkPilot, it now has EJB testing capability that might work for you. You can download it from Segue's site.

 

 

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 12:41 PM.

Copyright BetaSoft Inc.