Could Appium monitor http requests?

1,050 views
Skip to first unread message

shuai sun

unread,
Jul 31, 2013, 3:23:39 PM7/31/13
to appium-...@googlegroups.com
Hi everyone,
        I am  testing an ios app, which communicates with remote server. 
        Is there any way to monitor http request it sends and receives?
        Thank you in advance!

       Shuai

bootstrap online

unread,
Jul 31, 2013, 3:28:10 PM7/31/13
to shuai sun, appium-...@googlegroups.com
Appium doesn't have http monitoring built in.
> --
> http://appium.io
> ---
> You received this message because you are subscribed to the Google Groups
> "Appium-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to appium-discus...@googlegroups.com.
> Visit this group at http://groups.google.com/group/appium-discuss.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

shuai sun

unread,
Jul 31, 2013, 3:32:09 PM7/31/13
to bootstrap online, appium-...@googlegroups.com
Thank you for saving me butch of time! Then I would look into instruments
--
Best Regards,
         
                Shuai Sun

Umass Boston
55 Edwin St, Quincy, 02171
USA
Cellphone: 617-515-5588

David Luu

unread,
Jul 31, 2013, 5:06:23 PM7/31/13
to appium-...@googlegroups.com, bootstrap online
You might be able to invoke instruments related network monitoring capabilities from Appium if the instruments tool offers a javascript API for that, in which case you can execute them via the JavascriptExecutor.

Other option is to route the app (via simulator/OS X networking or actual device networking) through a network proxy like Charles or Fiddler so that you can monitor traffic through that.

Dan Cuellar

unread,
Aug 1, 2013, 11:05:20 AM8/1/13
to appium-...@googlegroups.com, bootstrap online
I think this is getting outside of the scope of the Appium project, much in the same way that Selenium refuses to return HTTP status codes, I think if we got into the proxy server business that's a whole different project.

That being said, you could modify your Automation.tracetemplate to include the Networking widget that Instruments.app provides, and its output will be saved to the .trace file created by your script.

You could also setup a proxy on your device's wifi connection or on the machine running your simulator and pull the information that way.
Reply all
Reply to author
Forward
0 new messages