Forum Discussion
Brian_Mowbray
16 years agoContributor
If I understand, the method you propose would find the property if you know where it is (i.e. it is in the scope of the test case) where this method traverses several locations (context.getProperty, then testCase.getPropertyValue, then test suite, then project). Unless I am mistaken, there is not an existing soapui method that does this, right?
delegate.getProperty(propertyName) ?:
delegate.testCase.getPropertyValue(propertyName) ?:
delegate.testCase.testSuite.getPropertyValue(propertyName) ?:
delegate.testCase.testSuite.project.getPropertyValue(propertyName)
(the other thing that I didn't mention on this post is that this was a simplified version of the true use of it - there really is a desire to find properties at various levels to allow for optional override of values)
delegate.getProperty(propertyName) ?:
delegate.testCase.getPropertyValue(propertyName) ?:
delegate.testCase.testSuite.getPropertyValue(propertyName) ?:
delegate.testCase.testSuite.project.getPropertyValue(propertyName)
(the other thing that I didn't mention on this post is that this was a simplified version of the true use of it - there really is a desire to find properties at various levels to allow for optional override of values)