Hey @Iqbal, some of the most common attributes for @Test annotations are:
- description: gives information about the test it is attached to.
- timeOut: maximum number of milliseconds for a test run.
- priority: specifies when to run a test. The test with the lowest priority runs first, then the one with the next priority, and so on.
- dependsOnMethods: specify when you want to run a test, only after another test has run successfully, making the second test’s run dependent on the first test’s successful outcome.
- enabled: this attribute has boolean values, and by default is ‘true’. Only worth specifying explicitly when you don’t want a certain test method or class to be run, by setting the attribute to false.
- groups: useful for grouping together tests that relate to the same functionality, are of the same importance or are of the same type.