'TestFolderStatus' missing in entity.py
jfthuong opened this issue · comments
Jean-Francois Thuong commented
Hi,
Few days ago, the filed "TestFolderStatus" has been added to Rally Test Folders.
Example:
TestFolderStatus: {
_rallyAPIMajor: "2",
_rallyAPIMinor: "0",
_ref: "https://rally1.rallydev.com/slm/webservice/v2.0/testfolderstatus/1852612339812",
_refObjectUUID: "4f90d8b7-5f99-4bb5-a3a3-eeca2dc26eba",
_type: "TestFolderStatus"
},
The file entity.py
should be updated to support this type:
From f35116d40f87276e3aa91e4cdd5036389318ccb0 Mon Sep 17 00:00:00 2001
From: Jean-Francois Thuong <...>
Date: Fri, 5 Jan 2018 19:42:08 +0800
Subject: [PATCH] Added TestFolderStatus to correct issue #132
---
pyral/entity.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/pyral/entity.py b/pyral/entity.py
index 124bfc5..14a8535 100644
--- a/pyral/entity.py
+++ b/pyral/entity.py
@@ -428,6 +428,7 @@ class State (WorkspaceDomainObject): pass
class TestCaseStep (WorkspaceDomainObject): pass
class TestCaseResult (WorkspaceDomainObject): pass
class TestFolder (WorkspaceDomainObject): pass
+class TestFolderStatus (WorkspaceDomainObject): pass
class Tag (WorkspaceDomainObject): pass
class TimeEntryItem (WorkspaceDomainObject): pass
class TimeEntryValue (WorkspaceDomainObject): pass
@@ -617,6 +618,7 @@ classFor = { 'Persistable' : Persistable,
'TestCaseResult' : TestCaseResult,
'TestSet' : TestSet,
'TestFolder' : TestFolder,
+ 'TestFolderStatus' : TestFolderStatus,
'TimeEntryItem' : TimeEntryItem,
'TimeEntryValue' : TimeEntryValue,
'Build' : Build,
--
2.8.1.windows.1
Grigory Starinkin commented
as a workaround, if you don't need all TestFolder fields, you can fetch only required set:
result = rally.get('TestFolder', fetch="TestCases", query=query_criteria)
that would workaround missing TestFolderStatus
object as this field is not fetched in the request.
Jean-Francois Thuong commented
@velimir0xff Indeed. But unfortunately not working for tf.Parent
or tf.Children
.
Kip Lehman commented
TestFolderStatus support added in v1.4.1. Thanks for the suggestion!