Git Product home page Git Product logo

robotium-maps's Introduction

robotium-maps
=============

This is an extension to the robotium project and provides testing support for maps on Android.

The Android maps API is not available through maven, you'll have to install it into your own repository:

	mvn install:install-file -Dfile="%ANDROID_HOME%/add-ons/addon-google_apis-google-15/libs/maps.jar" -DgroupId=com.google.android.maps -DartifactId=maps -Dversion=4.0.3 -Dpackaging=jar


The project home page is at http://www.robotium.org/
The robotium source code is available at https://github.com/jayway/robotium

robotium-maps's People

Stargazers

Pablo Rueda avatar Nitish avatar Wei Wu avatar Nicholas Albion avatar Fred Grott avatar

Watchers

Nicholas Albion avatar  avatar  avatar

Forkers

staroud-android

robotium-maps's Issues

Black box testing Google Map

Hello,
I was trying to get GoogleMap object in black box testing. The application and robotium solo test re-signed the same key. For getting googlemap obj I use the following code

FragmentActivity = fragmentActivity = (FragmentActivity)solo.getCurrentActivity();
GoogleMap map = ((SupportMapFragment) fragmentActivity.getSupportFragmentManager().findFragmentByTag(tag)).getMap();

But application doesn't launch and in logcat I see following:

No static method D(Landroid/content/Context;)
V in class Lcom/google/android/gms/common/GooglePlayServicesUtil; or its super classes (declaration of 'com.google.android.gms.common.GooglePlayServicesUtil' appears in /data/app/com.via.rider.solo-1/base.apk)
java.lang.NoSuchMethodError: No static method D(Landroid/content/Context;)
V in class Lcom/google/android/gms/common/GooglePlayServicesUtil; or its super classes (declaration of 'com.google.android.gms.common.GooglePlayServicesUtil' appears in /data/app/com.via.rider.solo-1/base.apk)
E/AsyncTaskServiceImpl﹕ Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
            at com.google.android.gms.gass.a.a.computeSerializedSize(SourceFile:128)
            at com.google.protobuf.nano.k.getSerializedSize(SourceFile:65)
            at com.google.protobuf.nano.k.toByteArray(SourceFile:100)

Perhaps, anybody know how can get the object of googlemap via black box testing.
Thanks.

Best regards,
Nikolai

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.