Skip to content
QiTASC.com / intaQt Built-ins /
Logging Built-ins (Println and Trace)
/ .. /
Logging Built-ins (Println and Trace)










Logging Built-ins (Println and Trace)

Logging Built-ins print logging messages to the Protocol Log and the Trace Log, which are located in a test cases's Reports folder. There are two logging functions:

  • println - Writes log messages to both the Protocol Log and the Trace Log.

  • trace - Only prints to the Trace Log.

Syntax

1
2
println(<message Any>)
trace(<message Any>)

Parameter

  • message - The logging messages
    • Any object is accepted as a parameter and is converted to a string

Example

1
2
3
4
5
6
7
stepdef "parse dates"
    now           := date("now")
    lastMonday    := date("last Monday")
    println("it is "  + now)
    println(lastMonday)
    trace("Tracing starts here")
end