Use the "error" keyword when you expect an error. In this case, an error turns the cell a nice shade of green!



This example uses a fixture that has string property and two string methods that throw errors - one that throws it directly and one that throws it by delegating to another method that throws an error. See the cells turn yellow when you specify a value
when test is

story test fixture
checktest result
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
expecting string values
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
expecting
Error in the application.
string
Error in the application.
values
Error in the application.
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
expecting string values
then result is
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
expecting
Error in the application.
string
Error in the application.
values
Error in the application.

When you use the error keyword and errors are received, however, the cells turn green.
when test is

story test fixture
checktest result
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
error error error
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
error error error
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
error error error
then result is
error throwing fixture
error throwing method() error throwing property() redirect to error throwing method()
error error error