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.
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