Replies: 1 comment 2 replies
-
By the way, this library also supports using default values
And also has support for nested variables:
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey @oleksandr0001
Currently, there are 4 types of variables supported by GingerSpec
I believe that this could bring confusion to QAs, because sometimes is not clear when to use one or the other. I believe this could all be simplified by using StringSubstitutor and make ALL variables use the ${} placeholder
${} and !{} would be pretty straightforward, I just have to indicate StringSubstitutor to use all System and Thread variables for the string substitution
For #{}, StringSubstitutor has already a function to read variables from properties files, like this
${properties:src/test/resources/document.properties::mykey}
For @{}, StringSubstitutor can also perform similar operations, and many more:
I'm thinking about implementing this code but leaving the rest of the operators still working and show a warning when the user runs the test and a !{}, @{} or #{} variable is used, asking them to comply with the new format.
Beta Was this translation helpful? Give feedback.
All reactions