Is it possible to use Little Proxy with Appium

365 views
Skip to first unread message

sunny sachdeva

unread,
Sep 28, 2015, 5:15:21 AM9/28/15
to LittleProxy
Hi All,

I want to record all the HTTP calls made from hybrid app [iOS] from Simulator and Real Device. Is it possible to use Little Proxy with Appium.

 Please let me know your suggestions.

Thanks
Sunny Sachdeva

Tai D

unread,
Sep 28, 2015, 1:32:23 PM9/28/15
to littl...@googlegroups.com
You should be able to use it with the iOS Simulator, at least (I haven't tested on a physical device). Just pass the proxy capability to the Selenium grid hub (or Appium).

Note that the iOS Simulator uses the System Proxy on OS X, so Safari and other apps/browsers will attempt to proxy their traffic, too. I use VMs to isolate traffic.

For a physical iPhone, you might need to launch LilttleProxy on a statically-configured port, and preconfigure the iPhone to point at it. If your test machine and the iPhone are on the same Wifi network, you should be able to configure the iPhone's Wifi to point at your IP address and proxy port. (http://www.charlesproxy.com/documentation/faqs/using-charles-from-an-iphone/)

http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp
String PROXY = "localhost:8080";

org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(PROXY)
     .setFtpProxy(PROXY)
     .setSslProxy(PROXY);
DesiredCapabilities cap = new DesiredCapabilities();
cap.setCapability(CapabilityType.PROXY, proxy);

WebDriver driver = new InternetExplorerDriver(cap);


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

Frank Ganske

unread,
Sep 29, 2015, 1:55:21 AM9/29/15
to littl...@googlegroups.com
Hello Sunny,

LittleProxy is a proxy application, so you can use it with an iOS
device, too. See https://github.com/ganskef/LittleProxy-mitm/issues/6
for an example.

But, LittleProxy is a framework. To record all trafic, you need a
recording application. You could implement this on top of LittleProxy.


Consider to use for example (*Spoiler warning*):

BrowserMob Proxy http://bmp.lightbody.net/ A free utility to help web
developers watch and manipulate network traffic from their AJAX
applications.

Or mitmproxy http://mitmproxy.org/ An interactive console program that
allows traffic flows to be intercepted, inspected, modified and replayed.

Or The Grinder http://grinder.sourceforge.net/ A Java load testing
framework that makes it easy to run a distributed test using many load
injector machines.


Regards Frank
> --
> You received this message because you are subscribed to the Google
> Groups "LittleProxy" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to littleproxy...@googlegroups.com
> <mailto:littleproxy...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages