Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function JsonFile(path) {
this.path = path;
}
JsonFile.prototype = new loadrunner.Dependency;
JsonFile.prototype.start = function() {
var me = this;
$.get(this.path, function(data) {
me.complete(data);
}, 'json');
};
using.matchers['\\.json$'] = function(path) {
return new JsonFile(path);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.