Forum Discussion
Mason
15 years agoFrequent Contributor
eviware support wrote:
Hi!
I'm sorry, I though you wanted the actual property-expansion to be in the header.. have you tried
NTT_id_header.setRequestHeader("NTT_id", context.expand( '${#TestSuite#subscriber.NTT}') );
?
regards,
/Ole
eviware.com
As I suspected, this didn't work. I get the following error:
Mon Sep 28 11:34:32 EDT 2009:ERROR:groovy.lang.MissingPropertyException: No such property: NTT_id_header for class: Script4
The reason, again, we suspect is the scope is wrong. Event handlers run at the CONTEXT level, the variable/property we are trying to expand is at the TestSuite level. Is there anyway to get a TestSuite property to expand in the CONTEXT level. Is there a way to run the Event handlers at the TestSuite level?
Related Content
- 5 years agoComputingFroggy
- 13 years agogordillo_ramon