Ask a Question

get property value from soapui groovy script to java

kamatchipriya16
Occasional Contributor

get property value from soapui groovy script to java

Hi..

I have created groovy script in soapui project and it is integrated with maven. 

In the script i used setPropertyValue like below..

testRunner.testCase.testSuite.project.setPropertyValue("report", "localhost:8080");

 

Now, i want to get the property from groovy script to java class..How can i get this property in java class.. 

 

Kindly help me ASAP.

2 REPLIES 2
TanyaYatskovska
SmartBear Alumni (Retired)

Hi @kamatchipriya16,

 

You can call:

getPropertyValue("report")

Please read the Working with Properties article for more information.

---------
Tanya Yatskovskaya
SmartBear Community and Education Manager



nmrao
Community Hero

@kamatchipriya16,

Well, it would save time if you can show the script you have, how the java class is defined and how it is used (not sure though why java is used again) it in groovy script


Or at least provide your use case.



Regards,
Rao.
cancel
Showing results for 
Search instead for 
Did you mean: