- Documentation
- Quick Start Guide
- Selenium Grid Configuration
- Auto Scaling
- Spot Instance Nodes
- Selenium Grid Integration
- Pre Launch API Integration
- Selenium V4 Grid Code Examples
- Selenium V2/V3 Grid Code Examples
- Performance Testing
Browsermob Proxy and Selenium Grid
Browsermob Proxy is an open source proxy that can be used with our Gridlastic Connect tunnel client to tunnel traffic to test your internal behind firewall web servers. Browsermob proxy should be used when there is a specific need like for performance testing as it has built in support for producing performance data. Otherwise our recommendation for tunneling via a proxy is to use the open source proxy Squid.
BROWSERMOB PROXY INTEGRATION
To tunnel your selenium grid nodes through your own Browsermob Proxy, follow the setup below.Click chart to enlarge.
Sample Gridlastic Connect Config file:
server_addr: your_gridlastic_connect_subdomain.gridlastic.com:443 tunnels: BMP-PROXY-1: remote_port: 9001 proto: tcp: 9091 BMP-PROXY-2: remote_port: 9002 proto: tcp: 9092 BMP-PROXY-3: remote_port: 9003 proto: tcp: 9093Start the tunnel client like
./gridc -username=USERNAME --password=PASSWORD -config=config.cfg start BMP-PROXY-1 BMP-PROXY-2 BMP-PROXY-3the output would be:
gridc Tunnel Status online Version (client/server) 1.3/1.2 Forwarding tcp://your_gridlastic_connect_subdomain.gridlastic.com:9001 -> 127.0.0.1:9091 Forwarding tcp://your_gridlastic_connect_subdomain.gridlastic.com:9002 -> 127.0.0.1:9092 Forwarding tcp://your_gridlastic_connect_subdomain.gridlastic.com:9003 -> 127.0.0.1:9093Of course you need to create the equivalent browsermob proxies on ports 9091, 9092 and 9093 see (browsermob proxy example for instructions how to do this) but your tunnel client and its mapping is independent from this and you can start tunnels to non yet created Browsermob proxies. This enables you to configure Browsermob proxies whenever you want and route one or many selenium tests through one proxy or many proxies.
Each Browsermob proxy can create a HAR file with performance data that you can use in your test suite to include performance testing at the same time you run functional testing.
The above endpoints like "your_gridlastic_connect_subdomain.gridlastic.com:9001" are accessible only by your Gridlastic selenium grid nodes. Use these endpoints in your selenium test suite as selenium proxies, see the Squid example for reference.
Try our
SELENIUM GRID DEMO