In my jmeter response i have javascript and json as a mix response from that i have to fetch a JSON array which is
items
Here is part of a huge response which i am getting
DE.APP.task.TaskGrid.getAssignmentData = function () {
return {"items":[]};
};
DE.APP.task.TaskGrid.getResourceData = function () {
return {"items":[{"STANDARDRATEFORMAT":"0.00","ASSIGNED_HRS":0,"RESOURCE_NAME":"#Buddhika ","COST":"0.00","PERCENTASSIGNED":"100.00","EMAIL":"Buddhika75@mspblank.com","AVAILABLEFROM":"10-May-2011","ALLOCATED_HRS":"1872.00","RESOURCE_ID":36197221,"AVAILABLETO":"31-Mar-2012","calendar":{"exceptions":{},"weekDayHours"
In this response i have to fetch the json array which is in getResourceData() and not any other items. How can we do this with beanshell assrtion?