appium - How can I get http response sent by android app? -


my app sending http request, , want during test step requests , responses. in browser used browsermobproxy responses it's it's work on browser. 1 know how can responses app in test step ?

you can re-route connections through proxy running on development pc. note assume have local wifi router , local network both computer , android phone connected to.

all need ip of development pc accessible android phone use app testing.

on pc install inspection proxy fiddler (windows), burp suite (java) or charles proxy (osx).

by default proxies listen on localhost connection, can configured accept connections other computers (or in case android phone).

for fiddler find in menu tools -> fiddler options -> tab connections -> allow remote computers connect.

configure accordingly , change wifi setting on android phone used wifi network. enable manual proxy configuration , enter computer's ip address in local network , port number proxy listening on. after saving new wifi settings apps on android phone should use proxy on pc, allow see traffic of app.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -