SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 2 of 2

Thread: Help a Newbie

  1. #1
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Help a Newbie

    User Kapralos, Michael (KapralosM@aetna.com) posted:

    Hey all,
    I have a couple of questions, and I was wondering if you would be able to
    give me some assistance. Here is the background of what I am using. Windows
    NT SP 5 and SQA Team Test Version 6 and using the SQA BASIC not VB (cant get
    my hands on a license here). Also, I am testing VB applications.
    1) Is there a way to close a program as in from task manager at the process
    level?
    2) How can I get the script to react to an error code, which causes the
    program to crash?

    Thanks a bunch
    -Mike

    Help a Newbie, make yourselves feel better about your own intelligence ;-)

    ---

  2. #2
    SQA Council
    Join Date
    Mar 2001
    Posts
    14,438
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Re: Help a Newbie

    User (Paul_Downes@providian.com) posted:


    1. If you know the program's PID, you can terminate it in a number of
    ways, using the Win API functions or a variety of utilities. To determine
    what the PID is, use the Monitor utility from the resource kit, or any of
    the many such utilities - check out the tools available on www.sysinternals.com. Ang Peng's FindWindow utility is on the
    RationalUsers website. Many of these either have command-line modes or can
    be driven by Robot.

    Using the API, ExitProcess is the preferred method of ending a process. If
    a process terminates by calling TerminateProcess, the DLLs that the process
    is attached to are not notified of the process termination. In the NT
    resource kit is a utility called "kill.exe" which lets you kill an NT
    process by either its process id or task name.

    But there's an even better option - offer to buy Tim Gerrells a beer or
    three if he finishes up his "createprocess" function library. It enables
    you capture the PID when you start the program as well as terminate the
    process.

    2. Read up on the Trap options, which are set on the Trap tab under
    respond to errors tha you may not be able to trap within your script.

    Cheers . . . Paul
    "Kapralos, Michael" <KapralosM@aetna.com> on 06/29/2001 07:23:53 AM

    Please respond to "SQA Suite Team Test Users"
    <sqa-suite-users@lyris.dundee.net>

    To: "SQA Suite Team Test Users" <sqa-suite-users@lyris.dundee.net>
    cc:

    Subject: Help a Newbie


    Hey all,
    I have a couple of questions, and I was wondering if you would be able to
    give me some assistance. Here is the background of what I am using. Windows
    NT SP 5 and SQA Team Test Version 6 and using the SQA BASIC not VB (cant
    get
    my hands on a license here). Also, I am testing VB applications.
    1) Is there a way to close a program as in from task manager at the process
    level?
    2) How can I get the script to react to an error code, which causes the
    program to crash?

    Thanks a bunch
    -Mike

    Help a Newbie, make yourselves feel better about your own intelligence ;-)

    ---

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.36 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 13.64%
vBulletin Optimisation provided by vB Optimise v2.6.4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.2.8 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin 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 04:21 PM.

Copyright BetaSoft Inc.