Skip to main content
1-Visitor
October 7, 2010
Question

How to get Requirement Description?

  • October 7, 2010
  • 1 reply
  • 566 views

Hi ,

When I use the below code I am getting some error?

Requirement requirement = (Requirement ) newObject;

HTMLText htmtext = requirement.getDescription();

htmltext.getPlainText() gives NullPointerException()

or

htmltext.getRichText() gives MalFormedURLException().

,

How to get the description of the Requirement object?

Have any ideas?

Thanks,

selsium

1 reply

Selva1-VisitorAuthor
1-Visitor
October 25, 2010

Hello folks,

Finally i found the answer to this question.....

String str = RequirementUtilityHelper.getDescription(requirementObject);

will return the string of the description in HTML format...