Customizing the message for tests on arrays or collections

You can customize the message displayed for the tests on arrays or collections of these complex objects in the HTML execution report.

If your BOM is mapped to a Java™ XOM and you want to test arrays or collections of complex objects, you can override the public String toString() method on the complex objects in order to customize the message displayed for the tests on arrays or collections of these complex objects in the HTML execution report.

Note:

The implementation of the toString method is not mandatory. However, if you do not implement it, you have the reference of the complex object displayed in the HTML report instead of the contents of the object.