ScriptEditorLogger

Declared In:

Introduction

Displays test results in a new AppleScript Editor document.



Member Functions

initialize

Creates a "Test Results" document if one does not already exist.

printColoredLine

Prints the given string to the "Test Results" document and starts a new line.

printColoredString

Prints the given string to the "Test Results" document.

printTestCase

Prints the name of the current test.


initialize


Creates a "Test Results" document if one does not already exist.

on initialize()

printColoredLine


Prints the given string to the "Test Results" document and starts a new line.

on printColoredLine(
    aString,
    aColor)
Parameters
aString

[text] The text to be printed.

aColor

[RGB color] The text color.

Discussion

The string is automatically prefixed by --, so that it is treated as a comment by AppleScript Editor.


printColoredString


Prints the given string to the "Test Results" document.

on printColoredString(
    aString,
    aColor)
Parameters
aString

[text] The text to be printed.

aColor

[RGB color] The text color.


printTestCase


Prints the name of the current test.

on printTestCase(
    aTestCase)
Parameters
aTestCase

[script] A test case.

Discussion

The string is automatically prefixed by --, so that it is treated as a comment by AppleScript Editor.