loadtest
Advanced tools
Comparing version 5.0.2 to 5.0.3
@@ -143,7 +143,7 @@ 'use strict'; | ||
if (this.options.indexParam) { | ||
this.options.url = url.replaceAll(this.options.indexParam, index); | ||
this.options.url = url.replace(new RegExp(this.options.indexParam, 'g'), index); | ||
if(this.options.body) { | ||
let strBody = JSON.stringify(this.options.body); | ||
strBody = strBody.replaceAll(this.options.indexParam, index); | ||
strBody = strBody.replace(new RegExp(this.options.indexParam, 'g'), index); | ||
this.options.body = JSON.parse(strBody); | ||
@@ -150,0 +150,0 @@ } |
@@ -133,3 +133,3 @@ 'use strict'; | ||
let message; | ||
let message={some:"message"}; | ||
@@ -136,0 +136,0 @@ if (this.generateMessage) { |
{ | ||
"name": "loadtest", | ||
"version": "5.0.2", | ||
"version": "5.0.3", | ||
"description": "Run load tests for your web application. Mostly ab-compatible interface, with an option to force requests per second. Includes an API for automated load testing.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/alexfernandez/loadtest", |
90580