Hi everyone as I am just started to work in testrail and I want to integrate my testrail with selenium using Eclipse What I want to do? I want to run my test case in selenium and if its pass then my test case in Testrail should pass and else fail

1 Answer 1


You can make a call to TestRail's endpoint add_result_for_case. Example in Java:

Map data = new HashMap();
data.put("status_id", new Integer(1));
JSONObject r = (JSONObject) client.sendPost("add_result_for_case/1/1", data);

You can find the definition of the endpoint here.

You can find the complete documentation here and some extra examples of usage here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.