SPONSORS:






User Tag List

Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Nov 2000
    Location
    Ulm, DE
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Recording Window Declarations dynamically during test run

    Is it possible to record and use window declarations dynamically during a test run?

    What I need to do is implement a "Random Test" that will test the objects (Pushbuttons, Scrollbars, MenuItems,...) of a window and their sequential functionality at random. That means, I'll need to capture the objects of the window as it appears, then randomlly pick up and object in this window and test its functionality.

    Is is possible to achive this task wilk SilkTest and how do I go about it.

    Thanks for your help.

    FYI: I'm running SilkTest 5.0.3 under Win NT for testing a Visal Basic Windows app.



    [This message has been edited by silverter (edited 11-16-2000).]
    Silverter - A guru was once a beginner

  2. #2
    Senior Member
    Join Date
    Nov 2000
    Location
    Bloomington, IL
    Posts
    142
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording Window Declarations dynamically during test run

    I created a function that uses the GenerateDecl method to automatically generate window declarations on the fly. Look in Help for more information.

  3. #3
    Senior Member
    Join Date
    Jul 1999
    Location
    Burlingame CA 94010
    Posts
    502
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording Window Declarations dynamically during test run

    You want something like

    LIST OF WINDOW lwChildren
    lwChildren = MyApp.GetChildren ()
    WINDOW w
    for each w in lwChildren
    {
    if (ClassOf (w) == PushButton)
    DoButtonTests (w)
    }

    This will dynamically get all the PushButton objects found in the window at runtime. The DoButtonTests () function could perform standard verifications as you mentioned.

    Hope this helps.



    ------------------
    John W Green
    jwgreen@automationexpertise.com
    http://www.automationexpertise.com

  4. #4
    Member
    Join Date
    Nov 2000
    Location
    Ulm, DE
    Posts
    82
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Recording Window Declarations dynamically during test run

    Thank you very much for all your replies, this gets me started. Another crucial Problem I have ist implementing the functions to test the functionality of the widgets in my apps.

    Say I have the following PushButtons in my apps: "Copy","Open","Close","Delete"... Do I have to write individual functions for each of these widgets (what I'm doing now, quite tedious) or is there an efficient way to get it done? How do I get the state of the application after an action occurs?

    Thanks alot for your help and time.
    Silverter - A guru was once a beginner

 

 

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

Copyright BetaSoft Inc.