1
  1. How to verify if the android app is launched correctly when click app icon(pass or fail)?

  2. How to verify if splash screen is display after app is launched?

  3. How to verify if the right activity is open(pass or fail)?

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

2 Answers2

0
  1. You should not test this "feature" specifically, since Android System takes care of this. You should start from test 2.
  2. Find an element you are sure is present in the splash screen and validate it with isDisplayed()
  3. Same as previous
Jorge E. Hernández
  • 2,800
  • 1
  • 26
  • 50
0

To verify current activity, try(Python):

   self.driver.start_activity("your_app_package_here", "your_app_activity")
   activity_name = self.driver.current_activity
   assert activity_name == "your_app_activity"
Zzoha
  • 1
  • 1