简体   繁体   English

运行 1k 用户进行压力测试的最佳实践

[英]Best Practice to run 1k user for stress testing

Scenario: I wanted to login, get cookies and use that cookies as auth for other api GET request for 10k user.场景:我想登录,获取 cookies 并将 cookies 用作其他 api GET 请求的 10k 用户的身份验证。 I an using Ultimate thread group with following rows Start Thread Count: 1000 Initial Delay sec: 0 Startup Time: 1000 Hold Load for: 300 Shutdown:0我使用具有以下行的 Ultimate 线程组 Start Thread Count: 1000 Initial Delay sec: 0 Startup Time: 1000 Hold Load for: 300 Shutdown:0

Does it make any difference on sever If I used single user login or I need to need to use 1k login details?如果我使用单用户登录或者我需要使用 1k 登录详细信息,它对服务器有什么影响吗? , In that case as cookies are stored under browser local storage, so I am using web driver sampler to get that, so for 1k how will it be possible. ,在那种情况下,因为 cookies 存储在浏览器本地存储下,所以我使用 web 驱动程序采样器来获取它,所以对于 1k 来说,这怎么可能。

Similarly said by client to do for 10K 20k and so on.同样被客户说做10K 20k等等。

As I am new, figuring out what is best possible way to get this done, am I on correct direction, kindly mentor me out.由于我是新手,正在弄清楚完成这项工作的最佳方法是什么,我的方向是否正确,请指导我。

Thanks谢谢

  1. Does it make any difference on sever If I used single user login or I need to need to use 1k login details? we don't know, it depends on the particular server implementation.我们不知道,这取决于特定的服务器实现。 From the black-box testing perspective I would go for "realistic" approach and use different credentials/cookies for different users黑盒测试的角度来看,我将 go 用于“现实”方法,并为不同的用户使用不同的凭据/cookie
  2. In that case as cookies are stored under browser local storage, so I am using web driver sampler to get that If after login you get the Cookie which can be used for authentication/authorization in an API request there is no need to use Selenium, with JMeter you can get the cookie value from the Set-Cookie response header either manually using suitable Post-Processor or automatically using HTTP Cookie Manager In that case as cookies are stored under browser local storage, so I am using web driver sampler to get that If after login you get the Cookie which can be used for authentication/authorization in an API request there is no need to use Selenium, with JMeter 您可以使用合适的后处理器手动或自动使用HTTP Cookie 管理器Set-Cookie响应 header 获取 cookie 值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM