Skip to content

Commit

Permalink
Created scenario to reproduce xml chars issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
harmen-xb committed Mar 6, 2024
1 parent de88a7e commit a88daa3
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,3 +149,40 @@ Feature: Decompose Extended Attributes
</ChildElement>
</RootElement>
"""

@Debug
Scenario: Formalize extended attributes with XML chars
Given the config file:
"""
<?xml version="1.0" encoding="UTF-8"?>
<PowerDeComposerConfig>
<Decompose>
<DecomposableElement />
</Decompose>
</PowerDeComposerConfig>
"""
And the composed file:
"""
<?xml version="1.0" encoding="UTF-8"?>
<RootElement>
<ChildElement>
<a:ExtendedAttributesText>{4202E4F4-4187-47CE-83BE-51088F229451},TestExtension,71={38253E88-8698-4A5B-8398-0FA2B14556C0},SqlExpression,13=@AMOUNT &gt; 100
</a:ExtendedAttributesText>
</ChildElement>
</RootElement>
"""
When I perform a decompose
Then I expect a decomposed file with the following content:
"""
<?xml version="1.0" encoding="UTF-8"?>
<RootElement>
<ChildElement>
<ExtendedAttributes>
<OriginatingExtension ObjectID="4202E4F4-4187-47CE-83BE-51088F229451" Name="TestExtension">
<ExtendedAttribute ObjectID="38253E88-8698-4A5B-8398-0FA2B14556C0" Name="SqlExpression">@AMOUNT &gt; 100</ExtendedAttribute>
</OriginatingExtension>
</ExtendedAttributes>
</ChildElement>
</RootElement>
"""

0 comments on commit a88daa3

Please sign in to comment.