Forum Discussion
omatzura
17 years agoSuper Contributor
Hi Dezzz,
sure, to set a property all you need to do is call the corresponding setPropertyValue, ie
testCase.setPropertyValue( name, value )
or
project.setPropertyValue( name, value )
if the property doesn't exist, it will be created first. Depending on from where you are doing this, access to the object model differs. For example from inside Groovy Script TestStep, you would do
testRunner.testCase.testSuite.project
to get the project. Let me know your specific context and I'll help you forward!
Also, you can set global properties with
com.eviware.soapui.SoapUI.globalProperties.setPropertyValue( name, value )
(since 2.5 version)
Hope this helps!
regards,
/Ole
eviware.com
sure, to set a property all you need to do is call the corresponding setPropertyValue, ie
testCase.setPropertyValue( name, value )
or
project.setPropertyValue( name, value )
if the property doesn't exist, it will be created first. Depending on from where you are doing this, access to the object model differs. For example from inside Groovy Script TestStep, you would do
testRunner.testCase.testSuite.project
to get the project. Let me know your specific context and I'll help you forward!
Also, you can set global properties with
com.eviware.soapui.SoapUI.globalProperties.setPropertyValue( name, value )
(since 2.5 version)
Hope this helps!
regards,
/Ole
eviware.com