Jump to content

Test report


sqa
 Share

Recommended Posts

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

  • Developers

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

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.

Link to comment
Share on other sites

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...