timmer
13 years agoNew Contributor
how to set project propertyValue in RequestFilter Event?
I am trying to set a project level property from inside a RequestFilter.afterRequest Event,
but I don't know how to get to project from either context or request.
Thanks
but I don't know how to get to project from either context or request.
// I can do this to expand the property, but I don't know how to set it
def trackingId = context.expand('${#Project#TrackingID}')
// I'd like to do something like
xyz.project.setPropertyValue('TrackingID', someValue)
// from a test i can do something like the following
def trackingId = testRunner.testCase.testSuite.project.getPropertyValue('TrackingId')
Thanks