SPONSORS:






User Tag List

Results 1 to 2 of 2
  1. #1
    Guest

    Win 95 Mini-App (DialogBox) and Invoke.

    My mini-app consists of a DialogBox that has 3 tabs which allows data entry for creating dialup entries in a phonebook. There are no menus in this mini-app and it is not a MainWin class object. I would like to Invoke the app to start testing and even during test to close and restart it. My problem is that Silk does not Invoke the DialogBox and will timeout with an error at first line of script. If I run the script and quickly start the mini-app by a double click on the icon the test is run OK! I'd like Silk to actually start it not me, help please!

  2. #2
    Senior Member
    Join Date
    Sep 2000
    Location
    Twin Cities, MN, USA
    Posts
    653
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Win 95 Mini-App (DialogBox) and Invoke.

    What I did to be able to invoke Control Panel's Display Properties dialog box was record it as a dialog, but then change it to a MainWin:

    [-] window MainWin DisplayProperties
    [ ] tag "[DialogBox]Display Properties"
    [ ]
    [ ] // The working directory of the application when it is invoked
    [ ] const sDir = "C:\WINDOWS\Desktop"
    [ ]
    [ ] // The command line used to invoke the application
    [ ] const sCmdLine = "C:\WINDOWS\RUNDLL32.EXE desk.cpl"
    [ ]
    [ ] // The first window to appear when the application is invoked
    [ ] // const wStartup = ?
    [ ]
    [ ] // The list of windows the recovery system is to leave open
    [ ] // const lwLeaveOpen = {?}
    [+] DialogBox Background
    [+] DialogBox Settings
    [+] PushButton OK
    [+] PushButton Cancel
    [+] PushButton Apply

    Thsn I added a TestCaseExit to my frame.inc file to make sure it's closed afterward, in case something goes wrong:

    [-] TestCaseExit(BOOLEAN bTRUE)
    [-] if (DisplayProperties.Exists() )
    [ ] DisplayProperties.Close(False, True)
    [ ] DefaultTestCaseExit(bTRUE)


    I'm kind of new to SilkTest but this works for me.

 

 

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

Copyright BetaSoft Inc.