To configure connection to TestRail, you need to know the following parameters:
To configure connection in RCPTT IDE, go to Window -> Preferences -> RCP Testing Tool -> Integrations -> TestRail, activate 'Enable integration with TestRail' checkbox and provide all parameters.
You can test connection by using 'Test connection' button.
Note that the password is stored in the Secure Storage, so you will be asked to type your master password.
If you want to send Test Run results to TestRail for specific Test Suite, you should enable 'TestRail' engine in Run Configuration.
To enable the engine, go to Run -> Run Configurations..., choose the Test Suite and activate 'TestRail' checkbox on 'Test Engines' tab.
By default, 'TestRail' engine is disabled for Test Suite and Test Run results are not sent to TestRail. Also, you can specify ID of the existing Test Run on this tab.
To configure connection in RCPTT Test Runner, add 'testEngine' command-line option value with 'testrail:' prefix and semicolon-separated list of parameters.
To configure connection in RCPTT Test Runner, add 'testEngines/testEngine' to the configuration section in your pom.xml.
For TestRail engine specify 'testrail' ID value and list of parameters.
To bind RCPTT Test Case with TestRail Test Case, add a new Test Case property called 'testrail-id' and provide ID from TestRail.
Property name field has the suggestions list. So you can choose 'testrail-id' property from it.
Value field has the suggestions for 'testrail-id' too. All available Test Case IDs from TestRail are shown in this list.
When one of IDs is chosen (1), its description is shown (2). You can copy it all with 'Copy to the clipboard' button (3).
To send Step Results to TestRail, you can use test-rail-step ECL command.
If you use test-rail-step command, make sure that 'Test Case (Steps)' template is chosen for your Test Case on TestRail side.
test-rail-step -content "step one" -expected "success" -actual "success" -status passed
test-rail-step -content "step two" -expected "success" -actual "failure" -status failed