SPONSORS:






User Tag List

Page 1 of 2 12 LastLast
Results 1 to 10 of 11
  1. #1
    Member
    Join Date
    May 2000
    Location
    NY
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How does SilkTest user the .jar files - in detail ?

    I've read over and over about the need to add the correct .jar files to your classpath, but I can never quite understand how SilkTest uses these files ?

    Can anyone explain in detail what SilkTest is doing here, and give any little "secrets" they've learned about using these files, and troubleshooting when the recording isn't working.

    Finally, I've also read that there are occassions where you might need to obtain from your development group .jar files from the application you're testing - can anyone explain this also ?


    Thanks in advance,
    Joe V.



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

  2. #2
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    Your questions are kind of open-ended but I'll make a couple of comments.

    The .jar file you set CLASSPATH to should correspond to the browser you're running for testing -- not the jdk version your applet under test was built with, as some have assumed.

    Segue's .jar file enables SilkTest to automate the .jar files that make up your AUT's applets. For instance, Segue's .jar file will search through your AUT's .jar files for the "public" keyword in front of a class declaration, and when it finds the keyword, it knows to expose that class's methods and properties when you do a Record Class.

    As for obtaining the .jar files from your development group, I don't know what good that would do you unless you know what you're looking for when you read them. What problem are you trying to address?

    If recording isn't working for you, please be more specific.

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

  3. #3
    Member
    Join Date
    May 2000
    Location
    NY
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    Thanks for your feedback, agroves. I went back to the SilkTest Help, and still find it confusing.

    When you wrote:

    "The .jar file you set CLASSPATH to should correspond to the browser you're running for testing",

    I'm not sure how you know, for a particular browser, which version of the JDK it uses when it runs it's applets, or if somehow the default can be or has been altered by the applet during a first run (e.g. could an applet download a new jre and run from that?)

    Also, I'll quote the following from the help file, which implies you may need to use the "jar file for the appliations":

    --------- SilkTest CLASSPATH help----------
    CLASSPATH for standalone Java applications and applets that run inside the browser

    For standalone Java applications and applets that run inside the browser, in addition to the Java support .jar file, you should include the following items in the CLASSPATH:

    The .jar file for the application

    If your application uses a plug-in in the browser, add the path to the installation directory for the plug-in.

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

    How do you know if your applet runs "inside" the browser - and what does this mean ?



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

  4. #4
    Senior Member
    Join Date
    Jul 2001
    Location
    Westford, MA, USA
    Posts
    160
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    I'm not too involved in this area, but I can give you the basics.

    One quick way to know what you're dealing with would be to ask your developer. Here's the background to know before you talk to him/her: you're either dealing with a standalone application, or an applet. If you have an applet, it's browser-based, and it's either executed by the browser's built-in JVM, or by a Java browser plug-in. If your applet is executed by the browser's built-in JVM, you're certainly going to set your CLASSPATH to point to Segue's "jar1" file (at least that's how it stands at the current time). One wierd exception to note: Netscape 6 doesn't have a built-in JVM - always uses a plug-in - so in that case you'll use the "jar2" file.

    After talking to your developer, you may want to run the "status" utility. In SilkTest, pick Help - Help Topics. Click the Find tab. In text field 1, in "jar." You'll see a bunch of documents listed, including "Run the Status utility inside your browser" and "Run the Status utility standalone." Pick whichever one applies, and then running the status utility will tell you if your CLASSPATH variable is set correctly or not.

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

  5. #5
    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: How does SilkTest user the .jar files - in detail ?

    So the thing about which version of Silk's .jar file you need depends firs ton whether you're testing a Java client app or an applet. For a java client app you use Silk's .jar file that matches the development environment your app was built with. For applets you use the .jar file for the browser version.

    About getting .jar files from your developers ... I would like to know a littel more about why you're asking. When I first started testing my Java client app I always had to get the .jar file from development becasue we were delivering our product as a .exe at the time so the installer did not include the .jar file. That changed eventually.

    I have found it extremely useful to be able to swap .jar files of my app in/out as needed. Say I install a new build on Monday then Wednesday afternoon Dev has made some changes and sends me a heads-up .jar file. I swap the new .jar file in, update the needed window decs and maybe some methods/functions, and am now ready for the UI changes that I'll get in tomorrow morning's build.

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

  6. #6
    Junior Member
    Join Date
    Aug 2001
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    Just gone thru replies. I think all of you can help me a lot. we are testing our web application using silk test but when testing applets we stuck up.
    I have included silk test jar file in my classpath and have verified it with the status.html page. But when I start my application and start recording window declariation (or actions), my entire pc simply hangs. I have included the application jar file as well in classpath but even that doesn't help. Following is our configuration.
    Windows 2000
    Silk test 5.0.3 (Without extension kit)
    IE 5.0
    Application is using java swing components using jre 1.2

    I also tried with Netscape after instaaling silk certificate but same results.
    Also I tried NT will all above combinations but it didn't work.

    Any help would be greatly appreciated.


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

  7. #7
    Junior Member
    Join Date
    Jul 2001
    Location
    India
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    User K. Hari Prasad (khprasad@quark.stpm.soft.net.nospam) posted:

    Hi
    Are you sure your classpath in environment looks like this
    C:\Program Files\Segue\SilkTest\JavaEx\SilkTest_Java1.jar;D:\ JDK\jdk1.2.2
    (second one is where jdk is placed)
    Make sure all your extensions are set right.Sometimes you may have
    conflicts with any opened .opt files.
    After setting class path restart your machine.For me it worked fine after
    restarting.


    k.hari prasad

  8. #8
    Junior Member
    Join Date
    Aug 2001
    Posts
    11
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    User Avnish Pundir (apundir@cisco.com.nospam) posted:

    Hi Hari,
    Ya I have set my classpath. I tried it again now. But this time I noticed
    one thing. When I test the status using silk test status.html it shows me
    this status.
    -------------------------------
    Checking on system settings...
    Java Version: 1.1.4
    Java Vendor: Microsoft Corp.
    OS Name: Windows NT
    OS Arch: x86
    OS Version: 5.0

    Checking on SilkTest Java Status...
    Version=5.0.2
    SilkTest_Java2.jar found.
    Performance enhanced level 3.
    ERROR! You are running JDK1.1, but SilkTest_Java2.jar
    was found in your classpath. You must use
    SilkTest_Java1.jar with JDK1.1
    Due to security reasons, the classpath is not accessible.
    ----------------------------------------------
    However if I check using status_jpi.htm I got following result
    -------------------------------
    Checking on system settings...
    Java Version: 1.3.0
    Java Vendor: Sun Microsystems Inc.
    OS Name: Windows 2000
    OS Arch: x86
    OS Version: 5.0

    Checking on SilkTest Java Status...
    Version=5.0.2
    SilkTest_Java2.jar found.
    Performance enhanced level 3.
    Due to security reasons, the classpath is not accessible.
    ----------------------------
    my application is uing jre 1.2 so I included silktest_java2.jar in my
    classpath. But status checker(status.html) is giving error as this is
    looking for MS java version, which is 1.1.4. I have included JDK
    installation dir as well in classpath but still no positive results.

    Am I missing something ??

    Thanks
    Avnish

    ----- Original Message -----
    From: "K. Hari Prasad" <khprasad@quark.stpm.soft.net>
    To: "apundir" <apundir@cisco.com>; <silktest@yahoogroups.com>
    Sent: Friday, August 31, 2001 2:01 PM
    Subject: RE: [silktest] Re: How does SilkTest user the .jar files - in
    detail ?


    Hi
    Are you sure your classpath in environment looks like this
    C:\Program Files\Segue\SilkTest\JavaEx\SilkTest_Java1.jar;D:\ JDK\jdk1.2.2
    (second one is where jdk is placed)
    Make sure all your extensions are set right.Sometimes you may have
    conflicts with any opened .opt files.
    After setting class path restart your machine.For me it worked fine after
    restarting.



  9. #9
    Junior Member
    Join Date
    Jul 2001
    Location
    India
    Posts
    13
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    User K. Hari Prasad (khprasad@quark.stpm.soft.net.nospam) posted:

    I think you are getting error because of silktest_Java2.jar file.
    Why dont you try using silktest_java1.jar file in setting your classpath
    variable.
    Hope this works for you.


    k.hari prasad

  10. #10
    Member
    Join Date
    May 2000
    Location
    NY
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: How does SilkTest user the .jar files - in detail ?

    Thanks for your replies. I was looking to understand how and when SilkTest uses these jar files during a record and playback sessions, in the hope that understanding in more detail how the files are used would help me troubleshoot any problems I may encounter (in general).

    I think agroves came closest to what I was looking for in the following:

    ==========================

    Segue's .jar file enables SilkTest to

    automate the .jar files that make up your AUT's applets. For instance, Segue's .jar file will search through your AUT's .jar files for the "public" keyword in front of a class declaration, and when it finds the keyword, it knows to expose that class's methods and properties when you do a Record Class.

    =====================================
    With regard to this explanation, does this happen during both record and playback, and do the classes and methods recorded get copied into your declarations file ? what environment pitfalls interfere with this approach ?


    If anyone has more detailed info w/regard to this type of information, I would appreciate it. Perhaps someone knows if SilkTest has a whitepaper on this topic.


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

 

 
Page 1 of 2 12 LastLast

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 10:57 AM.

Copyright BetaSoft Inc.