Squish tip of the week: How to test Web Apps on Mobile Devices

Squish tip of the week: How to test Web Apps on Mobile Devices

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:
  1. 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
  2. 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
  3. Connect your mobile device or tablet to the same network as your desktop computer
  4. 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)
  5. 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
  6. Save and close the settings area on your device
  7. 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
  8. Open the Squish (for Web) IDE and select Edit > Server Settings > Browser, and choose the Browser on Mobile Device option.
Squish is now configured to test Web applications on your device!