I would like to trigger the execution of the selected test cases. The documentation is quite clear about this. But I would like the trigger to start an executable jar (list of testcases will be passed as command line argument). This jar will execute the tests and this java applicaton is supposed to send back the results via Testrail API.
Here comes the problematic part. The test executor (the java app) should know the credentials of the user who triggered the execution. How could I pass the logged in user’s credentials? Or could I use some session Id in report API calls?
Shall I somehow request for username and password in UI script and pass this to trigger.php and the credentials will be passed to the Java application? This would not be a nice solution as the user is already logged in, so I would not like to display another authentication form before test run triggering.
Is there any other way to solve this?