jeudi 22 février 2018

Asynchronous UI Testing in Xcode With Swift

I am writing an app that makes plenty of network requests. As usual they are async, i.e. the call of the request method returns immediately and the result is delivered via a delegate method or in a closure after some delay. Now on my registration screen I sent a register request to my backend and want to verify that the success UI is shown when the request finishes.

Which options are out there to wait for the request to finish, verify the success UI and only after that leave the test method?

Also are there any more clever options than waiting for the request to finish?

Thanks in advance!

Aucun commentaire:

Enregistrer un commentaire