cancel
Showing results for 
Search instead for 
Did you mean: 

get property value from soapui groovy script to java

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
Community Manager

Re: get property value from soapui groovy script to java

Hi @kamatchipriya16,

 

You can call:

getPropertyValue("report")

Please read the Working with Properties article for more information.

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
Community Hero

Re: get property value from soapui groovy script to java

@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.
New Here?
Join us and watch the welcome video:
Top Kudoed Authors