SPONSORS:






User Tag List

Results 1 to 5 of 5
  1. #1
    Senior Member
    Join Date
    Mar 2001
    Posts
    161
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    java application within windows application

    User (knn2k@hotmail.com) posted:

    Hi,

    Has anyone tested a Java Swing application within a windows
    application? I have a window application that calls up a Java swing
    application...and Silk can't see any object from my Java
    application. If I run the Java application by itself thru a batch
    file, then everything is ok. Is Silk capable of performing in this
    scenerio?

    Regards,
    Kn


    Post message: silktest@yahoogroups.com
    Subscribe: silktest-subscribe@yahoogroups.com
    Unsubscribe: silktest-unsubscribe@yahoogroups.com
    List owner: silktest-owner@yahoogroups.com
    URL to this page: http://groups.yahoo.com/group/silktest


    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/



  2. #2
    Senior Member
    Join Date
    Jan 2001
    Posts
    750
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: java application within windows application

    What you can do is talk to your Dev and ask them if testing the Java app separately from the window app correct. If so you know what to do.

    Did you try to create a new extention which contains the .exe file of your app? I am not sure how you do that but it might help.

    Unless this Java program interact with your window app, I don't see why you should test them together.

    If all fails you have to resort to non-silk automation Which can be a pain.

    [This message has been edited by GodKnows (edited 06-27-2001).]

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

    Re: java application within windows application

    Here's something to try:

    1. Find out if there is a file that contains the classpath used by your Java Application. Modify it to include the appropriate SilkTest_JavaX.jar file.

    2. Launch your Java app from your Windows app. Check in Task Manager if you see the new process. If it is called Java.exe, you don't have to explicitly add it to the extensions. If it is not called Java.exe (or called the same as your Windows app), then you will need to add it to both your Options/Extensions and the Extensions Enabler and check the Java checkbox in both.

    That should do the trick. Of course, if your app does not have a classpath that is read from a file, you will be in trouble. But then you could consider adding the SilkTest jar file contents to your application's Jar file....ugly but may be your only chance other than having development change your application(s).

    In any case, good luck. I think you will need it :-)

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

  4. #4
    Senior Member
    Join Date
    Aug 1999
    Location
    San Diego, CA USA
    Posts
    219
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: java application within windows application

    The problem is that when you invoke your Java app from within another Windows app you're doing the equivalent to running the Java app from the executable. But there's no API for a Java executable so no automated test tool can manipulate it. This is why people testing java apps have to run their app by running java.exe and providing their .jar file as the source code - basically like a development environment.

    So the only way I can see for you to be able to test that Java app is if you can find a way to run it not from an executable but by using the java.exe and .jar file approach. Then of course you'll also have to do all of the other Java-related config stuff too, as if the whole app was java. Bummer!

    PS: There was a similar problem posted many months ago. You might wantt o try to find it in case it contains a solution.

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

  5. #5
    Senior Member
    Join Date
    Mar 2000
    Location
    pisctaway, NJ USA
    Posts
    188
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: java application within windows application

    All of the above are the best choices. Just ask dev if there is a way to modify the classpath at runtime.
    What I did was have dev include EVERY jar file that was in a directory called 'ext' inside of the lib directory.
    Tony


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

 

 

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

Copyright BetaSoft Inc.