Configure your browser to use Gatling Recorder’s proxy.

2,458 views
Skip to first unread message

Magnus Jensen

unread,
Sep 9, 2014, 10:57:48 AM9/9/14
to gat...@googlegroups.com
How is that done in i.e. Firefox?
In the documentation is says that this has to be done in order to use the recorder.

Thanx!

Magnus

Stéphane Landelle

unread,
Sep 9, 2014, 11:02:51 AM9/9/14
to gat...@googlegroups.com
Come on: there's even Firefox screen captures in the documentation!

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Magnus Jensen

unread,
Sep 9, 2014, 2:20:39 PM9/9/14
to gat...@googlegroups.com
Ok, here is what I did:
*I started a local web-app on localhost:8080.
*Then I configured Firefox to use manual proxy configuration
*Then I started Gatling recorder with the .bat script.
*Going into my web-app on localhost:8080 in Firefox did not result in any "activity" in the Gatling recorder.
*Changing the web-app to run on port 8000 results in the stacktrace below when starting up Gatling recorder:

GATLING_HOME is set to "C:\Gatling 2.0\gatling-charts-highcharts-2.0.0-RC4"
Exception in thread "AWT-EventQueue-0" org.jboss.netty.channel.ChannelException:
 Failed to bind to: 0.0.0.0/0.0.0.0:8000
        at org.jboss.netty.bootstrap.ServerBootstrap.bind(ServerBootstrap.java:2
72)
        at io.gatling.recorder.http.HttpProxy.<init>(HttpProxy.scala:41)
        at io.gatling.recorder.controller.RecorderController.startRecording(Reco
rderController.scala:80)
        at io.gatling.recorder.ui.RecorderFrontend.startRecording(RecorderFrontE
nd.scala:68)
        at io.gatling.recorder.ui.swing.frame.ConfigurationFrame.io$gatling$reco
rder$ui$swing$frame$ConfigurationFrame$$reloadConfigurationAndStart(Configuratio
nFrame.scala:469)
        at io.gatling.recorder.ui.swing.frame.ConfigurationFrame$$anonfun$12.app
ly$mcV$sp(ConfigurationFrame.scala:99)
        at scala.swing.Action$$anon$2.apply(Action.scala:60)
        at scala.swing.Action$$anon$1.actionPerformed(Action.scala:78)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
ce)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$400(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
ce)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.net.BindException: Address already in use: bind
        at sun.nio.ch.Net.bind0(Native Method)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.Net.bind(Unknown Source)
        at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
        at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
        at org.jboss.netty.channel.socket.nio.NioServerBoss$RegisterTask.run(Nio
ServerBoss.java:193)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.processTaskQue
ue(AbstractNioSelector.java:372)
        at org.jboss.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNi
oSelector.java:296)
        at org.jboss.netty.channel.socket.nio.NioServerBoss.run(NioServerBoss.ja
va:42)
        at org.jboss.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnabl
e.java:108)
        at org.jboss.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProof
Worker.java:42)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

What am I doing wrong?

Magnus 
Reply all
Reply to author
Forward
0 new messages