HTTP proxies for Appium in native applications?

I was wondering if anyone has an idea which Java / Groovy library / tool to use to sniff, record and process HTTP traffic of their own applications when running Appium tests? Does anyone have experience with the Mob browser for this particular case? Thank you The best, Daniel

+5
source share
1 answer

Yes Browsermob can be used with native applications and selenium. We tried many other network proxies, but the browser works better for selenium.

It can be done in 3 easy steps (not so simple, by the way).

  • Launch a browser from a standalone server and get a response like har in localhost
  • Enter the code to confirm the withdrawal.
  • Call browser methods in selenium code to call
  • Confirm the answer with the code that you already wrote to confirm.

Basically, verification involves parsing JSON files, since most https responses will be in JSON format.

  • If you need help with any specific area of ​​the proxy server or browser selenium, feel free to ask me.
0
source

Source: https://habr.com/ru/post/1242451/


All Articles