"Print" prints a message to the run-time details part of the Monitor window, whilst the "Write" function writes the message to an output (*.wrt) file. The choice of which to use depends on your requirements. "Print" is ideal if you want to see data in "real time" during a Try Script execution. However, that data printed to the Monitor Window will be lost when the project is shutdown or re-run unless you save the file by right-clicking in the Virtual User"s pane. Because the "Write" function writes to an output file, it automatically allows messages to be viewed and retained after execution. Note: you should remember that both functions can incur significant overheads during script execution. They should therefore be used sparingly and generally only at the Try Script stage for debugging.
↧