使用具有基本认证的jmeter进行负载测试 [英] Load testing using jmeter with basic authentication

查看:111
本文介绍了使用具有基本认证的jmeter进行负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的目标是针对用户数量在jmeter中执行负载测试.正在测试的应用程序在登录页面上使用基本身份验证"方法,并且其URL包含与登录用户相关的参数很少.那么我如何进行负载测试,例如100个用户为登录用户定制了as url?

My goal is to perform Load testing in jmeter for number of users. The application being in test is using ‘Basic Authentication‘ method at the login page and its URL has few parameters that are related to the login user. So how can I perform load testing for e.g. 100 users where as url is customized for the login user??

推荐答案

不要通过URL字符串传递用户名和密码,这是不安全的,请使用

Don't pass username and password via URL string, it is not secure, use HTTP Authorization Manager instead.

您可以使用 CSV数据集配置,以便在HTTP授权管理器中对用户名/密码对进行参数设置.

You can use CSV Data Set Config in order to parametrize username/password pairs in the HTTP Authorization Manager.

这篇关于使用具有基本认证的jmeter进行负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆