Deepesh,
I will elaborate it more. Pls go thrgh the below content,
This is my program-
/*To Access Properties of a Test case and update it from i/o file*/
def proj = testRunner.testCase.testSuite.project;
def tsuite = testRunner.testCase.testSuite;
def tcase = testRunner.testCase;
//Reading from File
myFile = new File("C:\\Documents and Settings\\ABCDEFG\\Desktop\\soapUI\\params.txt")
for (def j=0; j<myFile.readLines().size(); j++)
{
line1= myFile.readLines().get(0)
line2= myFile.readLines().get(1)
for (def i=0; i<2; i++)
{
def Pnme = tcase.getTestStepByName("Properties1").getPropertyAt(i).getName();
def Pvalue= tcase.getTestStepByName("Properties1").getPropertyAt(i).getValue();
}
//Update properties
tcase.getTestStepByName("Properties1").setPropertyValue("Value1",line1)
tcase.getTestStepByName("Properties1").setPropertyValue("Value2",line2)
}
What i need to do is, Need to Dynamically use Value1/Value2 [in Bold letters] and change it value in Pname field and update the parameter's?
^Thanks