久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

為登錄 Facebook 的 Android 應用編寫測試

Writing tests for an Android app that logs into Facebook(為登錄 Facebook 的 Android 應用編寫測試)
本文介紹了為登錄 Facebook 的 Android 應用編寫測試的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我的 Android 應用使用 FacebookSDK 進行登錄.這是第一個屏幕,除非您登錄,否則您無法進行任何操作.

My Android app uses FacebookSDK for login. It's the first screen, and you can't do anything unless you login.

我想編寫一些 Espresso 測試以在 Greenhouse 持續(xù)集成服務器上運行.

I want to write some Espresso tests to be ran on Greenhouse Continuous integration server.

我在 iOS 上搜索并找到了 FBSDKTestUsersManager,但在 Android 上沒有類似的東西.

I searched and I found FBSDKTestUsersManager on iOS, but nothing similar on Android.

What I plan to do is create a flavor of test and when that flavor is selected instead of a normal Facebook login button, I'd display a button that gets a test access token for the user, then brings them to the homepage的應用程序.但是,我不能這樣做,因為 Android 上不存在 FBSDKTestUsersManager.

What I plan to do is create a flavor of test and when that flavor is selected instead of a normal Facebook login button, I'd display a button that gets a test access token for the user, then brings them to the homepage of the app. However, I can't do that cause FBSDKTestUsersManager doesn't exist on Android.

有什么建議嗎?

推薦答案

解決方案是將 UIAutomator 與 Espresso for Android 一起參與您的測試.可以在測試環(huán)境下離開您的應用程序并在 Facebook 登錄對話框上執(zhí)行一些操作.類似的問題這里和我的博文.

The solution is to involve UIAutomator in your tests together with Espresso for Android. It will be possible to go outside of your app under test context and perform some actions on Facebook login dialog. Similar question here and the example in my blog post.

這篇關于為登錄 Facebook 的 Android 應用編寫測試的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

【網(wǎng)站聲明】本站部分內容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯(lián)系我們刪除處理,感謝您的支持!

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 91九色porny首页最多播放 | 欧美精品中文字幕久久二区 | 99精品99| 国产色婷婷精品综合在线播放 | 久久精品亚洲精品 | 日韩av一区在线观看 | 在线免费观看毛片 | 麻豆精品一区二区三区在线观看 | 精品国产乱码久久久久久闺蜜 | 视频三区 | 91久久综合亚洲鲁鲁五月天 | 久久久精品影院 | 91欧美激情一区二区三区成人 | 亚洲一区二区电影网 | 日韩av一二三区 | 久久伊人精品 | 国产三级一区二区 | 日韩一区在线观看视频 | 日韩一区二区三区精品 | 欧美一级网站 | 麻豆久久久久久久 | 一区二区免费在线观看 | 免费国产一区 | 国产免费xxx| 日本五月婷婷 | 精品视频在线免费观看 | 国产精品久久久久久久7777 | 午夜在线影院 | 午夜久久| av在线黄| 欧美精品福利视频 | 综合久久亚洲 | 久久久久国产一区二区三区 | 精品成人一区二区 | 亚洲欧美日韩在线不卡 | 五月婷婷亚洲 | 成人免费视频网站在线看 | 亚洲福利在线观看 | 中文字幕视频在线观看免费 | 久久久久国产精品午夜一区 | 欧美综合在线视频 |