Forum Discussion
nmrao
11 years agoChampion Level 3
If you have multiple properties, you can save them into file and load them when you need. Having a file for properties really helps at times, say, different environments may use different values, so user can modify those values and load it.
If you want to load the properties automatically? Then you can write a reading properties files and setting values to properties using SetupScript for the project and pass the filename using a jvm argument say -Dsoapui.properties=<file path of property file>, Use System.getProperty('soapui.properties') in the SetupScript.
You call soapui.sh -Dsoapui.properties=<file path of property file> or testrunner.sh -Dsoapui.properties=<file path of property file> to load the properties automatically.
Am I off track from the question?
If you want to load the properties automatically? Then you can write a reading properties files and setting values to properties using SetupScript for the project and pass the filename using a jvm argument say -Dsoapui.properties=<file path of property file>, Use System.getProperty('soapui.properties') in the SetupScript.
You call soapui.sh -Dsoapui.properties=<file path of property file> or testrunner.sh -Dsoapui.properties=<file path of property file> to load the properties automatically.
Am I off track from the question?