As given in the Jmeter manual 13.4.3, I added the Http Proxy Server in Work Bench. Its given that Thread Group and Recording Controller needs to be added. But I couldn't add Thread Group under WorkBench. How Could I do this? or Is Thread Group and Recording Controller be added as a seperate one?(ie not under work Bench)
Hey there is no need to add thread group below
workbench , only add proxy server.
Add thread group below plan ,add Recording Controller to plan and configure proxy server in Tools/internet options.
This should be alright to start recording.
1. Now i did as u mentioned, I added thread group and recording controller and in internet options i changed the lan settings to the local host, 8080 port(In workbench--> Http proxy server too i mentioned this same port 8080)
In the InternetExplorer I've given http:\\localhost:8080.An exception is displayed
Pls tell me Why this exception?
In the recording cotroller something is recorded connection-Keep-alive, host: localhost8080
But if i try http:\\google.com or some other url nothing is recorded in the recording Controller. Please tell me where I'm doing the mistake.
2. Is there any playback options in that or we should use Run-->Start alone to rerun the recorded script.
1.Add thread to testplan
2.Add recording controller to plan
3.Add Http Proxy Server to Work Bench
4.address 127.0.0.1 port is 8080
5.start proxy server
6.go on recording when finished stop proxy server.
7.u can save record controller as testcases
Hi Thank U very much Its working fine now.
I included my machine name(network) in address field of internet options and port :8080.Its getting recorded now.
Previously i thought it would replay all the script like robot. ie All actionsBut I hope JMeter is not like that.It'll replay the script alone and not every recorded actions, we can see the results only in report form. Am I correct..?
Thank U for Ur Clarifications!!
S, I added Recording Controller under Thread group(not in work bench) and also added listener(View results tree). My question is
1. Is it possible to record and play back all the recorded events using JMeter? If yes, how?
Coz now all the objects alone(images and links) be captured and displayed in the listener(view results tree)not the events.
I have gone through Jmeter manual as well as threads related to proxy server set up.
I am behind company firewall settings.
If I try to change the proxy server to
127.0.0.1 - I get page cannot be displayed error if I try to record a web url say google.com
If I change the proxy settings to localhost or IP address of my machine
I am getting the following error:
java.net.ConnectException: Connection timed out: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainC onnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connec t(Unknown Source) at org.apache.jmeter.protocol.http.sampler.HTTPSample r.sample(HTTPSampler.java:457) at org.apache.jmeter.protocol.http.sampler.HTTPSample rBase.sample(HTTPSamplerBase.java:889) at org.apache.jmeter.protocol.http.proxy.Proxy.run(Pr oxy.java:163)
I am using same port value in Jmeter as well as IE => internet options 8080.