Hi, I've checked your type of document and your regular expression
Currently the requirement import works in a sequential way paragraph after paragraph
it manages ids and attributes differentlyfor the ids it works with one regex with one group so in your case you'll lose the title (...some title...) for attributes it can work with multi groups, but in your case i don't see how you can recognize your text maybe applying a special style or defining a recognition
example : #text some text
your regular expression #(MRQ_\d{3})#\s(.+)\r\n(.+)\r\n is recognized
correctly in the regex viewer dialog but you have inserted \n character
as we parse documents paragraph after paragraphe the software will not
recognize it. Maybe we shall explain this behavior in the tutorial.
To check the tool you can just insert for the ids #(MRQ_\d{3})#.* for example
Concerning the log file, you can check the Eclipse log view : Window > Show view > Error Log and for tutorials you can found one at topcased web site : http://gforge.enseeiht.fr/docman/view.php/112/3597/TPC_3.0_Requirements_tutorial.pdf
Regards Tristan FAURE [email protected] a écrit :
Hi, I'm using Topcased 3.0.1 on Windows xp.I was trying to import Requirements from a document into my SysML project, following theguide available on the topcased site. Whatever I try, I end up having a empty (see below) .requirement file. - I tried docx or odt formats - I'm just using regex'es to recognize the requirements. #MRQ_001# someTitle the system shall bla..The regex is : #(MRQ_\d{3})#\s(.+)\r\n(.+)\r\n (the text is recognized correctly in the regex viewer dialog.Any help whether its' a bug or I'm the bug would be appreciated. Further questions: - is there a log file to see whats wrong? - Is there a example Document for the tutorial? Thanx in advance Daniel ---- srs.requirement <?xml version="1.0" encoding="ASCII"?><requirement:RequirementProject xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:requirement="http://org.topcased.requirement/1.0" xmlns:ttm="http://org.topcased.traceability.model/1.0" xmi:id="_QeWyAKN_Ed6TztKyBqRlBA" identifier="project generated at 17.09.09 13:43"><attributeConfiguration> <listAttributes name="#Allocate" type="Allocate"/> <listAttributes name="#Covered_by"/> <listAttributes name="#Justify"/> <listAttributes name="#Link_to" type="Link"/> <listAttributes name="#Maturity"><defaultValue value="//@attributeConfiguration/@listAttributes.4/@listValue.0"/><listValue value="TBD"/> <listValue value="TBC"/> </listAttributes> </attributeConfiguration> <chapter xmi:type="requirement:ProblemChapter"/> <chapter xmi:type="requirement:TrashChapter"/> <chapter xmi:type="requirement:UntracedChapter"/> <upstreamModel ident="UpstreamModel"> <documents ident="SRS.odt"><children xmi:type="ttm:Section" ident="System Anforderungsspezifikation"> <children xmi:type="ttm:Section" xmi:id="_Qf7fUKN_Ed6TztKyBqRlBA" ident="Funktionale Anforderungen"/></children> </documents> </upstreamModel> </requirement:RequirementProject> _______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
<<attachment: tristan_faure.vcf>>
_______________________________________________ Topcased-users mailing list [email protected] http://lists.gforge.enseeiht.fr/mailman/listinfo/topcased-users
