sqa Posted February 3, 2013 Share Posted February 3, 2013 Hi, I am using AutoIT as a tester almost for 6-7 months and I was fine with the my test results displayed by using: #include<debug.au3> _DebugSetup() _Debugout("01. .....") _Debugout("02. .....") and now I am on the stage when I need something more sofisticated, visually nice ... Is there any examples of it that I may use or learn how to? Thanks Link to comment Share on other sites More sharing options...
Developers Jos Posted February 3, 2013 Developers Share Posted February 3, 2013 and now I am on the stage when I need something more sofisticated, visually nice ...You want Gogo dancers showing up while the debug messages are displayed? Seriously, What is it you are looking for? Something like a Progressbar as done by ProgressXXX() functions?Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
sqa Posted February 3, 2013 Author Share Posted February 3, 2013 Probably something like:step 1 - Passstep 2 - ErrorTest complete with 1 Pass and 1 ErrorClicking at error line it will drop down to the error description - line 10 Error - wrong version numberSomething like this. Thats why I am asking if there can be some exaples of it. Or something similar to what WinRunner has. Link to comment Share on other sites More sharing options...
Bowmore Posted February 3, 2013 Share Posted February 3, 2013 I find that the function _FileWriteLog() is very useful to create a timestamped log of all the test steps and record the results in a single file. A Simple example #include <file.au3> Local $sMyTestLog = "C:\Data\TestResults\" & @Year & "-" & @MON & "-" & @MDAY & ".log" ;Test1 If test1 = 1 Then _FileWriteLog($sMyTestLog,"Test 1 - PASSED") Else _FileWriteLog($sMyTestLog,"Test 1 - FAILED - " & "Failure reason ?") EndIf ;Test2 If test2 = 1 Then _FileWriteLog($sMyTestLog,"Test 2 - PASSED") Else _FileWriteLog($sMyTestLog,"Test 2 - FAILED - " & "Failure reason ?") EndIf "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
sqa Posted February 3, 2013 Author Share Posted February 3, 2013 Thanks a lot, I will try 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