MicroFocus / octane-collection-tool

The Test Result Collection Tool is a command line tool for pushing test result XML files to the ALM Octane test result API.
https://www.microfocus.com/en-us/products/alm-octane/overview
Other
2 stars 8 forks source link

Command line does not support - (hyphen) in --tags #20

Open MarcSierszen opened 2 years ago

MarcSierszen commented 2 years ago

In my company we need to upload via this tool. In our "Environment" is a - (hyphen). This is not allowed by the CliParser pattern.

java -jar test-result-collection-tool.jar -c octane-config.properties -t "Environment:TEST-A" unittestsresult.xml Tag and field tag arguments must be in TYPE:VALUE format: Environment:TEST-A

I already fixed it. Similar to the older issue/request with the whitespace. I would provide a feature branch and a pull request if you like.

Cheers Marc

KLBonn commented 2 years ago

Similar issue here, only with slashes (/)inside field values. E.g. we have a list entry Java/Gradle in Octane list "Testing_Tool_Type".

In case your edit refers to CliParser.java#L417, and if a PR is accepted, could you also add \\/ to the regex character class?