Skip to content

How to generate screenshots for the PlayStore

Pierre Slamich edited this page Aug 25, 2020 · 1 revision

Description

Configuration is set in openfoodfacts.github.scrachx.openfood.test.ScreenshotParametersProvider

To generate screenshots, possible to launch:

  • TakeScreenshotIncompleteProductsTest
  • TakeScreenshotMainActivityTest
  • TakeScreenshotShowProductsTest

Warn: see app\build.gradle to change the testBuildType: screenshot should selected (uncomment lines)

image

It's possible to generate all screenshot with: gradlew connectedOffScreenshotsAndroidTest --stacktrace --info -PtestBuildType=screenshots

Screenshots are generated in the Phone "Pictures" folder: image

Example for Brazil: image

🌐 Help translate the app

✉️ Join the discussion on #android on Slack

⚠️ Get real-time alerts on #android-alerts

Clone this wiki locally