Did you know that you can test web applications on mobile device or tablet browsers as well as desktop browsers?
With the Squish for Web edition installed on a desktop machine:
- Configure Squish to use standalone proxy server listening on a port (let’s say 8001) by executing the following command from your Squish install directory:
$ ./bin/squishserver --config setProxyConnectAddress localhost:8001
- Start an HTTP-Proxy server (using a different port number, let’s say 8044) on the same computer by executing the following command from your Squish install directory:
$ ./bin/webproxy/proxy -H PC_NAME_OR_IP -p 8044 localhost 8001
- Connect your mobile device or tablet to the same network as your desktop computer
- Open the device’s Wi-Fi settings and edit your currently connected Wi-Fi network settings (iOS – click the i for more info, and in the HTTP PROXY section click Manual; Android – tap and hold the currently connected Wi-Fi network, click Modify network and check the Show advanced options check box)
- Enter your desktop computer’s IP address or name in the Proxy hostname or Server box, and enter the HTTP-Proxy port (in this example 8044) in the Proxy Port or Port box
- Save and close the settings area on your device
- To test your connection, open a browser on your device and navigate to https://www.froglogic.com/squish/ (or any link followed by /squish). The browser page should load a Squish/Web Automated GuiTesting page with a Waiting for start of next testcase… status
- Open the Squish (for Web) IDE and select Edit > Server Settings > Browser, and choose the Browser on Mobile Device option.