You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I am running the latest version of the ReqIFSharp
I have searched open and closed issues to ensure it has not already been reported
Description
ReqIF 'TOOL-EXTENSIONS' are not loaded when the rest of the ReqIF file is deserialized.
Some brute force debugging of commenting out chunks of ReqIF.cs showed that commenting out the following lines in the ReqIF.cs file allows Tool-Extensions to load:
The while loop appears to be iterating over all remaining XML elements in the file, going outside the scope of the CORE-CONTENT and REQ-IF-CONTENT elements.
Following Nunit test fails for the provided ReqIF file:
var path = "ProR_Traceability-Template-v1.0.reqif";
var deserializer = new ReqIFSharp.ReqIFDeserializer();
var reqif = deserializer.Deserialize(path);
Assert.That(reqif.TheHeader, Is.Not.Empty);
Assert.That(reqif.CoreContent, Is.Not.Empty);
// Note: This is the problem. This SHOULDN'T be empty, but it is.
Assert.That(reqif.ToolExtensions, Is.Not.Empty);
System Configuration
ReqIFSharp version:
ReqIFSharp: v2.0.0
Other:
Environment (Operating system, version and so on): Windows 10
.NET Framework version: .NET Core 2.1
Additional information:
The text was updated successfully, but these errors were encountered:
@vincenpt: I managed to fix the issue and in the mean-time made other improvements; let me know whether release 3.0.0 solves this problem for you as well.
Prerequisites
Description
ReqIF 'TOOL-EXTENSIONS' are not loaded when the rest of the ReqIF file is deserialized.
Some brute force debugging of commenting out chunks of ReqIF.cs showed that commenting out the following lines in the ReqIF.cs file allows Tool-Extensions to load:
reqifsharp/ReqIFSharp/ReqIF.cs
Lines 64 to 75 in 2116a7a
Some further debugging into ReqIFContent.cs lead me to the ReadXml function:
reqifsharp/ReqIFSharp/ReqIFContent.cs
Lines 139 to 141 in 2116a7a
The while loop appears to be iterating over all remaining XML elements in the file, going outside the scope of the
CORE-CONTENT
andREQ-IF-CONTENT
elements.Steps to Reproduce
Reference ReqIF file:
ProR_Traceability-Template-v1.0.reqif.zip
Following Nunit test fails for the provided ReqIF file:
System Configuration
The text was updated successfully, but these errors were encountered: