使用 Python API 是否可以获取测试 运行 的状态?
Using the Python API is there anyway to get the Test Run's Status?
我目前有一个 python 程序可以将测试运行、测试计划和测试用例导出到 CSV。
我正在使用TestRun Model but I cannot get the information highlighted in the status column seen here。有没有办法获取这些信息?
谢谢!
I currently have a python program which exports Test Runs, Test Plans, and Test Cases to CSV.
太棒了。请考虑在 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?
注意:这些截图是旧的!
没有TestRun.status字段,状态只是一个视觉属性,由UI根据TestRun.stop_date字段的存在与否计算得出。如果该字段为null/None则状态为"Running",否则为"Stopped".
例如,在当前的 TR 搜索页面中,我们用 TestRun.filter
API 查询
stop_date__isnull=True
参数。
我目前有一个 python 程序可以将测试运行、测试计划和测试用例导出到 CSV。
我正在使用TestRun Model but I cannot get the information highlighted in the status column seen here。有没有办法获取这些信息?
谢谢!
I currently have a python program which exports Test Runs, Test Plans, and Test Cases to CSV.
太棒了。请考虑在 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?
注意:这些截图是旧的!
没有TestRun.status字段,状态只是一个视觉属性,由UI根据TestRun.stop_date字段的存在与否计算得出。如果该字段为null/None则状态为"Running",否则为"Stopped".
例如,在当前的 TR 搜索页面中,我们用 TestRun.filter
API 查询
stop_date__isnull=True
参数。