Below are not new, but famous tools to achieve screenshot testing on iOS. It helps check view layer. https://github.com/mozilla-mobile/MappaMundi https://github.com/uber/ios-snapshot-test-case https://github.com/pointfreeco/swift-snapshot-testing We say “snapshot” testing sometimes, but “snapshot” is not only for screenshot comparison check. So, screenshot testing is more proper in this time, I think. I like swift-snapshot-testing since it has an interesting page,…More
Tag Archives: automation
[iOS]WebDriver for Safari in iOS 13, finally
WebDriver is Coming to Safari in iOS 13 has been announced, and finally it supports iOS!! Currently, ios_webkit_debug_prozy is the only way to automate Safari browser on iOS. Appium also use it to handle Safari for iOS devices. The library has been maintained by Google. I believe many developers has hoped to support such automation…More
[Android] A tip to automate push notification on Android via adb
This tip is not new. I implemented this maybe around five years ago. In general, push notification related feature is difficult to automate since it requires external service. We must send a request to push notification server and should wait for the notification. If we focused on Android Application, we could make this kind of…More
[Appium][Azure]Build Appium Test Running environment on Azure Pipeline
Azure provide macOS instance for Android CI environment. On the instance, we can create x86 architecture Android emulator. The emulator is faster than arm’s one. Then, we can run tests which is necessary to launch emulator instances faster. On ruby_lib_core project, I built the environment for Android and iOS. The project already has over 50…More
[idb][iOS] idb renamed from FBSimulatorControl
FB has been renamed from FBSimulatorControl to idb as https://github.com/facebook/idb which also replaces WebDriverAgent with it, according to https://github.com/facebook/idb/issues/526. idb wraps handling simulators and real devices. They also published brilliant documentation https://www.fbidb.io/ . It has a part about how idb works for xctest framework. https://www.fbidb.io/docs/test_execution In the page, we can see essential concepts/words for XCUITests.…More
[Android] A note for jetpack benchmark feature in Android
At Google I/O, benchmarking feature has been released. The video is this. In 2015, I wrote an article, titled [iOS][Swift]XCTestでパフォーマンスを計測したり、処理をwaitする. It was about how to measure performance in XCTest. It was able to use for both non-UI and UI tests. As the similar way, we finally can get the way to measure performance on Android…More
[Android] Updated the official Fundamentals of Testing doc
Fundamentals of Testing has been updated based on AndroidX series. As I have proposed similar pyramid for a long time to friends of mine and colleagues. e.g. [English]Test automation design for Cookpad’s global Android app, 2018, [Japanese]Android/iOSアプリのテストの区分戦略, 2016 In the article, below is mapped. Local unit tests => small tests Instrumented unit tests => medium tests…More
[Android][Appium] Page Source of Jetpack Compose
Google announced Jetpack Compose to simplify and programable UI development. I thought it was like Flutter then 🙂 I wondered if we can get view hierarchy correctly via the feature since if the feature is like Flutter, it is not on full Android view system. Espresso and UiAutomator probably cannot find element provided by it.…More
[iOS]Xcode returns an authorization error
When I ran xcodebuild commands, I got an error which was about Install Failed: Error Domain=DVTDownloadableErrors Code=3 “The authorization was denied since no user interaction was possible.” UserInfo={AuthorizationErrorCode=-60007, NSLocalizedDescription=The authorization was denied since no user interaction was possible.} Then, xcodebuild -checkFirstLaunchStatus returns 69 status code. Maybe, it can fix with xcodebuild -runFirstLaunch, but I haven’t…More
[Appium]Re-use existing WDA in create session command
In [Appium] Prevent building WDA with useXctestrunFile or usePrebuiltWDA, I explained how to skip re-building WDA every session in order to make test setup faster. I would like to show a “cache” feature for WDA in Appium. After this PR , the function will work correctly. The PR will be in 1.12.1 or 1.13.0. As…More