понеділок, 16 січня 2012 р.

use runtime data in soapUI


If you are using SoapUI for web-service testing, you can want to set up some data in the request in runtime (for example, for testing purposes).
The easiet way to set up date time in runtime is:
Time_is_${=new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm").format(java.util.Calendar.getInstance().getTime())}

Also, you can get values from system setings or from special property file:
${System.getProperty("some.property")}