Forum Discussion
SmartBear_Suppo
15 years agoSmartBear Alumni (Retired)
Hi,
The error you're getting points to a problem with the NTT_id_header variable, not with the property expansion. There shouldn't be a problem with the scope, since the filter is running after a request, which does belong to a TestSuite. I have verified this myself by setting a TestSuite Property var = hello and adding the following Event handler:
RequestFilter.filterRequest
When running the Test (by running the Request itself, the TestCase, TestSuite or even the whole Project) "hello" is being logged once for each request that is run. You may want to try just logging the result of the Property Expansion to the log to verify that it is being expanded as it should with:
Hope this helps!
Regards,
Dain
eviware.com
The error you're getting points to a problem with the NTT_id_header variable, not with the property expansion. There shouldn't be a problem with the scope, since the filter is running after a request, which does belong to a TestSuite. I have verified this myself by setting a TestSuite Property var = hello and adding the following Event handler:
RequestFilter.filterRequest
log.info context.expand('${#TestSuite#var}')
When running the Test (by running the Request itself, the TestCase, TestSuite or even the whole Project) "hello" is being logged once for each request that is run. You may want to try just logging the result of the Property Expansion to the log to verify that it is being expanded as it should with:
log.info context.expand('${#TestSuite#subscriber.NTT}')
Hope this helps!
Regards,
Dain
eviware.com
Related Content
- 5 years agoComputingFroggy
- 13 years agogordillo_ramon
Recent Discussions
- 4 days agominhng