Skip to content

Invalid syntax error message #120

@HolQue

Description

@HolQue

Previously the test case JPP_0202-(PARAMETER_SUBSTITUTION)-[GOODCASE] caused the following error message:

'Could not set variable 'list_variant_numbersVAR-${variant_str([0]}_MS-${milestone_'2')}_param' with value 'value'!'

Based on:

https://github.com/test-fullautomation/python-jsonpreprocessor/blob/develop/test/testfiles/jpp-test_config_0202.jsonp

With latest JsonPreprocessor code changes the error message changed to:

'Could not set variable 'list_variant_numbersVAR-${variant_str([0]}_MS-${milestone_'2')}_param' with value 'value'! Reason: invalid syntax (<string>, line 1)'

I wonder about this extension: Reason: invalid syntax (<string>, line 1)

Why this? This is not helpful. What is wrong with the syntax? Out of this error message no user will be able to get useful guidance about how to solve the problem.

This test case has no syntax issue. And there is nothing wrong with variables.

The error is that the JsonPreprocessor still is not able to resolve dollar operator expressions within strings correctly.

The resolved variable name is expected to be: VAR-VARIANT-1_MS-milestone_2_param.

Metadata

Metadata

Assignees

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions