Androidアプリの自動テストツール「Magneto」
Magnetoはpython製のAndroidアプリの自動テストツールだ。
まだリリースされたばかりのようでドキュメントが整備されていないようだが、下記のような形でテストを書きCLIからコマンドを実行すると テストが実行される。
def test_example(self): # scroll fast to bottom self.magneto(scrollable=True).fling() # get element by id el = self.magneto(text=ids.foo) # assert that the element exists in the current view Assert.true(el.exists)
詳しくは動画を見るとわかりやすい。