How to add Test results (junit xml result) via REST API?

I have the AUtomatest test running on the Azure pipeline. I want to import results to Testiny app as mentioned here in this link(https://www.testiny.io/docs/automation/importing-results/) via REST API .

Is this possible?

Hi,

While using the REST API directly is possible, it’s way easier to use the Testiny CLI to import test results. It automatically parses the result files, creates test cases and sets the results via the API.

In Azure pipelines, just create a new “Command line” task and then call the Testiny CLI as described in the documentation.

The Testiny CLI needs to be available in your repository or downloaded in the command line task (the latter is preferred, so you always have the latest version). You can either download the executables directly or use our NPM package - see all links and further info here:
https://www.testiny.io/docs/automation/getting-started/

Best Regards,
Alex

Can you guide me on how to do it from the Python API? I have an issue with using CLI in my system due to the SSL certificates as mentioned here (https://www.testiny.io/forum/t/importer-error/198/2)

I just posted a thing you can try to fix your certificate problem in this thread:
https://nodejs.org/docs/latest-v4.x/api/cli.html#cli_node_extra_ca_certs_file

We already covered the “using API to add test results” topic in the following thread with you:

I cannot give you exact code for Python, that’s unfortunately beyond our level of support.
Again, I can just stress that using the CLI will do everything for you, so let’s try to make the CLI work for you.

Regards,
Alex