pick and past some key images to the following. A famous test pyramid Development Lifecycle for UI Component Development Lifecycle for non-UI, especially unit level, Component Robolectric Espresso’s lifecycle Boundaries between M level and L level Previously, I’ve published blog for test strategy for mobile. This video is similar to the article 🙂 https://t.co/VCXspJxccw /…More
Category Archives: test automation
[iOS]Input multibyte strings with EarlGrey
Usually, we use grey_typeText to input words into text fields. On the other hand, we can’t input multibyte strings such as Japanese with the method. In this case, we can use grey_replaceText instead. https://github.com/google/EarlGrey/issues/31More
[automation]try Katalon
https://www.katalon.com/ これを少し触ってみた。 感想としては、これは https://docs.katalon.com/display/KD/Installation+and+Setup 以下の結果を参考にすると良さそう。 このツールの目的は、Selenium/Appiumを使ったテストを記述/管理する労力を減らそうというものぽい。特に、コードを自分で書かなくて良い状態で。 なので、以下の比較を見るとわかるのだけれど、例えば専属の自動化エンジニアを抱えるところとか、そういうところはターゲットではないように見える。 https://www.katalon.com/blog/comparison-automated-testing-tools/ Emerging solution with a small community. Feature set is still evolving. Lack of choices for scripting languages: only Java/Groovy is supported.More
Allure2が開発途中だった
Test reporterの生成で有名どころと言えばAllureがありますね。Yandexのメンバが開発しているやつです。 最近、そのv2が開発されていることを知りました。 https://github.com/allure-framework/allure2 Gradleを使っていたので、早速Forkして使ってみることに。 人が増えて、テスト結果を複数人で見る必要が出てきた時に、こういう結果レポートから情報をざっと見ることができるツールはとても重宝しますね。 受託系の人たちはこういうことを欲する一方、Web系の人はそうでもない人も多いように見えます。 ただ、実施時間など含めて色々とまとめて情報をみたい場合、このようなUIを持ったツールは役に立つものです。More
[iOS]Bluepill1.0.0
Bluepillの1.0.0がリリースされていたのでメモ。 https://github.com/linkedin/bluepill/releases/tag/v1.0.0 XCUITestサポートが少し前に完了し、1.0.0になったようですね。 https://github.com/plu/pxctest/releases こちらに比べて、さすがに企業としての投資が違うのか、開発がBluepillの方が活発だ… 後、Bluepillはテストケースを分割して実行したりと、そういったオプションも豊富で使い勝手が良いですね。 https://github.com/linkedin/bluepillMore
[java]Parameterized test with JUnit4.12
最近知ったのですが、JUnit4のParameterized.classに name 属性を付与できるようになったのですね。 https://github.com/junit-team/junit4/wiki/Parameterized-tests https://github.com/junit-team/junit4/wiki/Parameterized-tests#identify-individual-test-cases エラーの可読性などを見ると、組み合わせテスト用のDataPointsを使ってしまう面もありましたが、name属性が付与されるようになったことで、パラメータ化テストではParameterized.classをそのまま使えそう。 なるほどね…More
[iOS]run tests on simulators vol2
[iOS]Run multi simulators with FBSimulatorControl にも書いている、iOSシミュレータを1つのマシンで複数動作させるやつ。最近ではLinkedInからOSSが公開されましたね。Blogはこちら。スターも多く、さすがLinkedInという感じ。 社内で FBSimulatorControl ベースの複数シミュレータで実行する環境を作ろうと思っていたけれど、もっと素晴らしいものが世に出てきててオォォォという感じ…(私、価値出せてない…) ここら辺、実装能力が顕著に現れて私は本当にまだまだと思う一方です。。。 以下、以前からある類似のものをピックアップ。 類似 https://github.com/linkedin/bluepill https://github.com/plu/pxctest このeBayに属している方、とても価値出している… https://github.com/plu/parallel_ios_tests 以前はxctoolを使って並列実行をサンプルとして実施可能にしていたのですが、今はpxctestをベースにしているらしいですね https://github.com/facebook/FBSimulatorControl 過去のBlogにも書いやつ。最近のこれ系のツールはこれを基本としていることが多い。 これを実施していると、正直なところ並列実行できないCloud実行環境はイマイチですね。 ローカル環境強し。。。More
Architecture for GUI Testing(mobile)
In 2014, I talked about GUI testing architecture. 20141018 selenium appium_cookpad from Kazuaki Matsuo Recently, someone asks me about the architecture.So, I post the blog about it. The following flow means the architecture. I think this architecture is common if anyone uses libraries such as Cucmber. Scenario layer Describe scenarios. This layer depends on “User…More
[React][iOS][Android]Try ReactNative + TypeScript
以下を参考に、ReactNative + TypeScriptでアプリを書いてみる。 ReactNativeでは testID としてiOSはaccessibilityIdentifier、AndroidはView#setTag/getTagが使われている。(ただ、2016/9ごろにAndroidに対してresource idを付与できるようになったとあったので、ReactNativeでもresource idベースでも今後は大丈夫かも) 以下を参考にした。環境構築周り。 https://medium.com/react-weekly/react-native-and-typescript-ad57b7413ead#.el446eisr https://github.com/mrpatiwi/ReactNativeTS https://medium.com/react-weekly/react-native-and-typescript-ad57b7413ead#.3cdqtxsr2 https://github.com/KazuCocoa/MyFirstReactNativeTS ただ、上記のどれもそのままでは動作しなかったので、本格的にはまだ触っていない。More
Read Advanced-Test-Automation-Engineer-Syllabus
ソフトウェアテスト/品質界隈だとISTQBやJSTQBは耳にする機会が比較的多いのではないでしょうか。 その中で、以下のようにadvances test automation engineerのシラバスが公開されていたので読んでみました。ジックリとではないのですが、流してどのようなことが書かれているのかをざっと。 http://www.istqb.org/downloads/category/48-advanced-level-test-automation-engineer-documents.html 内容はテスト自動化の話をテストケースの話から実装時の設計の話、実行、レポートの話までと順に書いていました。実装時の設計のところらへんで、データ駆動とかキーワード駆動、プロセス駆動などの話があったりしました。 ざっと見た感じ、開発者からテスト側によっている人の方が読みやすい(想像しやすい)のかなーと思いました。More