SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Junior Member
    Join Date
    Nov 2000
    Location
    Pune, MH, India
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom control support for testing Standalone Java Appl.

    I was just experimanting with the eval version of SilkTest trying to write
    some
    test scripts for our standalone Java application which uses few custom
    controls.
    In the whole process, I found that it identifies and works well with
    standard Java
    controls and few custom controls. But it doesn't identify/recognize few
    custom
    controls at all (for example, DateTimeSpin control and few more). Is there
    any
    workaround for identifying and working with these controls?

    I have few more questions;
    1. How comfortable is SilkTest with (any Java) Custom controls?
    2. What is the workaround if it doesn't recognize a control (even as a
    custom control)?
    3. Does it support testing JDK-1.3 applications?
    If yes, how to configure SilkTest for JDK-1.3?


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

  2. #2
    Member
    Join Date
    Sep 1999
    Location
    Boston
    Posts
    65
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom control support for testing Standalone Java Appl.

    Can i ask how you setup your environment? And what are you guys using for java dev?

    -Brendan

  3. #3
    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: Custom control support for testing Standalone Java Appl.

    Yep, we need to know a little more about your dev environment and setup.

    I'm puzzled about how you are currently setup if you're asking about JDK 1.3. What are you using now?

    My AUT is a Java client and we've been through a few versions of JDK (1.1.17, 1.2.x, 1.3) over time. Tried with VisualCafe for a short time then Dev/CM decided to drop that approach so we went back to JDK, just in time for Silk 5.0.3.1.

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

    Re: Custom control support for testing Standalone Java Appl.

    Search for ignored classes in the online help. That might be the problem you are facing.

  5. #5
    Junior Member
    Join Date
    Nov 2000
    Location
    Pune, MH, India
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom control support for testing Standalone Java Appl.

    Thanks all for your reply.

    Let me first tell you about the AUT.
    Its a standalone Java client application which can connect to a local/remote server. For the previous release, we used JDK 1.1.7b and swing 1.1. Now we are migrating from JDK1.1.7b to JDK 1.3. The migration process is almost over. Also, the Java client is capable of running on multiple platforms (NT/W2K, Solaris, HP and Linux). The reason for trying SilkTest is its cross-platform support.

    I am experimenting SilkTest with both versions of client(JDK1.1.7b and JDK1.3)on a Windows NT 4.0 machine. For JDK1.1.7b (client), I'm using SilkTest_Java1.jar in the -classpath option while initiating the application and for JDK1.3 I'm using SilkTest_java2.jar. In both cases, it identifies all standard Java/Swing controls. But there are few custom controls which it doesn't recognize (even as a custom control) - for example- a third party DateTimeSpin control. Is there any workaround?

    Any help is appreciated.

    Thanks in advance.
    Anand


  6. #6
    Senior Member
    Join Date
    Jun 2000
    Location
    Sunyyvale CA USA
    Posts
    422
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom control support for testing Standalone Java Appl.

    Anand,

    Try mapping the custom class to a known class. If it works, you can use the methods and properties of the base class throug Silk Test.
    Sree

  7. #7
    Junior Member
    Join Date
    Nov 2000
    Location
    Pune, MH, India
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom control support for testing Standalone Java Appl.

    sree,

    I'm using the class recorder to identify the control. When I point to that custom control, it doesn't recognize the control even as cutom control. Unless it identifies the control as custom control, I can not map it a standard control.

    Thanks,
    Anand

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

    Re: Custom control support for testing Standalone Java Appl.

    What you are probably seeing is that SilkTest is ignoring the class(es) you are interested in. If that is the case, check the checkbox that says "Show all classes" in the Record Class window. Then you will find that SilkTest sees the class you are interested in. If it doesn't, then the objects are not derived off of component or they are simply drawn on the screen. Once again, see the section in the online help that talks about "recording classes for ignored java objects". Search for "ignored classes" in the online help.

  9. #9
    Junior Member
    Join Date
    Nov 2000
    Location
    Pune, MH, India
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Custom control support for testing Standalone Java Appl.

    I got the reason behind the problem. Actually our AUT is using some controls which are derived from object class instead of a component class. In such cases SilkTest will not be able to find these objects - even with record class utility with Show All Classes (checkbox) checked. The only recommended way is to use InvokeJava method to manipulate these objects.

    Thanks all for your tips and help.

 

 

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 09:26 AM.

Copyright BetaSoft Inc.