指定Web Polygraph加载工具的运行时间

时间:2019-04-29 15:26:09

标签: automation load-testing web-testing

我使用Web Polygraph负载测试工具来发出快速的http请求,因为它可靠,资源消耗低并且报告良好。但是,我找不到任何设置可以告诉Web Polygraph运行一定时间。我希望能够获得准确的报告,而不是向进程发送终止信号而导致潜在的遗漏。

我已经阅读了Web测谎仪的帮助页面,可以看到每秒的请求是可配置的,但是看不到请求持续时间的支持。

我有这样的配置文件(我认为这是选项所在的位置,很可能是在Robot配置中):

Content SimpleContent = {
    size = exp(1KB); // response sizes distributed exponentially
    cachable = 100%;
};

Server S1 = {
    kind = "S101"; 
    contents = [ SimpleContent ];
    direct_access = contents;

    addresses = ['X.X.X.X' ];
};

// a primitive robot
Robot R1 = {
    kind = "R101";
        req_rate = 100/sec;
        interests = [ "foreign" ];
        foreign_trace = "/home/x/trace.urls";
    pop_model = { pop_distr = popUnif(); };
    recurrence = 100% / SimpleContent.cachable; 

    origins = S1.addresses;
    addresses = ['X.X.X.X' ];
};

我希望能够设置一些持续时间,例如40分钟,在那里我可以让R1机械手每秒请求100页,持续40分钟。

1 个答案:

答案 0 :(得分:0)

我从Web Polygraph支持部门获得了答案。供以后参考,可以通过“阶段”和“目标”对象以及对其使用“计划”功能来完成。这是我收到的电子邮件的片段:

See the goal field inside the Phase object:

http://www.web-polygraph.org/docs/reference/pgl/types.html#type:docs/reference/pgl/types/Goal

http://www.web-polygraph.org/docs/reference/pgl/types.html#type:docs/reference/pgl/types/Phase

Do not forget to schedule() your phases:
http://www.web-polygraph.org/docs/reference/pgl/calls.html


Many workloads that are distributed with Polygraph include Phase
schedules. To see examples, search for "goal" in workloads/