Jump to content

Recommended Posts

Posted

#include <File.au3>
#include <IE.au3>

$file = FileOpen("logfile_" &@MDAY &@MON &@HOUR &@MIN &"_" &$ip[$x] & ".txt", 9)
       If $file = -1 Then
            MsgBox(0, "Error", "Unable to open file.")
        Exit
      EndIf
Sleep(2000)
FileWrite($file, "SQA Testing IP#: " & $ip[$x] & @CRLF
FileWrite($file, "Home Page Testing" & @MDAY &"/" & @MON &"/"  & @YEAR &"_"  & @HOUR &":"  & @MIN  & @CRLF)
FileWrite($file, "Products Page Testing" & @MDAY &"/" & @MON &"/"  & @YEAR &"_"  & @HOUR &":"  & @MIN  & @CRLF)
FileWrite($file, "SQA Testing Finished at: " & @MDAY & @MON & @YEAR & @HOUR & @MIN & @CRLF)
Sleep(2000)
FileClose($file)

I would like to dispay the logfile or a status window for the user to see as the test progresses. (when file is opened till its closed).

Is it possible to do that or do I have to incorporate a GUI for my script??

Posted

You know how we write to console, then writelog will write to a file without showing the user what's being logged. I want to show the user, the file that I am writing to since they are running the compiled .exe and am running the debug version from the editor.

Posted

I basically want the distributable .exe to generate a visible status during the test so that the user can see which test case is currently under test

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
×
×
  • Create New...