Forum Discussion
Hi,
Thanks for the edit to your question, but I think my answer is still just as relavent? Alhough the first option I suggested is probably overkill, how about just doing a Script Assertion as per my second suggestion?
Or perhaps I am missing something, but say you have TestSteps like:
1. Goovy TestStep with
context["argument"]="abcdef" //set initial value of your parameter
2. REST Request TestStep
In your Contains Assertion you can use ${=argument.toUpperCase()} to look for ABCDEF?
Also in your Contains Assertion, its less exact, but you could even tick 'ignore case' e.g.
Is this on the right track for what you want?
Cheers,
Rupert
Bingo!
Using $[=context.argument.toUpperCase()] instead of $[argument] did the trick.
(again using square brackets instead of curly braces, since this fine Forum-SW does not allow to embed braces...).
Thanks a lot!
- rupert_anderson10 years agoValued Contributor
OK, cool - thanks for sharing the answer and completing the post :-)