AppiumTestDistribution / appium-interceptor-plugin

Appium 2.0 plugin to mock api calls for android apps
27 stars 11 forks source link

fix: attach requestBody, add proxy error listener & export types #20

Closed bardius closed 7 months ago

bardius commented 7 months ago

Motivation

While trying to intercept requests in a typescript based solution with webdriverIo and its appium service for E2E tests of an android app, faced some challenges.

Did not have network security settings in the app to allow user installed certificates, thus no requests were intercepted as proxy was erroring. However, this error was never logged in appium logs.

Additionally, the types were not exported and took some effort to discover the correct SnifferConfig object.

Last but not least, after the requests were intercepted there was no requestBody value attached in the RequestInfo object.

Description of the change

Added

sudharsan-selvaraj commented 7 months ago

Thanks for fix. Changes looks good to me.

bardius commented 7 months ago

Thank you for the great tool and your ongoing efforts!