Host resolution error while recording in Jmeter - jmeter

I am getting one error in Jmeter while trying to do some actions in my application. In my company, I am using some XX proxy to connect to the Internet. However, while trying to record using Jmeter , am using localhost with the port as 80. After did basic settings in workbench -- click on start-- navigate to the browser to do some actions. But, when I click on any button in my application. I am getting this error
java.net.UnknownHostException: This is usually a temporary error during hostname resolution and means that the local server did not receive a response from an authoritative server at

Try to record the application after changing the port different from 80.

Related

Connection refused exception on JMeter Script Execution in VSTS

I was trying to execute the JMeter jmx scripts in Microsoft Visual Team Services (VSTS), The scripts were working fine when executed using JMeter tool[GUI as well Non-GUI mode] but when tried to execute the same in VSTS, I was facing the below mentioned issues,
1) Non HTTP response message: Connection refused: connect – For localhost application,
2) Non HTTP response code: java.net.UnknownHostException – When used to run using IP address.
It looks like you're trying to test application deployed locally from Internet. Make sure you're using public IP address instead of private, you can determine it using service like What Is My IP?, however you need to ensure your application is not behind NAT and VSTS host(s) can reach it. It might be also a matter of firewall configuration preventing inbound connections from VSTS hosts(s).
See Top 3 Options for Running Performance Tests Behind Your Corporate Firewall article for more information and possible solutions.

Can't able to record jmeter with proxy server

I can't able to record jmeter using with proxy server.
I tried proxy settings in RUN command jmeter.bat -H 192.168.61.202 -P 8080.
Jmeter is recording with the browser actions, but not connecting the internet.
Showing error page on browser.
See the screenshot- Error shown in browser
are you able to record it using normal browser mode? If yes you should check for the firewall and add the specific port numbers to exclusions as some time back I faced the same issue, after i added the port number to excluded in Inbound and Outbound rules and disabling the antivirus setup on my machine made it work

SONAR not working on Web Browser

I am trying to access Sonar through web browser. I already started it on my terminal but when I try to access it on web browser through , it shows nothing. However, the status shows Sonar is running. How can I make it running on the web browser ?
The configuration for Sonar web is:
sonar.web.host=127.0.0.1
sonar.web.context=/sonar
sonar.web.port=9000
sonar.web.host=127.0.0.1
I think this is the problematic line in your conf. This line indicates which IP address the Web Server will bind to. If you set it to 127.0.0.1, then Server will only respond if you reach to it through the IP 127.0.0.1, that is, you'll only be able to access it from localhost, though IPv4. (Your browser will probably prefer IPv6, with ::1 being the host)
Comment out the line (prepending a #) in order to have it listen to every IP the machine is called by.
If you can verify access from the host machine itself, but the above doesn't help, then you might want to check if your firewall is blocking requests.
With the settings you provided, make sure you're using this URL and trying to access the server from the same box: http://127.0.0.1:9000/sonar/
If you're attempting to reach http://127.0.0.1:9000/ and getting the empty page, it's due to the sonar.web.context value you're using.
Note: unless you're hosting SonarQube in an external webserver, you don't need to set the sonar.web.context, in which case, you would just go to http://127.0.0.1:9000/
If this URL isn't working for you, I would suggest looking at the SonarQube server logs in the /logs folder to determine if there were any errors starting the server. If so, you'll want to update this posting with the details from the log, including which operating system you're running.

JMeter Proxy not recording local sites in IE 8

I am learning JMeterProxy using WAMP and opencart web app.I did a recording using HTTP Proxy Server. I configured firefox and recording went smoothly. But if i am using IE, nothing seems to be recorded. I added a tree view listener in HTTP Proxy to log the recording, nothing is logged in it when i am using IE.
Some observations:
when i stop recording and if i try to access the local site using FF, it is not accessible, but in case of IE i could open the site.
If i browse an external site, recording is working.
I am accessing my site as http://localhost:81/opencart/index.php, since 80 port is used by IIS
My question is.
How would i trouble shoot this kind of scenario.
What changes i should i make in IE proxy settings.
I solved this problem, Here is the solution, as per JMeter documentation
If JMeter does not record browser URLs such as http://localhost/ or
"http://127.0.0.1/", try using the non-loopback hostname or IP address,
e.g. http://myhost/ or "http://192.168.0.2/"
So providing the host name in place of loop back address solved the problem

Jmeter's proxy server does not record

New to JMeter. I have downloaded and configured proxy server as the step by step guide from JMeter website. Got right log message such as "protocol 8080 has been created" and "Proxy is up running" etc. But it just did not record localhost:8080 with Tomcat. Change to Neoload to record localhost:8080 and everything works fine but JMeter just does not record anything. There is no errors in the log or within the screen.
Did you start the proxy ?
Try stopping it to see if you get an error in browser.
Are you sure neoload is not already listening to this same port and jmeter could not start on this same one.
Finally you could try using your ip in browser address.
I don't know what mistake have you made. This is what you can do from scratch:
Create empty plan
Add HTTP Proxy Server to WorkBench
In its configuration set port to free one at your computer (maybe 8080 is busy). Click Start
Set browser proxy to localhost, choose the same port as in JMeter's proxy
Browse to any url
--> Samplers should appear in JMeter
You may also like to change Target Controller so samplers will appear in more appropriate place

Resources