Forum Discussion
rohitgkk
13 years agoContributor
Hi,
I hope that dt is array and if so then use the following code:
def dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD");
for(int i=0;i<dt.size();i++){
dt=dt.replaceAll('/', '-');
}
Then the variable dt will contain the array of new values
// Here you need to set back dt to JSON
I hope that dt is array and if so then use the following code:
def dt = testRunner.testCase.getTestStepByName("DataSource").getPropertyByNames("IntPayD");
for(int i=0;i<dt.size();i++){
dt=dt.replaceAll('/', '-');
}
Then the variable dt will contain the array of new values
// Here you need to set back dt to JSON
Related Content
Recent Discussions
- 6 days agoemoya