- Newest
- Most votes
- Most comments
Unfortunately, AWS Device Farm does not provide a direct way to disable the proxy for network connections from the devices it uses for testing. This can indeed cause issues with services like Firebase that may detect the traffic as coming from Amazon rather than a physical device.
However, there are a few potential workarounds you could consider:
-
For Android devices, you can use private devices in AWS Device Farm. When using private devices, you have the option to select "Skip app re-signing" when creating your test run or remote access session. This may help bypass some of the proxy-related issues.
-
You could set up a man-in-the-middle proxy within your custom test environment. This would allow you to capture and analyze network traffic, and potentially modify it to appear more like traffic from a physical device. However, this method is only available for Android devices in custom environment mode.
-
If you're using Selenium for web app testing, you can use the standard Selenium desired capability to configure the browser to connect through a specific proxy. You would need to ensure that your proxy allows the browser to connect to it, typically by allowlisting your IP addresses.
-
As a last resort, you might consider adding logging or debugging statements to your application code to help diagnose the exact nature of the connection issues with Firebase.
If these workarounds don't solve your specific issue, it would be advisable to open a technical support case with AWS Device Farm. Provide them with the details of your use case, and they may be able to offer more tailored assistance or additional workarounds.
Remember that completely disabling the proxy might not be possible due to how AWS Device Farm is designed to work, but these alternatives might help you achieve your testing goals.
Sources
How to intercept the network outgoing request from AWS device farm | AWS re:Post
Skipping app re-signing on private devices in AWS Device Farm - AWS Device Farm
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 4 months ago
