Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

 

0 votes



2 answers

Permanent link
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.

1 vote


Permanent link
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:
<feedUrl>?fields=feed/entry/content/testplan[title='test plan X']/description&wildcard=X

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,014

Question asked: Jul 02 '12, 8:59 p.m.

Question was seen: 5,725 times

Last updated: Feb 05 '13, 7:19 p.m.

Confirmation Cancel Confirm