SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    8
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Hello,

    I want to test a client of a java based application in SilkTest 5.5 SP2. It is browser independent.

    I have Windows 2000 as the OS and JDK 1.3.1_02 is installed.

    As mentioned in the Silk help, I have performed the following steps:
    1) Set the classpath for the SilkTest_Java2.jar file.
    2) Successfully verified the status of the Jar file.
    3) In the Extension Enabler I added a new extension (javaex.dll). All the rest of the extensions are disabled.
    4) In Silk Options-->Extensions, i added the same javaex.dll file.

    When I try to record the objects displayed in the window, Silk does not recognize the JAVA controls.

    How can I resolve this issue? Do I need to install any Silktest Patch? If so how can I get it?

    Let me know ASAP.

    Thanks in anticipation.

    -AP


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

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

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Hi Ashish,

    Does ur application startup with a batch file?
    I faced a similar problem with a java application once which started up with a batch file. In that case u need to do the following:

    edit the batch file in an editor -
    U will notice that the batch file might have a classpath setting too -
    Include ur SilkTest_Java2.jar file in the batch file.

    Cheers!
    Aatish

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

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

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Hi Aatish,

    I added the path of the jar file to the classpath section of the batch file. But this did not work.

    Silk still does not recognize the java controls.

    Thanks,

    Ashish.

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

  4. #4
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Hi Ashish,

    Making Silktest work with Swing objects is a little tricky. Some more questions:

    1) Does windows identifier work for the objects?

    2) Where have u kept the SilkTest_Java2.jar file?

    3) What exactly happens when u try to record declarations? - a crash? ...custom windows?...or does not see it at all?

    Cheers!
    Aatish

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

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

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Hi Aatish,

    Yes I agree with you. Its a lot tricky :-)

    Anyways, here are the answers to your question.

    1) Window Identifier does not work on the objects.
    2) The SilkTest_Java1.jar and SilkTest_Java2.jar files are in the C:\Program Files\Segue\SilkTest\JavaEx folder.

    3) No crash occurs. See file attached. I have captured the error.

    Is it that the jdk versions of Silk and the JAVA application are clashing?

    Also let me mention one more thing here. The application that I am testing is a invoked through a batch file. The commands in the batch file trigger the application deployed on a solaris server. I am accessing this server through the VPN. Does Silk recognize the controls of such a kind of application?

    Or does Silk require all the jar files that the application uses to generate its UI?

    I guess I have detailed out the problem.

    Thanks and regards,

    Ashish.

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

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

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Silk's inablity to recognize anything other than the containing DialogBox or MainWin is a classic sign of it being configured incorrectly.

    Silk requires that it's jar file be included within the Java application being run. Otherwise it cannot communicate with the Java runtime your application is using. There are a variety of ways to accomplish this.

    Furthermore Silk is initially configured so that Java applications that appear as java.exe or javaw.exe in the Task Manager Process window are automatically identified.
    Check the process window to see if your application uses a name other than these two. If it does you will need to include that name (and check the java box) in both extension enablers.


    John


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

  7. #7
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Who (what app) is producing that error message? I've not seen that message in Silk before.

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

  8. #8
    Senior Member
    Join Date
    Nov 2001
    Posts
    375
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Unable to Recognize the Java Controls in SilkTest5.5 SP2.

    Hi,

    Sometimes applications come bundled with thier own jre. Check up ur invoking batch file and see which jdk is used.

    Plus use a fresh Silktest install - i know it doesent seem like a good option - but sometimes some of ur settings cause Silktest to behave in a wierd way.

    Does any other Java applet / Swing application get recognised or is it just ur current one that gives u problems?

    Cheers!
    Aatish

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

 

 

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 02:35 AM.

Copyright BetaSoft Inc.