firebase-test-lab

How to perform firebase robo test recording (espresso) with standalone android app (.apk file) on android studio?

做~自己de王妃 提交于 2020-01-16 17:27:50
问题 I have app (.apk file) and I need to do testing using firebase robo test (espresso recorder) on android studio. We don't have access to source code except the .apk file. Is it possible? And how to do it, launch app in android studio emulator and perform robo test recording? 回答1: As of now, both Espresso Test Recorder and Robo Script Recorder are fully integrated into Android Studio workflows that require access to the source code of the app-under-test. So, no, it is not possible to record a

How to provide login credentials to an automated android test?

家住魔仙堡 提交于 2019-12-30 07:57:30
问题 I'm looking for a way to "provide a login" to my app so an automated test "is logged in" and can test the entire app. Currently it's of course blocked by the login-screen. Because I'm using SmartLock for Passwords, this might be a chance to provide some credentials for the test - but I don't know how. Is there some best-practice to provide credentials to / skip the login during a test? I could think of a special buildType / -flavor which is mocking the login but this way it can't be used to

How to split Android Espresso tests into different APKs

笑着哭i 提交于 2019-12-24 06:30:06
问题 I have a Espresso Android test APK with a lot of tests (about 70), and I wanted to split the tests into different APKs and then run them, separately, on Firebase Test Lab. Within the Android Studio framework, I created several Test Suites. However, when I need to generate an APK with fewer tests, I create several copies of the project and I will take tests and generate the APKs with the tests I need. My question is: Is there any way to split the test APK without always having to do the

Failed to start an instrument test from Firebase gcloud command line

半腔热情 提交于 2019-12-24 00:35:09
问题 I tried to test an app with Firebase Test lab but get an error saying "testOnly APKs are not allowed." C:\temp>gcloud firebase test android run --type instrumentation --app myapp.apk --test myapp-androidTest.apk --device model=Nexus10,version=22,locale=en,orientation=landscape --timeout 300s Have questions, feedback, or issues? Get support by visiting: https://firebase.google.com/support/ Uploading [myapp.apk] to Firebase Test Lab... Uploading [myapp-androidTest.apk] to Firebase Test Lab...

Failed to start an instrument test from Firebase gcloud command line

血红的双手。 提交于 2019-12-24 00:18:11
问题 I tried to test an app with Firebase Test lab but get an error saying "testOnly APKs are not allowed." C:\temp>gcloud firebase test android run --type instrumentation --app myapp.apk --test myapp-androidTest.apk --device model=Nexus10,version=22,locale=en,orientation=landscape --timeout 300s Have questions, feedback, or issues? Get support by visiting: https://firebase.google.com/support/ Uploading [myapp.apk] to Firebase Test Lab... Uploading [myapp-androidTest.apk] to Firebase Test Lab...

How to use firebase TestLab with react native

怎甘沉沦 提交于 2019-12-21 04:34:17
问题 I was trying to run a robo test for my react native app on firebase TestLab, but I couldn't get the robo test pass login. The first problem is that it doesn't type in email and password. In my js file I had: <Input ... testID="usernameInput" /> <Input ... testID="passwordInput" /> and I put this in my firebase console However, it didn't work at all. I checked the video recording, it was not typed in. Second problem is that even if I hard code my username and password in debug apk, it won't

Pre-launch-report failures due to missing methods (in com.google.android.apps.mtaas.crawler-1/base.apk)

半世苍凉 提交于 2019-12-20 12:05:35
问题 Since recently my app started to contain strange error messages in the pre-launch reports (automatically generated after upload to the Play store). These reports contain exceptions such as the following: Exception java.lang.NoSuchMethodError: No interface method a(Landroid/arch/lifecycle/e;Landroid/arch/lifecycle/b$a;)V in class Landroid/arch/lifecycle/GenericLifecycleObserver; or its super classes (declaration of 'android.arch.lifecycle.GenericLifecycleObserver' appears in /data/app/com

Espresso not uploading app apk to Firebase, getting message “Skipped triggering the test execution: The provided APK is invalid”

回眸只為那壹抹淺笑 提交于 2019-12-13 04:35:46
问题 I'm doing some automated testing using Espresso with Firebase, but when I run my test, when trying tu upload my test to Firebase, I get the message Skipped triggering the test execution: The provided APK is invalid, how can I solve it? 来源: https://stackoverflow.com/questions/58227597/espresso-not-uploading-app-apk-to-firebase-getting-message-skipped-triggering

How to execute a designated test in Firebase Test Lab

梦想与她 提交于 2019-12-11 17:26:21
问题 I want to run one test from one test suite using gcloud firebase test android run but I can't figure out the syntax. This command failed: gcloud firebase test android run \ --type instrumentation \ --project locuslabs-android-sdk \ --app app/build/outputs/apk/debug/app-debug.apk \ --test app/build/outputs/apk/androidTest/debug/app-debug-androidTest.apk \ --device model=Pixel2,version=27,locale=en_US,orientation=portrait \ --verbosity debug \ --test-targets "class com.example

How to pass gradle project settings on the command line to gcloud firebase test android run

女生的网名这么多〃 提交于 2019-12-11 17:02:03
问题 I am trying to run Cucumber tests on Google Firebase Test Lab but I am having trouble figuring out how to pass a Gradle project setting to the gcloud firebase test android run command. As background, the tutorial Android BDD with Cucumber and Espresso — the full guide does a great job explaining how to setup Cucumber for an Android project and run it locally like this: ./gradlew connectedAndroidTest -Pcucumber The -Pcucumber flag switches between AndroidJUnitRunner and CucumberTestRunner in