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

NullPointerException when running from command line #487

Closed
bpross-52n opened this issue Dec 17, 2021 · 0 comments · Fixed by #490
Closed

NullPointerException when running from command line #487

bpross-52n opened this issue Dec 17, 2021 · 0 comments · Fixed by #490
Assignees
Projects
Milestone

Comments

@bpross-52n
Copy link
Contributor

Describe the bug
When running test suites (e.g. ets-wfs02) from the command line and adding <entry key="acceptMediaType">application/zip</entry> to the test-run-props.xml to generate HTML reports, a NullPointerException happens in the HTMLReporter class. This happens because it is tried to copy resources from a jar file to the file system, see here.

To Reproduce
Steps to reproduce the behavior:

  1. Run a test suite (e.g. ets-wfs02) from the command line, add <entry key="acceptMediaType">application/zip</entry> to the test-run-props.xml
  2. HTML reports are generated, but not zipped, a NullPointerException happens

Expected behavior
HTML reports are generated and zipped, no exception happens.

Additional context
See also this issue. The HTML generation works when running the test suite from within a servlet container, as the resources folder exists physically in the TEAM Engine webapp folder.

@dstenger dstenger added this to To do in CITE via automation Dec 17, 2021
@dstenger dstenger moved this from To do to In progress in CITE Jan 20, 2022
@dstenger dstenger moved this from In progress to To verify in CITE Jan 26, 2022
@dstenger dstenger assigned dstenger and unassigned bpross-52n Jan 26, 2022
@dstenger dstenger added this to the 5.5 milestone Feb 10, 2022
CITE automation moved this from To verify to Done Feb 17, 2022
dstenger added a commit that referenced this issue Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
CITE
  
Done
Development

Successfully merging a pull request may close this issue.

2 participants