Forum Discussion
omatzura
16 years agoSuper Contributor
Hi!
Since it seems you are using soapUI Pro I suggest you use the new DataGen teststep; add it to your testcase and add a script-property to it with the following configuration;
Set the read-type of the property to "Read" and refer to this property from where you need to use it with property-expansion; ${nameOfDataGenTestStep#nameOfProperty}, for example
${DataGen#nextDate}
if the name of the property is nextDate and the name of the DataGen teststep is DataGen
Hope this helps!
regards!
/Ole
eviware.com
Since it seems you are using soapUI Pro I suggest you use the new DataGen teststep; add it to your testcase and add a script-property to it with the following configuration;
def ldf = new java.text.SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ")
Calendar c1 = Calendar.getInstance();
c1.add(Calendar.DAY,15);
return ldf.format( c1.time )
Set the read-type of the property to "Read" and refer to this property from where you need to use it with property-expansion; ${nameOfDataGenTestStep#nameOfProperty}, for example
if the name of the property is nextDate and the name of the DataGen teststep is DataGen
Hope this helps!
regards!
/Ole
eviware.com
Related Content
Recent Discussions
- 2 days agoemoya
- 2 days agoMyBalanceNow