# Migration to vREST NG v2.3.0
In this guide, we will see the migration of test data which you need to perform on your vREST NG project data during working upon vREST NG v2.3.0.
In vREST NG v2.3.0, we have removed the first two arguments (res
, opts
) to utility methods when we use the utility methods in Variables
> Extract variables from response
section.
Before the migration, your utility method looks like as below:
(function(){
var aFunction = function(res, opts, userDefinedParam1, userDefinedParam2){
let obj = JSON.parse(res);
let headers = opts.headers;
//TODO: implement me ...
return 'something';
};
return aFunction;
})();
In the above method, arguments res
, opts
are automatically sent by vREST NG application when you invoke this method from Variables
> Extract variables from response
section.
As these special arguments res
and opts
are creating confusion for new vREST NG users. So in vREST NG v2.3.0, we are now not passing these two arguments and you will need to remove the first two arguments from your older utility methods that you are invoking from Variables section and now your above method will look like as below:
(function(){
var aFunction = function(userDefinedParam1, userDefinedParam2){
let res = this.execution.response.content;
let obj = JSON.parse(res);
let headers = this.execution.response.headers;
//TODO: implement me ...
return 'something';
};
return aFunction;
})();
In the utility method, you may access the response content and headers by using this.execution.response
. For more information on what other data you may access using this
keyword, please read our guide on Context Parameters.