In reply to chr_sue:
*E and *W are tool specific generated error and warning messages. Catching tool generated messages is going to be tool specific.
The problem here is the test writer was lazy and did not check the return status of a call to randomize. (Don’t ignore those warnings when you call a function with a return value as a statement instead of using it an expression). Same for $cast and using the action block of an assertion.