Mobile Automation testing Tools

来源:互联网 发布:诺基亚运行python 编辑:程序博客网 时间:2024/05/04 01:02
  引用自Ray的research                                                                                                                                                                              

1.Robotium

 1)Overview

  • Supporting platforms: Android
  • Robotium is a test framework created to make it easy to write powerful and robust automaticblack-boxtest cases for Android applications.
  • With the support of Robotium, test case developers can write function, system and acceptance test scenarios, spanning multiple Android activities.
  • Robotium has full support for Activities, Dialogs, Toasts, Menus and Context Menus.

2)How to Install Robotium:

  • Add the robotium-solo.jar, robotium-solo-javadoc.jar to the build path of your test project.
  • Eg:In Eclipse that is done by right clicking on the test project --> Properties --> Java Build Path --> Add (external) Jar.

3)Robotium’s Limitations

  • Robotium cannot support to test flash and web applications
  • Robotium API is process-oriented instead of object-oriented
  • Tied to one app process

2.TMTS(Taobao Mobile Test System)

1)Overview

  • Supporting platforms: Android and iOS
  • TMTS is a lightweight open source test automation framework developed by TaoBao
  • TMTS provides an easy way to perform UI automated testing.
  • TMTS API is object-oriented.

2)How to Install TMTS

  • It is as the same as Robotium, you just need to add the tmts.jar to the build path of your test project.
  • If you want to see the source code, you can import the tmtsjava project as a dependent project of your test project.

PS: check out code from http://code.taobao.org/svn/TMTS/trunk/android/tmtsjava

3) TMTS Limitations

  • It is not a mature framework
  • There is no reasonable timeout mechanism
  • It cannot support flash testing

3. Selenium WebDriver ( Android Driver, iPhone Driver)

1)Overview

  • Supporting platforms: Android and iOS.
  • WebDriver is a tool for automating web application testing.
  • WebDriver is not tied to any particular test framework, so it can be used equally well in a unit testing or from a plain old “main” method
  • Android and iOS drivers both use the RemoteWebDriver. They can be run on both emulator and real device.

2)There are two options available to run Android WebDriver tests:

l  Using the Android test framework

l  Using the remote WebDriver server

How to Install Android Test Framework

  • Download Android WebDriver, which is an SDK extra.
  • Steps: Open the Android SDK manager —> Available packages → Extras → Google → WebDriver

How to Install Remote Selenium Server

  • This approach has:
  • Client ——Consist of your typical Junit tests
  • Server ——WebDriver  APK

3)Selenium WebDriver Limitations

  • Selenium WebDriver cannot support to test flash

4.EggPlant

1)Overview

  • EggPlant delivers a robotic solution to mobile testing across all operating systems and devices.
  • Using RealVNC, generic VNC or emulators, eggPlant deploys patented intelligentimage recognitiontechnology to see any device display. This approach to test automation is easy to use, non-invasive and requires no special hardware.
  • EggPlant supports flash testing

2)How to Install EggPlant

  • Install EggPlant in your control machine.
  • Install a VNC viewer on your control machine
  • Install a VNC server on your system-under-test (SUT)

3)Eggplant’s Limitations

  • EggPlant is not a free tool
  • Eggplant is not an independent tool. It must depend on VNC to use
  • The scripts is not very flexible and its maintenance costs a lot.

 

Mobile Tools Comparison

 

原创粉丝点击