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

Issue executing test with goldenFile Test #472

Closed
alexandrev opened this issue Jul 8, 2020 · 3 comments
Closed

Issue executing test with goldenFile Test #472

alexandrev opened this issue Jul 8, 2020 · 3 comments

Comments

@alexandrev
Copy link


BUG REPORT INFORMATION

Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST

Maven Plugin version: 2.7.0

Maven version: 3.3.3

Product : Either of TIBCO ActiveMatrix Businessworks 6 OR TIBCO Businessworks Container edition

Product version: BWCE 2.5.2

Component: Either of Maven Eclipse Plugin or Maven build plugin

Steps to reproduce the issue:

  1. Import the project
  2. Execute the mvn clean initialize site package
  3. Check the error

Additional environment details if any:

Describe the results you received:

[INFO] Total time: 53.745 s
[INFO] Finished at: 2020-07-08T22:32:01+02:00
at java.io.File.(File.java:277)
at com.tibco.bw.maven.plugin.test.helpers.TestFileParser.collectAssertions(TestFileParser.java:139)
at com.tibco.bw.maven.plugin.test.rest.AssertionsLoader.loadAssertions(AssertionsLoader.java:61)
at com.tibco.bw.maven.plugin.test.rest.BWTestRunner.runTestsPerModule(BWTestRunner.java:114)

Describe the results you expected:

To execute the tests

Additional information you deem important (e.g. issue happens only occasionally):

It seems is it not able to get the file, it seems the expression object is not well retrieved by the TestFileParser I've tried with different paths (absolute, relative, with the doc () without it, with file:/// with a simple file:// all the situations fails with the same issue.

Regards,

@alexandrev
Copy link
Author

TestTransformXML.zip
Code to reproduce the issue

@alexandrev
Copy link
Author

logs.txt

@vpawar-tibco
Copy link
Collaborator

vpawar-tibco commented Jul 13, 2020

@alexandrev Please change testFilePath mapping for mapper activity in mapperError.bwp to -

doc('file:///C:/datos/workspace_bwce_2.5.3/HelloWorldDocker/HelloWorldDocker.module/Schemas/persona.xml')

Use single quote instead of double quotes. We will add better error message in the next plugin release.

You will also need to fix mock ouput xml files. Please refer - https://github.com/TIBCOSoftware/bw6-plugin-maven/wiki/Steps-To-Add-MockOutput

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

2 participants