Testing bad connections in Xamarin UI Test

Does anyone have experience and advice for writing and running UI tests that run in app center that tests poor or no internet connection?

Best Answer

Answers

  • rlaskerrlasker Member ✭✭
    edited October 2018

    @JohnHardman said:
    ...I would be tempted to do most of the testing of error handling using unit and/or integration tests using mocking

    Thanks, as you say that I suppose it makes sense to focus on mocked unit tests. Unfortunately we use UI tests to simulate QA Test Plans which include bad connection tests. It's a real bummer especially given the fact that the entire purpose of the app is to provide business functionality in the fields where no connection is available. QA should be able to run the UI tests on a physical device and manually turn off connection but it doesn't help us when we are trying to run them in AppCenter against sets of devices.

Sign In or Register to comment.