Web Service Load Test Strategies

本文档介绍了多种执行Web服务负载测试的方法,并详细说明了不同类型的负载测试目标。选择合适的测试用例至关重要,需要覆盖所有必需的字段/节点,确保能够进行有效性和功能性验证。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Overview
This document provides information on various ways to perform web service load test. Also, provides information on each type of load test goals.

Test Case Selection
In order to perform a good load test, selecting test case(s) is critical. Test case selection should include a combination of sanity and functional tests of web service request. Each selected test cases must verify all required fields/nodes in the web service response.

  • Sanity test case tests whether a web service request is returning valid response based on requirements or not.
  • Functional test case tests whether combination web service request returns desired response or not.

NOTE: In web service load test strategy, it is not necessary to have many different test case scenarios but it is necessary to have test case that covers most required fields/nodes

Strategies
Here are few web service load test strategy reference. These strategies focuses on web service behavior based load test.

  • Simple: Ramp up number of threads to apply load or run longer for soak test.

  • Fixed Rate: Simple strategy with TPS (Transactions Per Second) configured. It does not matter how long a web service request takes, next transaction request will automatically start based on configured TPS.

  • Variable Load: This comprises of following strategies
    1> Variance: Vary the number of thread web service request over load test runtime.
    2> Burst: This takes variance to its extreme. Apply large number of thread simultaneous web service request for certain period of time continuously and stop for few milliseconds and apply again.
    3> Thread: This linearly changes the number of thread simultaneous web service request from one level to another over the run of load test.
    4> Grid: This is advance version of Burst Strategy. Configure number of simultaneous web service request continuously over time without any stop.

Goals
Before designing web service load test, we must ask ourselves what do we want to achieve via web service load test. Here are some goals that web service load test can provide

  • Determine web service baseline performance metrics. Choose Simple strategy.
  • Determine how physical server (where web service is running) recovers from serving web service in between load. Choose Burst or Grid strategy.
  • Determine how web service handles and recovers when request congestion occurs. Choose Fixed Rate strategy.
  • Determine at which level certain statistics change or events occur. Choose Thread strategy.
  • Determine web service stress level. Choose Burst or Grid strategy.

Details From SoapUI Site:
Load Test Concepts: http://www.soapui.org/Load-Testing/concept.html
Simulating Load Strategies using SoapUI Tool: http://www.soapui.org/Load-Testing/simulating-different-types-of-load.html
SoapUI Load Test Execution & Calculations: http://www.soapui.org/Load-Testing/loadtest-execution.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值