我用的是我们公司的测试环境练习的
网址:http://****:9000/login.html 账号是admin 密码:123456
一、打开Jmeter
找到安装目录:bin-》Jmeter.bat 点他,就打开了
二、新建线程组
新建完成后,如下图。因为我们只是试试看是否能走起来,下面这些就暂时不配置
三、添加HTTP信息头管理器
线程组,右击,配置元件-》HTTP信息头管理器,一般测web,都要加上HTTP信息头
添加值:Content-Type:application/json
四、添加HTTP消息,抓到的URL就是填在这个里面
线程组,右击,添加-》Sampler->HTTP请求
添加URL相关信息
五、为了查看结果,添加查看结果树
线程组,右击,添加-》监听器->查看结果树
六、开始执行,查看结果
执行:点菜单栏的执行按钮
结果:能看到返回结果,就代表登录成功