[WebKit] WebDriver Commands/Inspector commands

Appium Safari remote debugger communicates with Safari via inspector by WebKit. I’d have liked to catch up with WebDriver and relevant automation stuff. Let me leave a note for me as a pointer for them here. WebDriver https://github.com/WebKit/webkit/tree/master/Source/WebDriver Commands https://github.com/WebKit/webkit/blob/master/Source/WebDriver/WebDriverService.cpp Inspector protocol https://github.com/WebKit/webkit/tree/master/Source/JavaScriptCore/inspector/protocol BTW, the WebKit repository has a tool for testing, based on WebDriver…More

[Appium] Send CDP commands to chrome over Appium

I’ve added a route to send CDP command to Chromedriver. CDP stands for Chrome Devtools Protocol. It provides commands to handle a browser via the protocol. Some commands can be alternatives to WebDriver spec, but they have their own more useful commands. It is available over WebSocket. You can find CDP clients in the internet,…More

[WebDriver]innerWidth/innerHeight and outerWidth/outerHeight in WebDriver

“x“: WindowProxy’s screenX attribute. “y“: WindowProxy’s screenY attribute. “width“: WindowProxy’s outerWidth attribute. “height“: WindowProxy’s outerHeight attribute. https://www.w3.org/TR/webdriver/#resizing-and-positioning-windows The Get Window Rect command returns the size and position on the screen of the operating system window corresponding to the current top-level browsing context. https://www.w3.org/TR/webdriver/#get-window-rect Interesting. The get window rect command returns outer stuff. The actual screenshot size is the inner one like:More

[iOS]Xcode 11.4 new interesting features for automation

This article is a note for me in Xcode 11.4 https://developer.apple.com/documentation/xcode_release_notes/xcode_11_4_beta_release_notes/ Simulate push notification xcrun simctl push com.example.my-app ExamplePush.apns Like Android’s adb command, finally, we can simulate push notification on the local!! The local execution helped me so much when I achieved automation. Handle privacy permissions xcrun simctl privacy grant photos com.example.app, xcrun simctl privacy…More

“iOSテスト全書”を書きました

書籍を書きました。 iOSテスト全書 著者: 松尾 和昭,細沼 祐介,田中 賢治,平田 敏之,玉城 信悟, 製本版,電子版 PEAKSで購入する PEAKSから発売されている今までの書籍も拝見していますが、いずれもよくできていること、周りの期待感も高いこともあり、はじめに企画への参画を打診された時にどうしようかと悩んだことを覚えています。 iOSに対するわたしの持ち札はiOS全般のテストツールや、経験を含めた深さでいうとUIテストに関わる範囲です。あと、ソフトウェアテストや品質に関わる専門性のところでした。Appiumというネイティブアプリを主な対象としたOSSの自動化ツール開発も行っているので、テストツール側の挙動に対する知見なども持っていました。 結果、蓋をあけると1章と8章を書きました。そのほかの章は、主には概念的な話やツール、XCUITest付近でいうとちょっと突っ込んだところまで執筆時にレビューに参加したりしていました。8章では、XCUITestの内部挙動のような話にも踏み込もうと思ったのですが、文量や初学者という対象読者を考えるとXCTestツール近辺の知見を最低限要求する事になるので、発展的な内容に繋がるような言及は止めました。(例えばこんな付近の話) 個人的な想いとしては、ツールの使い方よりも基礎となる話をしるきっかけになって欲しいと思っていたので、1章も長くならないようにしつつも、ある程度話が飛ばされる方面の内容を文章に組み込んでみました。”人は間違える”という話や自動化に進んでいく話とかですね。同様の内容は数年前に社内ブログで書いたことがあるのですが、全般的に反応がよかったためです。”テスト技法”などに踏み込むときも、書籍などから辿ることもできるように。ここら辺はAndroidテスト全書にはない内容も含まれるので、Androidテスト全書購入者でも楽しむことができるかと思います。 ちなみに、他の章でもXCTest、XCTest(UI)などの話やそれらを使ったいくつかのテストコードの書き方、CI/CD環境の構築話もあります。iOSのテストに関わる入門書という位置づけでも、ツールの話だけではなく考え方も散りばめられているのでお勧めできる内容かなと思っています。 それでは、Happy Testing 🙂More