Firebase Device Test lab: Failed to create a test matrix
Asked Answered
P

9

12

I want tot try out firebase device testing - but i get a really generic error message doing so:

Failed to create a test matrix.

Anyone knows how to get around this? Quota should not be the problem - the button I press says "Start 2 tests" I already removed some devices in case it is quota. Unfortunately googling for the error does not really lead to a result..

enter image description here

Prunelle answered 7/11, 2016 at 13:25 Comment(0)
P
5

Ahmed here from the Firebase Test Lab team.

The issue happens when you exceed the quota for the day. There have been two issues on the Test Lab side contributing to the confusion here:

  1. The message shown is confusing and it's hard to understand what's going on
  2. To enforce this daily quota on usage, we require to have the API enabled on your project. We needed to have the API enabled on all Firebase projects. When we launched, we had the following in place (i) All new projects have the API enabled by default and (ii) All existing Firebase Test Lab users had the API backfilled. The issue happens when you have created a Firebase project in the past (before October 1st 2016) and never used Test Lab then went back to use it afterwards.

Issue (1) is still ongoing and we're currently working on making our error messages more informative. Stay tuned!

Issue (2) is now resolved completely. We've backfilled all the Firebase projects that were ever created with the Test Lab APIs.

You should now expect seeing this issue only in cases where you exceed the daily quota till we provide a better error message.

Thanks so much and apologies for the confusion!

Porphyrin answered 11/11, 2016 at 22:28 Comment(3)
thanks for the follow-up - moved the accepted answer to your's as it is correct for more usersPrunelle
Staying tuned here as we approach 2020 ;-) I am still getting this message and uninformative error.Hiram
Its already 2023 and its still there.Bra
R
8

Sorry for the confusion. We are improving this error message moving forward.

The problem is that you don't have the Google Cloud Testing API enabled for your project. Please can you do that?

Or just create a new project for which it will be automatically enabled.

Reasonless answered 7/11, 2016 at 14:37 Comment(2)
I have the same error, where do I enable the Testing API?Selfexamination
I have enabled the Google Cloud Testing API, still I get the same error.Hirsute
P
5

Ahmed here from the Firebase Test Lab team.

The issue happens when you exceed the quota for the day. There have been two issues on the Test Lab side contributing to the confusion here:

  1. The message shown is confusing and it's hard to understand what's going on
  2. To enforce this daily quota on usage, we require to have the API enabled on your project. We needed to have the API enabled on all Firebase projects. When we launched, we had the following in place (i) All new projects have the API enabled by default and (ii) All existing Firebase Test Lab users had the API backfilled. The issue happens when you have created a Firebase project in the past (before October 1st 2016) and never used Test Lab then went back to use it afterwards.

Issue (1) is still ongoing and we're currently working on making our error messages more informative. Stay tuned!

Issue (2) is now resolved completely. We've backfilled all the Firebase projects that were ever created with the Test Lab APIs.

You should now expect seeing this issue only in cases where you exceed the daily quota till we provide a better error message.

Thanks so much and apologies for the confusion!

Porphyrin answered 11/11, 2016 at 22:28 Comment(3)
thanks for the follow-up - moved the accepted answer to your's as it is correct for more usersPrunelle
Staying tuned here as we approach 2020 ;-) I am still getting this message and uninformative error.Hiram
Its already 2023 and its still there.Bra
S
3

Go here https://console.developers.google.com/apis/api/testing.googleapis.com/overview

select the project that you are using to run tests with Test Lab, and click "Enable".

Subadar answered 8/11, 2016 at 16:54 Comment(1)
I am a regular user of the Firebase (first added Analytics, than learned about Test Lab free tests) so I think it will help in most of the cases. Go through that link and add your app (your app name will be available for selecting in dialog box) after you add and refresh the page, make sure that you're in ENABLED state (on top there will be a button with text "Disable', which means you're enabled now)Kamerad
E
2

I had exactly the same problem and I check all the suggested solutions, like give admin rights, enable the testing API and it didn't work.

Lastly, I tried creating the tests from Android Studio. From Android Studio, go to Tools menu, then Firebase. I just followed the assistant and voilà, tests are running now!.

Emit answered 5/1, 2017 at 23:13 Comment(0)
W
2

If I upload an AAB file I will get this message but it works when using an APK.

Westsouthwest answered 23/1, 2019 at 18:45 Comment(1)
Same here, make sure you have V1 and V2 signatures.Hiram
X
0

I went to https://console.firebase.google.com/iam-admin/iam/iam-zero Selected my project and edited myself to be admin of everything (app engine,big query, cloud debugger)

Xanthus answered 8/11, 2016 at 22:13 Comment(0)
D
0

It depends of the payment plan that you have chosen. I have chosen the payment plan as Spark and I am able to test for 1 TEST at a time with the Test matrix getting generated successfully.

Demilune answered 9/11, 2016 at 9:59 Comment(0)
S
0

I had the same problem and the reason for the error message was in my case that I took an apk from Firebase App Distribution.

When I created the apk in Intellij / Android Studio and uploaded this one it worked.

Strickland answered 30/4, 2022 at 8:8 Comment(0)
E
0

In my case the problem was that I tried to upload obfuscated build

Elaboration answered 15/3 at 21:5 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.