Question

What I mean is automating test writing itself. Tester can perform some actions, they get recorded, and then can be used as a base for writing tests. I wasn't able to find any existing solutions, is it that hard to implement? Or did I miss something?

I mean it might be as simple as logging all touch/key events, and write tests using for example https://github.com/square/javawriter

UPD: I should've mentioned that I know of standard testing approaches:

  • UiAutomator
  • Roboelectric
  • Espresso (android-test-kit)

But that wasn't what I meant. Writing tests by hand is a pain, and I wander if this process can be simplified.

UPD1: If anyone stumbles apon this question, this is what I meant. It's non-free, so I'd gladly check out free/opensource analog.

Was it helpful?

Solution

You can try to use Appium (iOS/Android) which is free and has a feature that lets you record actions, and run them through. However this only works for UI functionality and any standard Unit tests will still need to be developed the standard way (manually). As a note, Appium is new (~1 year old) so there may still be bugs (such as not running in iOS devices with Xcode 5.0.1 +)

appium.io

I feel it's worthwhile to mention that appium doesn't require any modifications/additions to your android/iOS projects like a few of the other solutions I have found.

OTHER TIPS

Please Calash https://github.com/calabash which is open and compatible with both iOS and Android.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top