Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

setProjectProperty not working in SoapUITestCaseRunner

 
Eshwin Sukhdeve
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have written one java code where I am have the xml file
myrunner.setProjectFile("C:/xxxxxx.xml");
prop[0]="key1=newvalue1";
prop[1]="key2=newvalue2";
myrunner.setProjectProperties(prop);
myrunner.setTestSuite("pro_inttilazaion");
myrunner.setTestCase("TestCase");
myrunner.run();
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");
log.info testenv

when I run the java code ..it 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






 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic