Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Using a Travel Router for Mobile Testing

DZone's Guide to

Using a Travel Router for Mobile Testing

See how you can run mobile testing by connecting your device to a travel router, making traffic capture easier, in this testing experiment.

· Performance Zone ·
Free Resource

Maintain Application Performance with real-time monitoring and instrumentation for any application. Learn More!

I think, although I can't find the blog post, that I've described the use of a travel router for mobile testing before, but my TP-Link TL-MR3020 no longer seems to work with my Macbook now that I've upgraded to a newer MacBook Pro with USB-C connectors.

I spent too long trying to get it working, so, in the end, I just bought a new travel router.

I tried the TP-Link TL-WR802N, and now it all works fine.

Setup

Configure the Router

  1. Connect the router to power.

  2. Connect your machine to the TPLink wifi and go to http://tplinkwifi.net.

  3. Configure the router to be in AP mode (Access Point).

  4. Reboot the router.

Configure the Mac

  1. Connect the router to your machine via the Ethernet cable.

  2. In MacBook sharing, share the "Internet Sharing" with your Ethernet adapter.

  3. Connect he mobile device to the TP-link wifi travel router network.

  4. Surf the web.

Configure the Proxy

Because I'm testing, I want to see traffic, so I need to configure my proxy.

  1. In Burpsuite, the default proxy is 127.0.0.1:8080. I set up another one on MY-IP-ADDRESS:7878 and then I configure my mobile device to use a proxy on MY-IP-ADDRESS on port 7878.

  2. I need to install a certificate on my mobile device, so I visit http://burp/cert and this downloads the current Burpsuite certificate to my device.

  3. In my security settings, I set up the certificate as a trusted certificate for VPN/Apps and also for wifi.

  4. Then, all the traffic for my apps and browser will route through to Burpsuite, allowing me to observe mobile traffic easily.

Wiresharking

Because my mobile device is routing all traffic through my laptop, it makes it much easier for me to Wireshark the traffic as well, if I need to.

YMMV

I find this much easier and more reliable than connecting my mobile device to wifi and routing through the proxy on my Mac, and I'm more confident that I won't miss any messages because everything is routing through my main computer over the shared connection.

Collect, analyze, and visualize performance data from mobile to mainframe with AutoPilot APM. Learn More!

Topics:
performance ,mobile testing ,software testing ,performance testing ,tutorial ,burpsuite

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}