RqmApi - Filtering testcases by custom attribute
Accepted answer
/testcase?fields=feed/entry/content/testcase[customAttributes/customAttribute/name="myattribute" and (customAttributes/customAttribute/value="A" or customAttributes/customAttribute/value="B")]/*
2 other answers
Comments
I'm not positive that you can do that. When a category is "unassigned", it simply does not exist in the test case. So a filter to check the "unassigned category" is actually check the existence of the "category" property. It will make it more difficult if there are multiple categories defined but only some of them are assigned values for the test case.
1 vote
Right. I have been trying to figure this out for hours.
It seems like it doesn't matter if the value "A" or "B" is assigned to "myAttribute" or "myAttribute2".
Is there any possibility to get the result if and only if "A" or "B" is assigned to "myAttribute"?
Comments
Hi Julian, good catch! Sorry I don't have a solution for this. I wish the below filter would work, but unfortunately only the first bit name="mycustomattribute" is recognized. Basically I cannot find a way to tie both "name" and "value" to the same parent.
?fields=feed/entry/content/testcase[customAttributes/customAttribute[name="mycustomattribute" and value="BBB"]]/*