Google provides https://developer.android.com/guide/app-bundle/ feature.
When we build with the feature, we get .aab file. We upload it to the play store directly.
.aab isn’t apk. So, we can’t run install the aab via adb install to devices. Appium can’t run tests against the .aab so far.
In the case, we should use https://github.com/google/bundletool to generate and install .apk to a device from .aab.
I prepared an example to run tests using it in https://github.com/KazuCocoa/AppBundleSample . It is Ruby scenario, but I believe you can see how to install test .apk and run tests via Appium.
I’ve added one lesson section. What kind of apks are generated by the generate command.
– https://github.com/KazuCocoa/AppBundleSample/blob/master/README.md#lesson
– https://github.com/KazuCocoa/AppBundleSample/blob/master/README.md#get-device-spec