开发者

Load or Stress Testing Tool with URL Import Functionality

Can someone recommend a load testing tool which allows you to either:

a. replay an IIS (7) log(s) to simulate a real live site daily run;

b. import a CSV or equivalent list of URLS so we can achieve a similar 开发者_开发问答thing as above but at a URL level;

c. .net API so I can create simple tests easily from my list of URLS is also a good way to go.

I do not really want to record my tests.

I think I can do B) with WAPT but need to create an XML file manually, not too much grief, but wondering if any tools cover these scenarios out the box.


Visual Studio Test Edition would require some code to parse the file into a suitable test run.

It is a great load testing solution.


Our load testing service lets you write a very simple script using JavaScript to pull data out of a CSV file and then fetch those URLs. For example, the following code would pluck 10 random URLs from the CSV file and fetch them as part of a single session:

var c = browserMob.openHttpClient();
var csv = browserMob.getCSV("urls.csv");

browserMob.beginTransaction();

for (var i = 0; i < 10; i++) {
    browserMob.beginStep("Step 1");
    var url = csv.random().get("url");
    c.get(url);
    browserMob.endStep();
}

browserMob.endTransaction();

The CSV file itself needs to be a normal CSV file with the first row containing a header named "url". This script would be run repeatedly for each virtual user participating in a load test.


We have support for so called 'uri-format' in our open-source tool called Yandex.Tank You simply put all your uris to a file, one uri -- one line, then specify headers in your load.ini like this:

[phantom]
address=example.org
rps_schedule=line(1, 1600, 2m)
headers = [Host: mts-maps.yandex.ru]
  [Connection: close] [Bloody: yes]
ammo_file = ammo.uri

ammo.uri:

/
/index.html
/1/example.html
/2/example.html
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜