lszp
9 years agoNew Contributor
Reload properties from externalfile automatically
Hello all, I'm doing some functionnal test using SoapUi. For some tests I need some properties which change dynamically. In order to update them on each test, a small program write an external pr...
- 9 years ago
You should be able to load the properties from file using groovy script.
Below script will load the properties at test case level.
def props = new Properties() //replace the path with your file name below new File("/absolute/path/of/test.properties").withInputStream { s -> props.load(s) } props.each { context.testCase.setPropertyValue(it.key, it.value) }