Forum Discussion
Taylor_Pack
15 years agoOccasional Contributor
Well, I am not quite there. I have access to the datasource but now when I try to set the property it tells me it is read only. How do I reset the value?
Here is the code I am using.
def remitCSV = testRunner.testCase.testSteps['remittanceCSV'];
def date = remitCSV.getProperty("Remittance Date").getValue()
java.text.SimpleDateFormat dateNew = new java.text.SimpleDateFormat("MM/dd/yyyy");
date = dateNew.parse(date)
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd");
date = sdf.format(date)
remitCSV.setPropertyValue("Remittance Date", date)
Here is the code I am using.
def remitCSV = testRunner.testCase.testSteps['remittanceCSV'];
def date = remitCSV.getProperty("Remittance Date").getValue()
java.text.SimpleDateFormat dateNew = new java.text.SimpleDateFormat("MM/dd/yyyy");
date = dateNew.parse(date)
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("yyyy-MM-dd");
date = sdf.format(date)
remitCSV.setPropertyValue("Remittance Date", date)