久久久久久久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問題)
主站蜘蛛池模板: 一区二区三区免费 | 97人人草| 三级视频在线观看 | 国产农村妇女精品一二区 | 久草中文在线 | 色资源av| 亚洲网一区| 色欧美日韩 | 成人精品在线视频 | 国产在线www | 亚洲性综合网 | 国产特黄一级 | 国内av在线| 国产精品一区二区视频 | 欧美乱做爰xxxⅹ久久久 | 欧美 日韩 在线播放 | 久久精品国产免费高清 | 日韩三级电影一区二区 | 999国产精品视频免费 | 请别相信他免费喜剧电影在线观看 | 久久久久久久久久久福利观看 | 91精品国产一区二区三区 | 一区二区精品电影 | 久草色播| 久久久999精品 | 亚洲人成人一区二区在线观看 | 精品国产一区二区三区久久久蜜月 | 999久久久久久久久 国产欧美在线观看 | 欧美性吧 | 国产精品电影网 | 精品国产乱码久久久久久闺蜜 | 国产精品久久国产精品 | 日韩在线三级 | 狠狠干天天干 | 国产日韩欧美中文 | 18av在线播放 | 国产激情片在线观看 | 久草视频网站 | 精品视频一区二区 | 久久国产精品一区二区 | 在线欧美视频 |