The method of changing locale changes in Android O. https://github.com/KazuCocoa/DroidTestHelper/issues/22 https://github.com/KazuCocoa/DroidTestHelper/commit/eb8346c94a3f9edd87c0ace8e39d886cc92d72d5 Appium has already supported the change. https://github.com/appium/io.appium.settings/blob/dc2cb22e1a2cb565fa49f0c56d00c604867554b5/app/src/main/java/io/appium/settings/handlers/LocaleSettingHandler.java#L57More
Tag Archives: android
[Android]Jetpack for test related environments
I’ve bet Truth since [Android]Checking Android Testing Support Library 1.0. I encountered an issue using AssertJ with ATSL 1.x and I talked about it in https://www.slideshare.net/KazuMatsu/20171215-andoirdtestnight before. In a talk https://www.youtube.com/watch?v=wYMIadv9iF8 , Google starts to provide Jetpack. The pack has various libraries and test related libraries as well. For example, Espresso. What I surprised is…More
[Android]Use apkanalyzer to get apk data
It’s important to make configurations programmable to manage them codebase and enhance automation. Android has provided apkanalyzer to analyse test target apks easily. Before the command, we use aapt for example. But with the analyzer command, we can get apk related data from target release apks easily. https://developer.android.com/studio/command-line/apkanalyzer The below is a simple wrapper for…More
[Android]New release of ATSL and new feature of composer
Lately, I’ve been using composer to run instrumented tests in the Android world. ([Android]composer and swarmer) Today, I just found an interesting PR. => https://github.com/gojuno/composer/pull/138 The PR is emulating the behaviour like AndroidTestOrchestrator. As you know, the orchestrator has some limitations and it includes Parameterized tests aren’t currently supported. It is JUnit4’s feature. So, the…More
Watching FB’s Android at Scale
I watched FB’s Android at Scale: https://code.facebook.com/posts/1958159731104103/android-scale-2018-recap/ I put my memo which I got interested in. Automated Testing Practices @ Scale: Waseem Ahmad, Facebook I know almost tips and same thought. Facebook have 10~15 UI changes a day So, they run UI related test hourly Bisect changes to commit and notify another UI testing things…More
Read “Android アプリ設計パターン入門”
Androidアプリの設計パターンを読んだ。 自身の頭の整理、という感じですね。 個人的にはMVP/MVVMの話が一番よかったです。Activity/Fragmentやその他のもの。 Registoryレイヤはやっぱり色々なアーキテクチャでは安定していますが、PresenterやViewModelとかは今どうなのか、というところを把握するために、特に、 私自身、簡単な話だったり既存コードがMVP/MVVMとか、そこらへんの話はついていけるのですが、スクラッチで書けと言われるとちょっと参考を引っ張ってこないとサラでは書けないレベル。この書籍で、だいぶ頭の中の整理ができた気がします。 iOSもObjcから最近リリースされたし、mobile appのアーキテクチャは少し基盤ができた感じですかね。 https://www.objc.io/books/More
[Android][Java][JUnit]Some links for JUnit 5
Discussed JUnit 4 and JUnit 5, Parameterized Test and Dynamic Test styles, Android/Kotlin — KazuCocoa (@Kazu_cocoa) February 1, 2018 I discussed JUnit 5 with my team. I put some links and quotes in this post we discussed mainly then. Core principle https://github.com/junit-team/junit5/wiki/Core-Principles Parameterized tests https://github.com/junit-team/junit5/wiki/Core-Principles#parameterized-tests Dynamic Test http://www.baeldung.com/junit5-dynamic-tests The DynamicTests are executed differently than the…More
[Android]Custom Lint for Android x Kotlin
We can implement some custom lint for Kotlin code. So, I put an example the custom lint. Some helpful links. http://tools.android.com/tips/lint-custom-rules http://tools.android.com/tips/lint/writing-a-lint-check You can also find examples in the GitHub repositories. Let’s try to implement custom lint and reduce easy mistake from your projects. Gradle Detector Registry check Add the lines on your gradle dependencies.…More
[Appium][Android]Scrolling to an element
Just for my memo When we scroll views using Appium, then we have two ways to achieve it. 1: Use UiScrollable The below method is implemented in Ruby client. This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an…More
[Android]Run orchestrator 1.0.0
Download apks from maven: orchestrator-1.0.0.apk test-services-1.0.0.apk And install them and start the process like https://developer.android.com/training/testing/junit-runner.html If you have a custom runner, you can replace android.support.test.runner.AndroidJUnitRunner to yours. After the above, you can start instrumentation tests via the orchestration layer.More