Python supports registering a function for profiling purposes. Using this mechanism it is possible to add command tracing and “per-command” screenshots to Python test scripts.
An example implementation (called “squish_trace”) can be downloaded here.
Here is an example test script that makes use of the squish_trace functionality:
The additional log entries generated by squish_trace:
>>denote entering a function
<<denote exiting a function.
The tooltip of each trace log entry shows the local variables and their values at that point in time, in the above example the variable “i” of the for loop.
Related information and resources: