Forum Discussion
ABCDEFG
14 years agoContributor
Thank you Rohit for the Groovy code.
instead of static date, we have to use dynamic date's in the DataSource. I have developed following code for this,
def dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD");
IntPayD=dt.replaceAll('/', '-'); // Where DataSource is the data source name and "IntPayD" is the date field in the Data Source.
But its not working, Needs to change all the date format's in the field of "IntPayD" of DataSource.
Could please help
^Thanks
instead of static date, we have to use dynamic date's in the DataSource. I have developed following code for this,
def dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD");
IntPayD=dt.replaceAll('/', '-'); // Where DataSource is the data source name and "IntPayD" is the date field in the Data Source.
But its not working, Needs to change all the date format's in the field of "IntPayD" of DataSource.
Could please help
^Thanks