Jump to content
Sign in to follow this  
sak719

Viewing test progress

Recommended Posts

sak719

Looking for ways to view test progress during running of batched up tests. Something like writing to

a text file, then doing a tail -f to see the progress. Or is there a more efficeint or easier way?

Thx

Share this post


Link to post
Share on other sites
smartee

hi sak719,

Your question is a bit vague, What do you mean by batched up tests? :)

Anyway, search for ProgressOn(), ProgressSet(), ProgressOff() in the help-file and try putting together something.

If you stumble, feel free to post back with your code.

Hope this helps :D

-smartee

Edit: I wrote "in the helpfile" twice ;) I ;) the help-file

Edited by smartee

Share this post


Link to post
Share on other sites
sak719

Thanks for the info but that's not the progess I'm talking about. What I'm doing is automating the install of

3rd party s/w. What I need to see is what packages have been installed, and what is the current package, etc.

Looking at the popups may not be enough to tell me what is being installed. I would like to look at a log file to see what's

been installed so far, etc.

hi sak719,

Your question is a bit vague, What do you mean by batched up tests? :)

Anyway, search for ProgressOn(), ProgressSet(), ProgressOff() in the help-file and try putting together something.

If you stumble, feel free to post back with your code.

Hope this helps :D

-smartee

Edit: I wrote "in the helpfile" twice ;) I ;) the help-file

Share this post


Link to post
Share on other sites
sleepydvdr

Thanks for the info but that's not the progess I'm talking about. What I'm doing is automating the install of

3rd party s/w. What I need to see is what packages have been installed, and what is the current package, etc.

Looking at the popups may not be enough to tell me what is being installed. I would like to look at a log file to see what's

been installed so far, etc.

You mean something like this?

#include <GUIConstants.au3>

#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 366, 253, -1, -1)
$Edit1 = GUICtrlCreateEdit("", 8, 8, 345, 201)
GUICtrlSetData(-1, "Press button to begin")
$Button1 = GUICtrlCreateButton("Install Software", 257, 216, 95, 25, 0)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
        Case $Button1
            $log = FileWrite("installation.log", "Beginning installation of software #1" & @CRLF)
            GUICtrlSetData($Edit1, FileRead("installation.log"))
            ;Install software #1
            Sleep (2000)
            $log = FileWrite("installation.log", "Software #1 has been installed" & @CRLF)
            GUICtrlSetData($Edit1, FileRead("installation.log"))
            Sleep (2000)

            $log = FileWrite("installation.log", "Beginning installation of software #2" & @CRLF)
            GUICtrlSetData($Edit1, FileRead("installation.log"))
            ;Install software #2
            Sleep (2000)
            $log = FileWrite("installation.log", "Software #2 has been installed" & @CRLF)
            GUICtrlSetData($Edit1, FileRead("installation.log"))
                        
            FileDelete("installation.log")
    EndSwitch
WEnd

#include <ByteMe.au3>

Share this post


Link to post
Share on other sites
sak719

That'll do it, thanks for the info.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×