Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to test multiple apps with espresso test recorder?

Is it possible to record tests for multiple apps with espresso test recorder or do you need to write code manually for these tests with UiAutomator?

like image 984
barq Avatar asked Oct 30 '22 22:10

barq


1 Answers

For background, see:

  • Google's doc on Espresso,
  • Google's doc on Espresso Test Reorder,
  • Google's doc on UI Automator, and
  • Alex Zhukovich's tutorial Android testing: Espresso & UIAutomator together about combining Espresso + UIAutomator to test multiple apps. (Also Alex's previous tutorials on Android unit testing, Mockito & Roboelectric, Espresso, and UIAutomator.)

The pair of tools should work to test an app's notifications, for instance.

But these docs don't discuss using the Espresso Test Recorder for multiple apps. The test recorder is in beta and still developing.

Suggestion: Try using Espresso Test Recorder to record actions and assertions within each app separately, then manually combine the two generated test programs.

Please report back on lessons learned!

like image 159
Jerry101 Avatar answered Nov 09 '22 12:11

Jerry101