SPONSORS:






User Tag List

Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Netscape and Java Applets

    I am testing a web application's help module in Netscape 4.77 browser. Since its a java applet, SilkTest identifies the help window as dialog box. Strangely, it does not identify any element from the table of contents (see the lefthandside column of attached gif image). I tried click() with co-ordinates, but it works only at times.

    I read about invokejava method in SilkTest help, but I am not sure whether I can put this to use for my problem.

    Any help? If using Invokejava is the only way, how do I go about using it?

    Thanks

    Srikanth

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


    [This message has been edited by Srikanth (edited 09-13-2001).]

    [This message has been edited by Srikanth (edited 09-13-2001).]

    [This message has been edited by Srikanth (edited 09-13-2001).]

  2. #2
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape and Java Applets

    Did you add the jar files located in <your_installation_dir>/segue/silkTest/JavaEx folder to your classpath environment variable? You need to add these files to your classpath in order for Silk to recognize java objects. You can also run open the status.html file(<your_installation_dir>/segue/silkTest/JavaEx/Status/status.html) from your browser to check if everything is setup correctly.

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

  3. #3
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape and Java Applets

    Hi Joe,

    This what I get when I run the Status.html

    ==========================================
    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.5
    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.
    =====================================


    Where and how do I go about from here?

    Thanks.

    Srikanth



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

  4. #4
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape and Java Applets

    I included SilkTest_Java1.jar in my classpath and ran the status.html again. This is what I get:

    ====================================
    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.5
    SilkTest_Java1.jar found.
    Performance enhanced level 3.
    Due to security reasons, the classpath is not accessible.

    ===================
    My classpath is as under

    .;C:\bea\wlserver6.0\lib\weblogic.jar;C:\PROGRA~1\ Segue\SilkTest\JavaEx\SilkTest_Java1.jar;

    What next?? Please let me know.

    Thanks
    Srikanth


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

  5. #5
    Member
    Join Date
    Sep 2001
    Posts
    69
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape and Java Applets

    As far as I know this should get silk to start recognizing applet objects. That is, if you have an applet on a page it should recognize it as follows (try it on status.html)


    [+] window BrowserChild AppletHTMLPage
    [ ] tag "Applet HTML Page"
    [+] parent Browser
    [+] JavaApplet AppletHTMLPage1
    [ ] tag "Applet HTML Page"
    [+] JavaAwtPushButton Button1
    [ ] tag "button1"
    [+] JavaAwtTextField Textfield1
    [ ] tag "#1"
    [+] JavaAwtCheckBox Checkbox1
    [ ] tag "checkbox1"
    [+] JavaAwtPushButton Button2
    [ ] tag "button2"
    [+] HtmlHeading AppletHTMLPage2
    [ ] tag "Applet HTML Page"
    [+] HtmlPushButton SetText
    [+] multitag "SetText"
    "#1"
    "$button1"
    [+] HtmlPushButton EraseText
    [+] multitag "EraseText"
    "#2"
    "$button2"
    [+] HtmlText GeneratedByForteForJava
    [ ] tag "Generated by Forte for Java"


    As for using the Invoke method, I am not to familiar with this process. From what I have read you have to compile the file JTreeGetText.java then use it to get access to items in a JavaTree.

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

  6. #6
    Member
    Join Date
    Jul 2001
    Location
    NY, USA
    Posts
    67
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Netscape and Java Applets

    Thanks Joe,

    It improved a bit, but the problem still remains.

    Have a nice weekend.

    Srik

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

 

 

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 07:39 PM.

Copyright BetaSoft Inc.