Annotation-Based Requirements
The NRG_Selenium test framework allows you to specify certain annotations at either the class level or test level (depending on the annotation). These annotations are:
- @Basic - Include this annotation at the test-level or class-level to indicate that a test (or all tests in a class) is "basic". When "Basic mode" is enabled, only such tests will be executed.
- @DisableWebDriver - Include this annotation on a test to prevent the framework from automatically creating a WebDriver for the whole test. Supported only at the test-level.
- @DisallowXnatVersion - Include this annotation at either the test-level or class-level and provide an array of XnatVersion elements. This annotation then specifies that these test(s) will be excluded in any of the versions from the array.
- @HardDependency - Include this annotation at the test-level with a list of other tests in the class to indicate that those tests must complete successfully for this test to run. Affects test ordering and will skip execution if dependencies are not satisfied.
- @RequireXnatVersion - Include this annotation at either the test-level or class-level and provide an array of XnatVersion elements. This annotation then specifies that these test(s) will be included only in testing one of the versions from the array.
- @SoftDependency - Include this annotation at the test-level with a list of other tests in the class to indicate that those tests should complete before this test runs. Affects test ordering only.
- @SoftClassDependency - Same as @SoftDependency, but at the class-level.
- @TestRequires - Include this annotation at either the class-level or test-level, and overwrite some or all of the parameters.
- If you set any of ssh(), db(), dicomScp() to true, the tests will check that SSH credentials, DB credentials, or DICOM SCP Receiver information is available, respectively. If this check is not satisfied, the test (or tests, if specified at the class-level), will be skipped.
- If you set user() to true, the tests will create a simple non-admin user for the test (or for every test in the class if specified at the class-level).
- If you set data() to an array of elements from TestData, the tests will download that data from the NRG FTP site before executing.