Lavalyte
9 years agoOccasional Contributor
SoapUI properties and a deployed mock war
If I set project level custom properties, are they included in the deployed war somewhere and available to be referenced in the scripts?
- 9 years ago
Hi,
The SoapUI project.xml that stores the properties is included inside the war (in WEB-INF/soapui) and soapui starts up when you make a request to the mock, so you should be able to access most features as you would via the ui.
In a mock startup script you can get hold of the project object and its properties via the mockRunner variable e.g.
log.info mockRunner.mockService.project.getPropertyValue("testprop")
Regards,
Rupert