Jump to content
Sign in to follow this  
sqa

Test report

Recommended Posts

sqa

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

Share this post


Link to post
Share on other sites
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
sqa

Probably something like:

  • step 1 - Pass
  • step 2 - Error
Test complete with 1 Pass and 1 Error

Clicking at error line it will drop down to the error description

- line 10 Error - wrong version number

Something like this. Thats why I am asking if there can be some exaples of it. Or something similar to what WinRunner has.

Share this post


Link to post
Share on other sites
Bowmore

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

Share this post


Link to post
Share on other sites
sqa

Thanks a lot, I will try

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  

×