We can prioritize tests based on their severity using @severity annotation from allure.
Allure Report defines four levels of severity:
- Blocker: A blocker is a severe defect that blocks the application's functionality. The application can only proceed further with fixing the issue.
- Critical: A critical defect is a high-priority issue that can cause significant application functionality problems.
- Normal: A normal defect is a medium-priority issue that does not cause significant application functionality problems.
- Minor: A minor defect is a low-priority issue that does not affect the application's functionality but may cause some inconvenience or confusion for the end users.
@Test
@Severity(SeverityLevel.NORMAL)
public void test3() {
int a = 3;
int b = 4;
System.out.println(b / a);
System.out.println("Third");
}
- Here we have used the normal severity.
- You can assign the type we want to use based on the severity type.
