Test results disappear on the Test run

Hi

I am creating a Test run using an API as shown below

and for the same Test run I am adding the results using the below API to upload the Test results

and it shows like this on the Testiny

once I navigate to another test run and come back, it is blank

If I try to add test case manually for the same Test run , it throws error

{type: "ApiError", code: "API_INPUT_DATA_CONFLICT", message: "Mapping already exists",reqid:"4b3gygOmBZJttIGUTRfe",type: "ApiError"}

KInldly help me if I am missing anything

Hi!

In your code you create a test run and specify closed_at and closed_by. Although you set is_deleted and is_closed to False, this has some side effects in the UI and we’re discussing how to resolve this issue. For now, please try omitting these parameters.

You can also omit created/modified/deleted_at/by as these values are ignored when inserting an entity.

May I also ask what’s your use case for importing test runs and their results via API?
We support importing automated test results via our CLI tool and we’re also currently working on improving the CLI importer and supporting more formats. What would you need to use the CLI?

Thanks for your feedback and best regards,
Hanna

Hi,

That worked !! I have removed created/modified/deleted_at/by fields and tried.

But CLI is for uploading the test results from an XML file right?
Is there a way of doing it from Python API? uploading XML files?