Forum Discussion
ABCDEFG
14 years agoContributor
Thanks Rohit for the update.
error message is throwing, please find the attached.
Things is, we need to loop the number of times of { Size of(IntPayD) }.
def dt; //Date Definition
def i;
for(i=0;i<IntPayD.size();i++)
{
dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD"); //Accessing PayoutDate At ithe position
dt=dt.replaceAll('/', '-'); //Change the Date Format
testRunner.testCase.getTestStepByName("DataSource").setPropertyValue("dt",IntPayD); //Updating the new date format in the ith Position
}
But this is not working, Could you please help.
wht do u think? To define IntPayD array?
Appreciate your help in advance,
^Best regards
error message is throwing, please find the attached.
Things is, we need to loop the number of times of { Size of(IntPayD) }.
def dt; //Date Definition
def i;
for(i=0;i<IntPayD.size();i++)
{
dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD"); //Accessing PayoutDate At ithe position
dt=dt.replaceAll('/', '-'); //Change the Date Format
testRunner.testCase.getTestStepByName("DataSource").setPropertyValue("dt",IntPayD); //Updating the new date format in the ith Position
}
But this is not working, Could you please help.
wht do u think? To define IntPayD array?
Appreciate your help in advance,
^Best regards