nalbion / robotium-maps Goto Github PK
View Code? Open in Web Editor NEWRobotium extension with map support
License: Apache License 2.0
Robotium extension with map support
License: Apache License 2.0
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.