SPONSORS:






User Tag List

Results 1 to 8 of 8
  1. #1
    Junior Member
    Join Date
    Jun 2000
    Location
    Needham, MA
    Posts
    4
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Delphi app and SilkTest

    Hi,

    I'm evaluating SilkTest for testing an application built with Delphi. Everything's going pretty well, except for StaticText. Turns out that Delphi has two ways of putting text on a dialog: TLabel which has no handle & TStaticText which does. Unfortunately, most of our textfield labels and text messages are TLabels, which SilkTest does not see by default.

    I'm preparing to do international testing, so it's important to be able to verify static text.

    Has anyone solved this problem?

    Thanks.

    -monica

  2. #2
    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: Delphi app and SilkTest

    What you're seeing is correct. Your best bet is to explore the possibility of having your developers use the type of control that you can manipulate with Silk.

    BTW, none of the other automation tools will be able to see text without a handle either, so don't let development put it back on Silk.

  3. #3
    Junior Member
    Join Date
    Oct 1999
    Location
    Germany
    Posts
    24
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delphi app and SilkTest

    Hi,

    if you have the sources of the Delphi application available and use a higher version of Delphi (one that includes the VCL sources), you can patch inside of delphi, change the definition of the TStaticText components, then recompile your application.
    This will result in a complete solution for the problem (with the plus to not have to change something inside your application), but its not that low on efford.

  4. #4
    Member
    Join Date
    Sep 2000
    Location
    Lake Forest, CA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delphi app and SilkTest

    Components without windows handles like Delphi's TLabel and TSpeedButtons are a problem for all automated test tools. However, some tools like WinRunner and AQTest provide add-in units that you can compile into the application under test that will make it an "open application". To my knowledge Seque does not provide such an add-on for Silk. With an open application you can then access (directly or indirectly) any VCL component and all published properties. Bring the issue up with Seque, let them know there is a market demand for such an add-in.
    Tweaking the VCL or even the application to any degree is NOT recommended and I would never do such a thing. The WinRunner and QATest add-ins do not require any code changes. Just adding the unit to the uses clause of the applications DPR file. Your Delphi programmers will understand this.

  5. #5
    Member
    Join Date
    Sep 2000
    Location
    Lake Forest, CA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delphi app and SilkTest

    I just thought of another approach that may work, but I haven't actually tried it. Your programmers may be able to create their own add-in. What they would do is create a windowed component (or pair of windowed components) that makes use of two string properties that Silk can access. The first property holds the path.name.property of the target component and the second holds a text representation of the value of that property. Setting the second property would change the value under question. You can then do something like:
    MyApp.SilkTarget.SetText("Form1.NameLabel.Caption" );
    sText = MyApp.SilkValue.GetText;
    where setting the text on the SilkTarget component causes it to use Delphi's RTTI (Run-time Type Information) to get the specificed value and place in in the SilkValue component. This would require the component to be on added somewhere in the project but not source code changes.

  6. #6
    Member
    Join Date
    Sep 2000
    Location
    Lake Forest, CA
    Posts
    31
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delphi app and SilkTest

    I implemented my idea and, with some tweaking, it seems to work. I placed everything on: http://www.magic2go.com/delphi/autom...g/opentest.htm

    I offering it at no charge but since you inspired it Monica, I'll give you 50% off. <g>

    --Greg

  7. #7
    Member
    Join Date
    Mar 2002
    Location
    Germany
    Posts
    39
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delphi app and SilkTest

    Hi Greg,
    I'm interested in your idea but I the url you gave doesn't work for me. can you actualize it?
    Thanks
    Seretta

  8. #8
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Delphi app and SilkTest

    Sorry dude....he hasn't been on the site in almost 4 years now. Requests have been send but I think that he's moved on now.

 

 

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:56 AM.

Copyright BetaSoft Inc.