Search code examples
kiwi-tcms

Using the Python API is there anyway to get the Test Run's Status?


I currently have a python program which exports Test Runs, Test Plans, and Test Cases to CSV.

I am using the TestRun Model but I cannot get the information highlighted in the status column seen here. Is there anyway to get this information?

Thanks!


Solution

  • I currently have a python program which exports Test Runs, Test Plans, and Test Cases to CSV.

    This is great. Please consider contributing your script under https://github.com/kiwitcms/api-scripts

    I am using the TestRun Model but I cannot get the information highlighted in the status column seen here. Is there anyway to get this information?

    Note: these screenshots are old!

    There is no TestRun.status field, the status is only a visual property which is calculated by the UI based on the presence or absence of TestRun.stop_date field. If this field is null/None then the status is "Running", otherwise it is "Stopped".

    In the current TR search page for example we query the TestRun.filter API with a stop_date__isnull=True parameter.