unitTestBeforeAll Option

The unitTestBeforeAll method option indicates that the method is a unit test method that is run once before any classes are tested.

Methods with unitTestBeforeAll and unitTestAfterAll method options can be defined only on the base JadeTestCase class, and there can be one instance only of these method options in a schema.

If any number of tests are run from the schema, the unitTestBeforeAll and unitTestAfterAll method options are executed once only.

If multiple unitTestBeforeAll and unitTestAfterAll method options are defined on methods of the JadeTestCase class in a schema, the first instance of the method option is used and a warning is logged, stating that all other instances have been ignored.

If unitTestBeforeAll and unitTestAfterAll method options are defined on methods in subclasses of the JadeTestCase class, they are ignored and a warning is logged, stating they have been ignored.

If a unitTestBeforeAll method fails, the first class method executed is counted as failed.

A method with the unitTestBeforeAll option specified can perform any one‑off global initialization for all tests; for example, package initialization and creating test data.

2016.0.02 (Service Pack 1) and higher