[英]google play dev console - how to run firebase test labs instrumentation tests directly?
i see on the firebase project site i that we are run android instrumentation tests when choosing test lab menu option: 我在Firebase项目站点上看到我在选择“ 测试实验室”菜单选项时正在运行android工具测试:
Now i am searching for a way to run test labs instrumentation tests directly from google play developer console at the time of new apk upload. 现在,我正在寻找一种在新的APK上传时直接从Google Play开发者控制台运行测试实验室仪器测试的方法。 I see that its automatically running a firebase robo test but i dont see an option where it can run my espresso instrumentation tests. 我看到它会自动运行firebase robo测试,但是我看不到可以运行espresso工具测试的选项。 Can you help me to find it? 你能帮我找到它吗? I dont want to have to go to open firebase test labs from the firebase console and run it from there as its a nuisance to the business. 我不想不得不从firebase控制台打开firebase测试实验室并从那里运行它,这对企业造成了麻烦。 Prefer it all in one place so business does not forget to run the instrumentation tests. 在一处都喜欢它,这样企业就不会忘记运行仪器测试。 I was actually thinking since the apk contains espresso test and production code that apks that google dev console would just run the test automatically but i dont see any provisions for that. 我实际上在想,因为apk包含espresso测试和生产代码,而Google开发者控制台将自动运行该apk,但是我没有看到任何相关规定。
if you check the docs here it says we should be able to click on run custom tests. 如果您在此处查看文档,它说我们应该能够单击运行自定义测试。 and indeed under the settings tab is a button for run custom tests. 实际上,在“设置”标签下是一个用于运行自定义测试的按钮。 But it just goes to firebase test labs. 但这只是去了Firebase测试实验室。 that means we have to manually upload a apk and test apk. 这意味着我们必须手动上传apk并测试apk。 Imagine the tests pass, then i again have to take that same apk and upload it to google play store. 想象一下测试通过了,然后我再次必须使用相同的apk并将其上传到Google Play商店。 this is inefficient doing the same thing twice. 两次做同一件事效率低下。
Optional: Create a custom test with Firebase Test Lab for Android With Firebase Test Lab, you can pay to select your device type and testing method to create custom tests. 可选:使用Android版Firebase测试实验室创建自定义测试使用Firebase测试实验室,您可以付费选择设备类型和测试方法来创建自定义测试。 Custom test results will be available in your Firebase console. 自定义测试结果将在Firebase控制台中提供。
To run a custom test: 要运行自定义测试:
Sign in to your Play Console. 登录到您的Play控制台。 Select an app. 选择一个应用。 Select Release 选择发布
management > Pre-launch report. 管理>发布前报告。 At the top of your screen, you'll see "Run Custom Tests" if you're able to run a custom test. 如果您能够运行自定义测试,则会在屏幕顶部看到“运行自定义测试”。 To begin, 开始,
select Get started. 选择开始。
Easy peasy. 十分简单。 Setup your Android Studio project on Firebase using the Firebase Assistant (Tools>Firebase). 使用Firebase助手(工具> Firebase)在Firebase上设置您的Android Studio项目。 Once done, run the tests and make sure that the device selection window opens up. 完成后,运行测试并确保打开设备选择窗口。 Open the Cloud Testing tab in that and run the tests. 在其中打开“云测试”选项卡,然后运行测试。
I don't have that setup right now, but it works. 我目前没有该设置,但可以。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.