SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Feb 2004
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Environment setup to record browser declarations

    Hi,

    I am trying to automate a IE browser application and am having trouble creating declarations for objects in the applet.

    Many UI objects are being declared as CustomWin objects. For example the record declarations dialog displays one object as follows: Class=CustomWin, ID=showdata, TAG=[javax.swing.JButton]showdata

    I put swing.jar in my classpath, but then the applet does not display at all. I suspect the reason for this is because the applet uses a cab file containing swing classes. I believe some of the classes in the cab file were derived from swing classes, or were extracted from swing.jar and incorporated into the applet's cab file so the browser would not have to download the entire swing.jar file.

    I've been trying different suggestions from this forum to get this to work but have had no luck. Do you have any recommendations? I am a new ST user, so I'm sure I must be missing something basic.

    Configuration: Win2k, IE5.0, ST6.5, SilkTest_Java1.jar is in the classpath
    I have extensions enabled for both Java and IE5.x DOM.

    Thank you,
    =^..^=

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Environment setup to record browser declarations

    Internet Explorer is installed in my win2k Program Files directory and it does not contain a lib/ext directory.

    The web applet loads a cab file and a jar file. Do you think I need to inform SilkTest about these somehow?

    Thanks for your help, Sean
    =^..^=

  3. #3
    Member
    Join Date
    Feb 2004
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Environment setup to record browser declarations

    Partial victory so far! I am now able to recognize many of the applet objects. I've placed the .cab and .jar files that my applet uses into the classpath environment variable.
    =^..^=

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

    Re: Environment setup to record browser declarations

    A thinly educated guess:

    Try SilkTest_Java2.jar instead and try again...


    John

  5. #5
    Member
    Join Date
    Oct 2003
    Location
    El Granada, CA
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Environment setup to record browser declarations

    Actually, you may have it there...SilkTest_Java1.jar is only for Java apps written in JDK1.8 or previous. SilkTest_Java2.jar is for JD2EE compatible java apps...JDK 1.2.x and forward.
    Sean McCabe

  6. #6
    Member
    Join Date
    Oct 2003
    Location
    El Granada, CA
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Environment setup to record browser declarations

    ****...that's JDK 1.1.8 and JDK 1.2.x respectively.
    Sean McCabe

  7. #7
    Member
    Join Date
    Feb 2004
    Posts
    57
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Environment setup to record browser declarations

    Yes, I have tried putting SilkTest_Java2.jar in my environment variable classpath, but ST doesn't appear to like that. The record declarations dialog will not come up. Here is what happens in this situation:

    Start ST
    Start my web app
    Select record window declarations
    Wait indefinitely for ST record dialog
    Close my web app
    record window declaration dialog appears
    =^..^=

  8. #8
    Member
    Join Date
    Oct 2003
    Location
    El Granada, CA
    Posts
    97
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Environment setup to record browser declarations

    Have you tried putting the SilkTest_Java*.jar files in the browser's lib/ext folder? Sorry it's been a few years since I have tested Java, but I recall doing this and putting the jar files all in the lib/ext folder of the java runtime, and then I was able to hook fine.
    Sean McCabe

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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:49 AM.

Copyright BetaSoft Inc.