Wildcard match not working for testcase[title...] via REST API (RQM 3.0.1). Should it?
Hi,
I am using a filter like the following to retrieve a test case with an exact name match in RQM 3.0.1. This works:
?fields=/feed/entry/content/testcase[title='MyTestCase']/(identifier|title)
According to the documentation, I should be able to use the following Wildcard characters: _ (for a single match) and % for 0 or more characters. Why, when I do this, does none of these match?
?fields=/feed/entry/content/testcase[title='MyT_stCase']/(identifier|title)
?fields=/feed/entry/content/testcase[title='MyT%stCase']/(identifier|title)
Do I need to escape it? If so, exactly how would it look? I feel this should work - but it does not.
GS
2 answers
This doesn't seem to be working for me either. I'm using the JKE Banking sample project on a 3.0.1.4 server. Using the filter
?fields=feed/entry/content/testcase[title='Verify dividend transfer frequency']/*
I correctly get one resource in the feed. If I replace any one of the characters in 'Verify dividend transfer frequency' with _ I get nothing in the feed. If I replace any one character with a % I get all of the test cases in the project.
?fields=feed/entry/content/testcase[title='Verify dividend transfer frequency']/*
I correctly get one resource in the feed. If I replace any one of the characters in 'Verify dividend transfer frequency' with _ I get nothing in the feed. If I replace any one character with a % I get all of the test cases in the project.
I found this post while trying to do the same thing. The rest API doc states the wildcard is only in 4.0. and later.
https://jazz.net/wiki/bin/view/Main/RqmApi
This is the example from the above doc, and I was able to get this to work in 4.0.1.
Example:
https://jazz.net/wiki/bin/view/Main/RqmApi
This is the example from the above doc, and I was able to get this to work in 4.0.1.
Example:
<feedUrl>?fields=feed/entry/content/testplan[title='test plan X']/description&wildcard=X