I’m using composer to handle instrumented tests. GrantPermissionRule has introduced for the andorid test support library, [Android]Checking Android Testing Support Library 1.0. The Rule work as @Rule in JUnit4. We’d like to clean screenshots every time. But we need some permissions to clean them. To achieve it, we can use PermissionRequester to get permissions. In…More
[iOS][Appium]Process Arguments by Appium for XCUITest, iOS
Today, I’d like to leave a tip. I’ve implemented test cases using this article for over 3 years. It helped us to control test environment more stable and fast. XCUITest can set process arguments for Instrumentation. According to https://github.com/appium/appium-xcuitest-driver#desired-capabilities, you can set processArguments in capability and the test app can get the value via ProcessInfo.…More
Read “Continuous Delivery with Spinnaker”
I read Continuous Delivery with Spinnaker to catch up with Spinnaker and the bases. Recent my profession is mobile, but I have some experience/knowledge of distributed systems since I studied the Byzantine General Problems in my university. And I also has caught up with network/tools/fundamentals associated with it. (Especially testing and monitoring topics.) You can…More
[Android]some mocking features work only on Android P+
One of my colleagues told me Mockk. The library is pure Kotlin mocking library. An interesting thing for me is Android instrumentation support. I had a question when I saw that why Android P was a limitation. Since it provide mocking feature for final classes / objects in instrumentation tests. I investigated a bit and…More
[iOS]xctestrunner by Google
Note for me. https://github.com/google/xctestrunner Runner written by Python. It helps running test commands.More
Create a PR to update outdated libraries by script
Updating outdated libraries is important. Longtime outdated libraries probably lead difficult updating libraries. Sometimes they have breaking changes. We can reduce the risk updating libraries frequent and keep them small size. Meanwhile, it’s difficult to catch up with ALL outdated libraries and updating them frequently. Since our works aren’t only updating them. Get outdated libraries…More
[Android]Change locale with Android O
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
[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
Read “A Practical Guide to Testing in DevOps”
A couple of weeks ago, I read A Practical Guide to Testing in DevOps The book explained and described DevOps x Testing with many references and keywords. you can see why people struggle to understand where testing fits in a model that doesn’t mention it at all. For me, testing fits at each and every…More