简体   繁体   中英

Not able to record a simple login page test with Jmeter for a Tomcat 6 running on localhost but can for Jmeter Website

I am new to Jmeter and had a look at the apache user manual as well but not able to resolve my problem, which is not able to record my test. Basically i have a simple login app running on apache tomcat 6(HTTP port 8082). I have created a thread group and and added an HTTP Default Request to it please find config below:

在此输入图像描述

I have also created a Proxy Server please find config below:

代理服务器配置

I have also updated the proxy for my firefox please find below:

在此输入图像描述

My login application is running on the Apache Tomcatv6.0 as i can view it on the browser. However with the above setting i am not able to record anything don't know what i am doing wrong?when i change the server name/ip to http://jmeter.apache.org/ then it works find. Any idea why it is not recording when i am running my application please?My login application displays an html login page.

This is because in your firefox settings you have set in No proxy for:

  • localhost

As below: 在此输入图像描述

So to fix it, just remove from "No proxy for" the localhost or 127.0.0.1

Use a port number other than :8080 . For example you can use :2020

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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