简体   繁体   English

无法使用Jmeter为在本地主机上运行的Tomcat 6记录简单的登录页面测试,但可以为Jmeter网站记录

[英]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. 我是Jmeter的新手,也看过apache用户手册,但无法解决我的问题,无法记录我的测试。 Basically i have a simple login app running on apache tomcat 6(HTTP port 8082). 基本上我有一个在apache tomcat 6(HTTP端口8082)上运行的简单登录应用程序。 I have created a thread group and and added an HTTP Default Request to it please find config below: 我创建了一个线程组并添加了一个HTTP默认请求,请在下面找到配置:

在此输入图像描述

I have also created a Proxy Server please find config below: 我还创建了一个代理服务器,请在下面找到配置:

代理服务器配置

I have also updated the proxy for my firefox please find below: 我还更新了我的Firefox的代理,请在下面找到:

在此输入图像描述

My login application is running on the Apache Tomcatv6.0 as i can view it on the browser. 我的登录应用程序在Apache Tomcatv6.0上运行,因为我可以在浏览器上查看它。 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. 但是有了上面的设置,我无法记录任何不知道我做错了什么?当我将服务器名称/ IP更改为http://jmeter.apache.org/然后它可以找到。 Any idea why it is not recording when i am running my application please?My login application displays an html login page. 当我运行我的应用程序时,知道为什么它不能录制吗?我的登录应用程序显示一个html登录页面。

This is because in your firefox settings you have set in No proxy for: 这是因为在您的firefox设置中,您已设置为无代理:

  • localhost 本地主机

As below: 如下: 在此输入图像描述

So to fix it, just remove from "No proxy for" the localhost or 127.0.0.1 所以要修复它,只需从“无代理”中删除localhost或127.0.0.1

Use a port number other than :8080 . 使用除以下之外的端口号:8080 For example you can use :2020 例如,您可以使用:2020

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

相关问题 使用Jmeter记录,无法在moziilla firefox中获得网络连接。 但它在Internet Explorer中运行良好。 - Using Jmeter recording, can't able to getting network connetion in moziilla firefox. But it's working fine in internet explorer. Jmeter 错误 http 测试脚本记录器与 Firestore 请求 - Jmeter error http test script recorder with Firestore Request 为Jmeter性能配置手动代理时,Firefox显示“您的连接不安全” - Firefox is showing “Your connection is not secure” when configuring Manual Proxy for Jmeter Performance test 使用FireFox和HTTP(S)测试脚本记录器时,JMeter“内容编码错误” - JMeter “Content encoding Error” when using FireFox and HTTP(S) Test Script recorder Jmeter 证书在大多数站点中不起作用 - Jmeter certificate not working in most sites Apache Jmeter忽略了帖体 - Apache Jmeter ignoring post body JMeter WebDriver 采样器 - 无头 Firefox - JMeter WebDriver Sampler - headless Firefox JMeter在Ubuntu 18.04上通过Firefox录制控制器 - JMeter Recording controller via Firefox on Ubuntu 18.04 Firefox打开后,JMeter + Selenium测试停止 - JMeter + Selenium testing stops after Firefox is opened Web采样器(Jmeter)的Fire Fox配置不起作用 - fire fox config for web sampler (jmeter) is not working
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM