Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assertion failed with "Gold Input From File" with "€" character #609

Open
medecigo3 opened this issue Jun 30, 2021 · 1 comment
Open

Comments

@medecigo3
Copy link

No description provided.

@medecigo3
Copy link
Author

Maven Plugin version: 2.8.0

Maven version: 3.5.4

Product : Either of TIBCO ActiveMatrix Businessworks 6

Product version: 6.7.0

Component: Maven Eclipse Plugin

Steps to reproduce the issue:
This assumes you have already added the "Test" file for the sub-process in question. Please refer "Adding Unit Tests Assertions" section from https://github.com/TIBCOSoftware/bw6-plugin-maven/wiki/UnitTesting to add test file.
This assumes the test project is Mavenized.

Direct subprocess has a mapper activity which concats test data to input string.
image

  1. Run "mvn clean initialize site package" in parent project: "payee-service-parent"
  2. Assertion error @Mapper in test case "/PayeeAppModule/Tests/SubProcess.bwt":
    image
    image

See the output text formatted below:
[ERROR] -----------------------------------------------------Fault Data---------------------------------------------------------------------
Assertion Failed For Activity with name [Mapper] in Sub-Process [com.tecxis.payee.mapping.SubProcess] for TestCase File [/PayeeAppModule/Tests/SubProcess.bwt] [Reason] - Validation failed against Gold file. Please compare Activity output against Gold output values [Activity Output:
<tns:Output xmlns:tns="http://www.tibco.com/namespaces/tnt/plugins/generalactivities/mapper/1624722597444">â?¬ABC</tns:Output>]
[Gold Output: <tns:Output xmlns:tns="http://www.tibco.com/namespaces/tnt/plugins/generalactivities/mapper/1624722597444">â?¬ABC</tns:Output>]
3. Activity output matches the Gold output however assertion fails.
image

Additional information you deem important (e.g. issue happens only occasionally):
€ symbol is escaped as non-XML characters: "â?¬"

See the test project attached:
Payee.zip
Note: Configure bw6-maven-plugin properties (such as tibco.Home) in file: /Payee.application/pom.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant