Page tree
Skip to end of metadata
Go to start of metadata

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:

  1. @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.
  2. @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.
  3. @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.
  4. @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.
  5. @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.
  6. @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.
  7. @SoftClassDependency - Same as @SoftDependency, but at the class-level.
  8. @TestRequires - Include this annotation at either the class-level or test-level, and overwrite some or all of the parameters.
    1. 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.
    2. 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).
    3. If you set data() to an array of elements from TestData, the tests will download that data from the NRG FTP site before executing.
  • No labels