I'm working on P2P chat application (for Android) right now. And I would like to add some UI tests to not go through all use-cases (sending/receiving messages, connection requests, disconnections, losing connection and so on) every time after I change some big part of my code.
So, my initial thought was creating two sets of Espresso test for two devices, one will send requests and messages and another will be a receiver. It's just abstract idea and my question is: is that possible to run two sets of tests which will interact with each other? And even if the answer is "yes", should I implement this approach, or should I somehow mock connection mechanism and run tests only on one device? (In case this approach is fine, how can I implement that?) Can you suggest a right/better approach?
I didn't find any similar question, and I think maybe it is stupid and an answer is obvious for everybody who has much experience with testing. Anyway, the answer may be useful for some other guys in the similar situation.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire