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

Requirement link value

 Hi Guys,
When there is no requirement linked to a test case in that scenario what is the returned value for 'href in requirement in Test case in RQM' for RPE. I appreciate your effort to give any effective answer.

0 votes



One answer

Permanent link
There will be no "Requirement" element in the data source, let alone the "href" value, if there are no requirement links at all.

0 votes

Comments

 Hi Donald, 

Thank you so much for your effort. but, is there any java script snippet to provide value if no requirement found for any test case. i want to provide "N/A" value if no Requirement found in a Test case in RPE. Once again, Thanks a lot.

I'm not familiar with RPE. In terms of JavaScript, I suppose you can just try to access the Requirement element, then test whether it is null (or undefined depending on your code), such as this:
http://stackoverflow.com/questions/2559318/how-to-check-for-an-undefined-or-null-variable-in-javascript

 I have 3 test cases where one of them do not have the requirement and all three test cases run one after another. one does not have requirement i would like to replace with "N/A" value. but i could not do it even if i tried so many ways. if u have any idea, i would appreciate you so much.

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

Question asked: Dec 02 '16, 4:28 p.m.

Question was seen: 2,697 times

Last updated: Dec 04 '16, 10:37 p.m.

Confirmation Cancel Confirm