testng-testrail-integration Allure's @TmsLink and @TmsLinks are used to map test script to specific test case in TestRail. Custom annotation also can be created and used for these purposes, indicating test case ID in TestRail.