RedHatQE / polarize

GNU General Public License v3.0
2 stars 2 forks source link

The Configurator utility crashes with NPE if using --testcase-prefix or --testcase-suffix #36

Closed rarebreed closed 7 years ago

rarebreed commented 7 years ago

If you try to use this option like so:

java -cp ${POLARIZE_JAR} com.github.redhatqe.polarize.configuration.Configurator /tmp/xml-config.xml --project RHEL6 --template-id "Sean Toner Test Template" --testrun-title "RHSM Polarize Test" --xunit-selector-name rhsm_qe --xunit-selector-val polarize  --testcase-importer-enabled false  --property plannedin="RHEL_7_4 Planning" --property arch=x8664 --new-xunit /tmp/mod-testng-polarion.xml --current-xunit /tmp/testng-polarion.xml --base-dir /home/stoner/Projects/testpolarize --property notes="just a test" --edit-config true --testcase-prefix "No TC : " --testcase-suffix "Server blach"

It will throw a null pointer exception. This is because the code is looking for prefix and suffix in the "xunit" importer type instead of the "testcase" importer.

rarebreed commented 7 years ago

fixed in 2852153