I've a variable foobar
defined with the value my_value
. When the sequence ${foobar}
appears within a test component, it is converted into my_value
. How can we stop this conversion?
Some examples that do not work:
${foobar}
(output ismy_value
)\${foobar}
(output is input)\\${foobar}
(output is\my_value
)\\\${foobar}
(output is input)$\{foobar}
(output is input)\$\{foobar}
(output is input)\\$\{foobar}
(output is input)\\\$\{foobar}
(output is input)$\\{foobar}
(output is input)\$\\{foobar}
(output is input)\\$\\{foobar}
(output is input)\\\$\\{foobar}
(output is input)$\\\{foobar}
(output is input)\$\\\{foobar}
(output is input)\\$\\\{foobar}
(output is input)\\\$\\\{foobar}
(output is input)\$\{foobar\}
(output is input)
None of the inputs above produces the output ${foobar}
. How can we escape the sequence ${foobar}
to avoid it being converted into my_value
?
(Note: I know that using BSF string works, e.g. ${__javaScript("\$foobar")}
but that's an extremely hacky (and messy) fix.)
${foobar} = my_value
. I need to be able to produce this output. The closest non-BSF solution I can arrive at is the input\${foobar} = ${foobar}
. But it produces the output\${foobar} = my_value
instead of the desired output${foobar} = my_value
.