in reply to GUITest to test GUI

Why not watch for these popups using a script that runs as a distinct process?

 

Replies are listed 'Best First'.
Re: Re: GUITest to test GUI
by Anonymous Monk on May 17, 2004 at 12:58 UTC
    I will not be able to find out which batch files were successful or have failed! There is only one popup style (a generic one) and it does not tell me with batch file has issued it. I need to find a way to tie up the batch file with its popup.

    I hope I am making it clear!
      Process 1 | Process 2 |------------------------------|---------------------------------| | | | | write "batch 1" to a file F | | | starts "batch 1" | | | | | T | * Notices generic popup | I | * Reads "batch 1" from file F | M | * writes to a log file etc | E | * Ignores popup until F changes | | | * Aborts system shutdown | | | | | batch 1 finishes | | | write "batch 2" to F | | | start "batch 2" | | | | * (no popups detected) | | | * detects and aborts sys shtdn | | batch 2 finishes | | | | | | ...etc | | V

       

        If you do this, make sure that you're not Suffering from Buffering. Else Process 2 might think that you're on a job previous to the current one.

        I'd also suggest that if you've taken the above step, then Process 1 should write additional information (eg timestamps before and after any batch step)) to the log. This has no immediate relevance to your problem, but if the batch process gets slow, those timestamps will let you figure out which steps are performance problems. Build it from the start, and when you need it, it will be there.