android / android/testing-samples

UIScrollable.getChildByDescription - reload data while executed scrollToBeginning in the method

オープン
#347 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
9.3k
フォーク
3.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

When UIScrollable.getChildByDescription starts working, first it does scrollToBeginning (which provokes updating of the list if the list is at the beginning), and only then it scrolls down and finds the desired element. How can I disable updating the list if the list is already at the beginning?

scrollToBeginning:
https://android.googlesource.com/platform/frameworks/testing/+/f612e6a05f47b28ae0f5715545658c08dd759dd7/uiautomator/library/src/com/android/uiautomator/core/UiScrollable.java#210

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Issue は、リンクされた Android framework のソースにある UiScrollable.java を指し、getChildByDescription と scrollToBeginning を挙げています。まず scrollToBeginning を読み、次に getChildByDescription からの呼び出しを追跡してください。すでに先頭にあるリストが、対象要素の検索前に再読み込みされなければ完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
android, java
領域
mobile-dev, testing
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。