This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Groovy and the fly likes setProjectProperty not working in SoapUITestCaseRunner Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "setProjectProperty not working in SoapUITestCaseRunner" Watch "setProjectProperty not working in SoapUITestCaseRunner" New topic

setProjectProperty not working in SoapUITestCaseRunner

Eshwin Sukhdeve
Ranch Hand

Joined: Mar 15, 2012
Posts: 80
I have written one java code where I am have the xml file
here I am trying to set the prop using setProjectPropert method

but after running this code it is not updating the string value(prop).
it is showing me the old property value.becase it is getting the old value
from script "TestCase" in soapui.
testenv=testRunner.testCase.testSuite.project.getPropertyValue("key1"); testenv

when I run the java code calles this line too.but when the above line of
code executed I am getting the old values(from properties file)..instead of getting "newvalue1"
which I have set from java code.please tell me how to update the property from external java file

Thanks in advance

It is sorta covered in the JavaRanch Style Guide.
subject: setProjectProperty not working in SoapUITestCaseRunner
Similar Threads
UnitTest in Spring
class not found exception
Need help on JNDI DataSource in JBOSS?
Question about clone a Hashtable
Migrating from Spring 2.0 and Hibernate 3.0 to Spring 3.1 and Hibernate 4.1