from https://developer.apple.com/videos/play/wwdc2017/505/ If you’d like to test with a large number of photos, you can generate dummy photos by https://developer.apple.com/sample-code/wwdc/2017/Creating-Large-Photo-Libraries-for-Testing.zip . Download it and run on the target device. The app is presented in https://developer.apple.com/videos/play/wwdc2017/505/ . https://developer.apple.com/documentation/photos/phassetMore
Tag Archives: automation
[iOS]What’s new Testingを見た
What’s new Testingを見た。 https://developer.apple.com/videos/play/wwdc2017/409/ 見ている途中でいくつかメモしたので、その記録として… multiple appのテスト、URLを引数で与えることできるのね Accessibility Dataのところで説明しているsnapshot、WebDriverAgentが使っているやつぽいな おー。いちいちsnapshot取得する必要がなくなるのか。実行時間改善しそう 要素の検索で全捜査でなくて最初にマッチしたものだけさっと返すようにした、という話だけれど、ようやくという感じ。 ここら辺は元からそうなのでそうよねという感じだ。 ここはどこまで厳密に書くかはどれだけ内部実装と結合を強くするかの問題ですね。Espressoでも同じ問題をもつ。 地味に嬉しい Activity styleの書き方、Cucmberとかイメージすると良さそう。stepsにいろんな処理を入れて、シナリオはstepsを並べて記述するような感じが使い方として近そうだ。 非同期の奴も良さそう。XCTestなので、XCUITestでも使えるし。 snapshotのところはほんといろんな3rd partyも恩恵受けるだろうし、良いことづくしな気がする。けれど、これはXcode8でないと使えないOSテストするときは恩恵受けられないので、完全に恩恵を教授できるのは数年後かな… Xcode9のいくつかの機能、Xcode9以前でも使えると恩恵大きくて良いな…More
[ReactNative][Test]Detox instead of Appium
2017/06/08現在 過去、ReactNativeに対するUITestに関して書いていたのですが、今の段階ではAppiumよりはDetoxを使うほうが、JSを経由したテストツールとしては良さそう https://github.com/wix/detox EarlGreyも参考にしている所とかあり、より安定したUIテストを実施するには現実的な気がします。 Androidのサポートも計画されているので、必要に応じてコミットしたいですね。 参考: [ReactNative][Appium]testIDの振られ方More
Netflixの複雑なマイクロサービスに対するテスト自動化
とても面白い。 Netflixの、マイクロサービス環境下におけるテストの複雑さを解決しようと取り組んでいたことの内容と、その1年の成果が書かれている。 here 読んでいてもとても面白く、テストエンジニアという立場からすると純粋にとても挑戦的に面白い内容だと思った。 また、社内の利用をより簡単に、利用者に負担をかけない取り組みも良いですね。 カッコ良い。More
[iOS][EarlGrey]Run tests quickly
Small, small tips to enhance conducting speed for EarlGrey. In many cases, iOS can’t handle animation speed such as Android even UI Test cases. EarlGrey available changing animation speed except for UIScrollView. here https://github.com/google/EarlGrey/blob/master/docs/faq.md In XCUITest case:More
Watch “Test-Driven Development on Android with the Android Testing Support Library”
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
[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
[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
[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