Read https://github.com/appium/appium-remote-debugger/blob/master/development-notes.md Once you could connect to the socket successfully, like below dump appears. com.apple.testmanagerd is testmanagerd. com.apple.CoreSimulator.SimDevice is simulators. Then, you can observe their exact communication protocol.More
Tag Archives: automation
[Linux] note for Linux Desktop automation
I have experienced https://github.com/ldtp/ldtp2 a bit before. https://gitlab.com/dogtail/dogtail is a new one I found recently.More
[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
[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
[WebDriver]Roku WebDriver
I found an interesting project by Roku. They provides OS for TV. I haven’t used them, but I found their interesting blog post. https://blog.roku.com/developer/automated-channel-testing https://developer.roku.com/en-gb/docs/developer-program/dev-tools/automated-channel-testing/automated-testing-overview.md It is very impressive the movement to provide well used/known protocol to developers to help their work.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
[iOS][safaridriver] man safaridriver
man safaridriver provides us what feature we can get by the command. Below is a note what capabilities are available for us. (Please ensure what capabilities etc are available on your target platform before using them.) My environment was macOS 10.14.6. Session Creation browserName, browserVersion, platformName, safari:platformVersion, safari:platformBuildVersion, safari:useSimulator, safari:deviceType, safari:deviceName, safari:deviceUDID Other safari:automaticInspection, safari:automaticProfiling,…More
[Appium][Android] background process restrictions
We recently got an issue about stopping background process, uiautomator2-server. I knew several limitations/restrictions for such background process on newer Android versions, but we had not got general issues by such features so far. The VIVO devices have customised OS based on Android OS. So, definitely, we can say the series is Android, but not…More
[iOS][XCTest][Appium]Slow type speed in iOS 13 under XCUIElementTypeWebView elements inside UIWebView
I found slow send keys happened on XCTest framework layer. https://github.com/appium/appium/issues/13455#issuecomment-544072750 It took 5 sec every key type. It happened only elements under XCUIElementTypeWebView type. This happened only on iOS 13. Quick workaround is typing keyboard directly. It means find keys by find element and tap it one by one. Then, it has no such…More
[Appium][iOS] Automate split screen by iPad OS
iPad OS has been released. On the OS, we can use split screen feature to handle multiple apps on the screen. In this case, there are multiple active apps on the screen. Appium 1.15.0 has defaultActiveApplication settings API to handle such case. You can handle on of them specifying the app as defaultActiveApplication. Below is…More