SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 1999
    Location
    Raleigh, NC
    Posts
    35
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: InvokeJava usage

    I once had a printout of a document titled "Testing Custom Objects with SilkTest" authored by Netsoft Corporation. It had many details on how to test custom objects including tricks dealing specifically with Java and InvokeJava.

    I don't have an electronic copy, nor do I know where to obtain it. Try searching the net or QADownloads.com

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: InvokeJava usage

    It sounds like you don't yet have Silk's Jar file properly included in the test application path and/or that you haven't enabled that specific application in Silk and its Enabler.

    When you view the objects in this Java application with Silk's Record/Tags or Record/Identifier dialog, what do you see?

    If you're not configured properly you'll likely only see a dialogbox and no other Java objects.

    If you're running NT, bring up the Task Manager and locate the task for the Java application. It's name (as it appears in the Task Manager Process tab) _must_ be the one that you Add/enable in Silktest and in the Enabler application. (If it's Java.exe or javaw.exe, you only have to check the Java checkbox).

    The next issue is that the SilkTest_java[1,2].jar file must be included in the path used by the Java application. This sometimes means that it merely must reside in the same folder as the application's other .jar files; or it sometimes means that some configuration file for the application must be edited to include it. Check with your developers about the method they used.

    Hopefully this helps some. It can be a real PITA to get it set up the first time. After that initial tediousness however it all starts to make sense.

    John

  3. #3
    Guest

    Re: InvokeJava usage

    The article Testing Custom Objects by David Alves of Netsoft appeared in segue@work, Segue's customer newsletter, in April of 1999. Here is the link to it (reminder, you will need your username (first full word of your company name) and password (customer id#) to access it): http://customers.segue.com/protected...rticle_toc.htm

  4. #4
    Junior Member
    Join Date
    May 2000
    Location
    Waltham,MA,USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    InvokeJava usage

    We would like use Silk to access the Java classes (especially swing) in our application to use their methods to pull out information to use in our Silk scripts. We have trouble seeing the objects, and straight class mapping doesn't seem to work.

    Can InvokeJava do this?

    I can't figure out if it can from the book -- it almost sounds like the only Java scripts it can see are the ones you write yourself.

  5. #5
    Junior Member
    Join Date
    May 2000
    Location
    Waltham,MA,USA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: InvokeJava usage

    Thank you for the replies -- I was able to find the article from Heidi's posting, and it is going to be very helpful.
    Our application is written as applets. We do have the extensions enabled, the proper SilkTest_java.jar and the swingall.jar in the Classpath. We can see some of the objects in the applet, but others are apparently so "custom" that Silk doesn't know how to handle them. Which is why want to try accessing their methods directly.

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

    Re: InvokeJava usage

    That is what the "Record Class" feature is for. You can point to a custom java object and then Record Class will help SilkTest learn the methods and properties associated with it (similar to VB). InvokeJava and InvokeMethods can also be used for more indepth testing.

 

 

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

Copyright BetaSoft Inc.