sak719 Posted July 5, 2011 Share Posted July 5, 2011 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 Link to comment Share on other sites More sharing options...
smartee Posted July 5, 2011 Share Posted July 5, 2011 (edited) 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 -smartee Edit: I wrote "in the helpfile" twice I the help-file Edited July 5, 2011 by smartee Link to comment Share on other sites More sharing options...
sak719 Posted July 5, 2011 Author Share Posted July 5, 2011 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 -smarteeEdit: I wrote "in the helpfile" twice I the help-file Link to comment Share on other sites More sharing options...
sleepydvdr Posted July 5, 2011 Share Posted July 5, 2011 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> Link to comment Share on other sites More sharing options...
sak719 Posted July 8, 2011 Author Share Posted July 8, 2011 That'll do it, thanks for the info. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now