web-services - SoapUI负载测试,计算方差策略中的cnt

标签 web-services soapui load-testing

我从事 SoapUI 项目,我有一个问题。在下面的示例中,我在 5 秒内收到了 505 个请求,线程数 = 5。我想了解此示例中的计数是如何计算的。

enter image description here

例如,如果我想在 1 分钟内处理 1000 个请求,我应该在差异策略中设置什么设置?

问候,叶夫根尼

最佳答案

方差策略顾名思义,它会随着时间的推移改变线程数量。在指定的时间间隔内,线程将根据方差值增加和减少,从而模拟目标 Web 服务上真实的实时负载。

如何计算方差:它不是使用数学方差公式计算的。它只是一个乘法。 (如果线程 = 10 且方差 = 0.5,则 10 * 0.5 = 5。线程将增加和减少 5)

例如:

Threads = 20
variance = 0.8
Strategy = variance
interval = 60
limit = 60 seconds

上面的代码会将线程改变 16(因为 20 * 0.8 = 16),即线程数将在 60 秒内增加到 36 个并减少到 4 个,最后以原来的 20 个结束。

如果您的要求是从 500 个线程开始并达到 1000 个,请将方差设置为 2,依此类推。

引用链接:

chek the third bullet - simulating different type of load - soapUI site

引用书籍:

Web Service Testing with SoapUi by Charitha kankanamge

关于web-services - SoapUI负载测试,计算方差策略中的cnt,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14399563/

相关文章:

c++ - 使用流式传输的 gsoap restful c++ 客户端

refactoring - 如何在soapUI中重命名服务

testing - 使用 SoapUI/Groovy 从 "Run Test Step"检索响应?

concurrency - 如何在 Jmeter 中生成并发用户负载

mysql - Dropwizard @UnitOfWork : Large number of SET autocommit=1/0; commit calls where there is no transaction to run

java - jUnit 问题 - Restful Web 服务的集成测试

web-services - 微服务架构 : Cross Service data sharing

java - JAX-WS 服务实现类名称自定义不起作用

java - 在soapui java API中加载外部请求文件

testing - VSTS 测试代理和 Controller 2012 兼容性