Common Android Steps - simon-sai/selenium-appium-java GitHub Wiki

I open android app from env

When I open android app from env

The purpose of this step is to:

  • Log the action: Track the app launch in the test report, providing transparency in test execution.
  • Open the Android app: Launch the Android app using pre-configured environment variables, such as the app package and activity, on the test device or emulator.

This step is essential for mobile app automation testing, where the app needs to be launched before further interactions can occur. By relying on environment configurations, it ensures flexibility and reusability across different environments or app versions.

I close android app from env

When I close android app from env

The purpose of this step is to:

  • Log the action: Provide a clear log entry that the app is being closed, aiding in tracking and test transparency.
  • Close the Android app: Simulate the action of closing the Android app on the test device or emulator, as if a user were manually closing the app.

This step is essential in mobile testing scenarios where the app needs to be terminated or switched between different apps during the automation flow. By closing the app, it ensures that tests can simulate realistic user interactions and manage app states efficiently.