Android : Test Frameworks For Phone
Aug 13, 2010I am new to Android test frameworks ,Would like to know the differences between existing test frameworks : Monkey , CTS ,Instrumentation Framework & Robotium ?
View 1 RepliesI am new to Android test frameworks ,Would like to know the differences between existing test frameworks : Monkey , CTS ,Instrumentation Framework & Robotium ?
View 1 RepliesI've been using the ActivityGroup class in my project for some time now but today I encountered a bug in the framework (http:// code.google.com/p/android/issues/detail?id=10083) that's preventing me from using the destroyActivity method. The fix for the bug is simple and I'm wondering if its safe to just fix the bug and copy the ActivityGroup (and dependent classes) into my project and use it locally instead of from the Android frameworks?In general, would modifying Android frameworks and using them locally in a project break future compatibility or backfire in other ways?
View 4 Replies View RelatedI am looking for resources to develop HTML5 apps for iphone primarily. Are their frameworks and tools that I can use to get started? I am looking for: Javascript frameworks that help with UI layout Touch based controls for phones Articles on iphone development, best practices, etc.I searched stackoverflow and was not able to come up with a good list of resources. I am looking for examples like these http://jqtouch.com/
View 4 Replies View RelatedThere is this xml file under frameworks/base.
/frameworks/base/core/res/res/layout/simple_dropdown_item_2line.xml
How can I inflate that in my own android application?
I was recently hired to work on mobile Ajax applications. This is the first time I do this, as I always worked on usual Ajax sites on common web browsers. I'd need a framework and possibly a toolkit that works both on IPhone and Android... capable of abstracting the mobile browser the same way jQuery does with desktop browsers. I've seen JQTOUCH, but it seems very much IPhone oriented. I'd like something more cross platform and lighter. Do you have any idea?
View 1 Replies View RelatedI'm writing an Android JUnit test and want to copy/reset a test fixture file (it's an SQLite database file.) If I were within the main application, I know I could just place the file in the assets directory and use getResources().getAssets().open(sourceFile).However, this API appears to be unavailable from the ActivityInstrumentationTestCase2 class.Is there an easy way to copy a file over from the testing PC, or should I just keep a fresh copy of a test fixture on the device and copy it over a temporary file?
View 2 Replies View RelatedWould you be able to implement another different framework-res.apk into one of the custom roms? If so I have the galaxy s framework! If some devs want to take over, my email is . PM me and ill send it to you!
View 3 Replies View RelatedI want to add functionality to an app to easily apply filters and such to images. Examples for the kinds of filters/effect I am looking for are Dithering, Blur, Black & White, Gray Scale, Invert Color, etc.
know any frameworks/libs that provide this functionality to be easily used in an App? Or a source that lists frameworks for Android.
I was only able to find a list of Android Libraries provided by OpenIntents.
We have a great software foundation based on Microsoft MVC 2, Entity Framework 4, Repositories, POCOs, Service and Control layers, C# Views, JQuery and html. Firefox pulls 100 records in 250 ms, drops it in to a template, links the data to the markup, and we sit back and drink margaritas.
Boss walks in and says he wants an iPhone app. I bet we need an Android app too.
What frameworks could we use to easily jump from our Microsoft comfort zone in to the wide, wide world of the Apple iPhone / iPad, along with a follow-up Android baby.
I imagine we could use our JSON controller methods to communicate. Is there some type of a client side JavaScript consuming app framework we could get a reasonable Website like interface re-working? They didn't like the idea of simply running the whole thing in Safari, which works pretty well.
Needs:
Send and receive JSON objects
Some type of template engine so we can pair up objects to markup, or at least some way to separate design from programming
Something similar to JQuery would be nice
A good editor with auto-complete and highlighting, something that compares to VS2010
It took us two years to incorporate design patterns, Agile methods, and Domain Driven concepts using MVC and Javascript. We may have two or three months to re-produce the same functions.
I am using ActivityInstrumentationTestCase2 to do some test for an activity. I get a button in the setUp() method like this: protected void setUp() throws Exception {super.setUp(); act = getActivity(); btn = Button)act.find ViewById ( R.id.bike_button ); // this button has been defined in layout} Then I use this button to perform a click in a test method like this: public void testBikeButton(){ //click the bike button btn.performClick();}
View 7 Replies View RelatedI have never used JUnit before, and now I'm trying to set it up on an Android project.My project under test is fairly complex, including some JNI, but my test project, at the moment, is completely trivial. I have found many examples (that look totally different) online of how to make a test project, but it seems that no matter which one I follow, I get the same results.Here's my JUnit project code:package com.mycompany.myproject.test;
import android.test.AndroidTestCase;public class SimpleTestCaseExample extends Android TestCase {public void test_testOne() {fail("Just Always Fail");When I run, I see the following in Logcat:
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=test_testOne
stdout INSTRUMENTATION_STATUS_CODE: 0
stdout INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
stdout INSTRUMENTATION_STATUS: current=2
stdout INSTRUMENTATION_STATUS: class=com.mycompany.myproject.test.SimpleTestCaseExample
stdout INSTRUMENTATION_STATUS: stream=
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=testAndroidTestCaseSetupProperly
stdout INSTRUMENTATION_STATUS_CODE: 1
stdout INSTRUMENTATION_STATUS: id=InstrumentationTestRunner
stdout INSTRUMENTATION_STATUS: current=2
stdout INSTRUMENTATION_STATUS: class=com.mycompany.myproject.test.SimpleTestCaseExample
stdout INSTRUMENTATION_STATUS: stream=.
stdout INSTRUMENTATION_STATUS: numtests=2
stdout INSTRUMENTATION_STATUS: test=testAndroidTestCaseSetupProperly
stdout INSTRUMENTATION_STATUS_CODE: 0
stdout INSTRUMENTATION_RESULT: stream=
stdout Test results for InstrumentationTestRunner=..
stdout Time: 0.07
stdout OK (2 tests)
stdout INSTRUMENTATION_CODE: -1
But, I get the following in the Console:Launching instrumentation android.test. Instrumentation TestRunner on device emulator-5554 Collecting test information Test run failed: No test results I have tried a variety of different things, messing with the basic TestCase class, or the TestSuite class, or a variety of other options. I tried to just go for the most trivial example because I'm really still trying to learn how this works.Whatever I try, I see this error.
I'm working on a school project and I'm researching testing possibilities for Android applications. On this page: http: // developer . android . com/ resources / tutorials /testing /hello android. Google writes about a unit test. Is this really a unit test? A Unit test will not integrate all classes and will not test in his context. So my opinion is it is not a Unit Test but an Integration Test.
View 7 Replies View RelatedOne more video about the fancy touchscreen of the Droid X. This one has happier results! Check it out at the link below.Droid X Touchscreen Test See you later. you'll know why this post is short when you read the blog. running downstairs!
View 5 Replies View RelatedI have a project (that compiles and runs in the emulator.) I have a test project that tests part of this project. This test project also compiles with no problems, but when I try to run (test) it in the emulator, I get a NoClassDefFoundError exception on one of the classes my test class tests (I hope that made sense!) when it starts to run in the emulator. This is coming out of the adb log. I looked in the bin directory (of the test project) for the missing class, but could not find it... Should it be there? I found no reference (apk, etc) of the project I am trying to test either in the test projects bin directory. How does the test project get the classes it needs to test against (in the classpath, I assume.) How do the tested classes get moved to the emulator? I did try running the app before testing, so I know it is installed and runs correctly. BTW, I am using netbeans with the nbandroid plugin.
View 1 Replies View RelatedI plan to submit an app for the ADC II. I wanted to know if it is required that I test my app on the Andoird Dev Phone? If it runs on the emulator is it safe to assume that it runs on an actual phone? The phone is pretty costly and will be useless for me after the contest. Is there a place I can rent the Dev phone?
View 7 Replies View RelatedWhere do I copy the apk file on the Motorola Droid? Which directory? Are there any possible issues I need to be careful of, it's also my personal phone.
View 3 Replies View RelatedI am unable to integrate Junit with Android. I am using Junit 3, I have also tried Junit4.
package* com.android.test;
import* com.android.MyActivity;
import* android.app.Activity; *
import* android.test.ActivityInstrumentationTestCase2;
public* *class* TestMyView *extends *
ActivityInstrumentationTestCase2<MyActivity> {
Activity myActivity ;
*public* TestMyView(String pkg, Class<MyActivity> activityClass) {
*super*(pkg, activityClass);
myActivity = getActivity() ;
I've just released Squibble Lite, a game i've been developing for android. I've had access to a nexus1, a desire, and a samsung galaxy s to test on. Unfortunately, these are all pretty fast phones with 1ghz processors. Just wondering if someone with a 600mhz phone would be willing to give it a go, and let me know how it plays performance- wise?
View 6 Replies View RelatedI'm planning a mini road trip this weekend and I want to use it as a way to test out the GPS capabilities on the phone? I'd like to be able to replace my Magellan entirely. The maps are a bit out of date and it would be nice to have one less device to carry around.
I tried both NDrive and GMaps. I was unimpressed with both of them. Both were much more difficult to program than my Magellan when I tried programming them manually. NDrive was confusing to set up in the first place. GMaps worked quite nicely with voice programming, but I have no clue what commands I've got beyond that. NDrive didn't support this at all. On my Magellan I can give voice commands and have it pull up the POIs at the next exit so I can see not only where the next gas station is, but where the next gas station is after that. (Extremely useful if you're on an eighth of a tank and don't know if you must stop at this exit or if there's another gas station 2 miles down the road.) The voice for GMaps is extremely annoying.
I prefer free of course, but I'm more than willing to pay for a quality app if I can test it out before hand and make sure it does what I need it to do. Ideally I want the following:
Voice programming - I want to be able to say "Go to 1234 Main st" or something similar and it go.
Easy manual programming - I want to be able to easily enter destinations manually.
Trip planning - I want to be able to program multiple destinations. I recently went to Chicago. With my Magellan, I was able to program all the places I wanted to go before hand so I just had to click on the tourist trap I wanted to see and it directed me there.
Voice activation while driving - I drive alone most times. I'd like to be able to not have to take my eyes/attention off the road to search for the closest fast food place or gas station.
Integration with the other parts of the OS - I want it to do the standard things like mute the music when it gives voice prompts and turn it back up when it's done, mute voice prompts when the phone rings, etc. Any ideas on apps that will do all this?
When we build and install the test application from eclipse, it is able to launch the test application and show the running of tests. However, we wish to launch the test application from the phone directly. Is this possible. As test application does not have any activity it does not have main icon displayed. Could any one point us to right approach this regards Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com -Mobile Enterprise Applications Development Excellence
View 5 Replies View RelatedHow can I test an application for performance in Android? What is the support provided in Android and how do I use it?
View 2 Replies View RelatedI cannot test build Android application on my HTC Evo at all. I searched online for answers, but nothing helped, including updating all the software. The Eclipse launched Emulator doesn't recognize it as an external device either.
View 1 Replies View RelatedWe are building a complex Android application consisting of many screens and workflows spread across many Activities. Our workflows are similar to what you might see on a Bank's ATM machine, for example, there is an Activity to login in that transitions to a main menu Activity which can transition to other activities based on the user's choices. Since we have so many workflows we need to create automated tests that span multiple activities so we can test a workflow from end to end. For example, using the ATM example, we would want to enter a valid PIN, verify that sends us to the main menu, choose withdraw cash, verify that we are on the withdraw cash screen, etc., etc., and eventually find ourselves back on the main menu or "logged" out. We've toyed with the test APIs that come with Android (e.g. ActivityInstrumentationTestCase2) and also with Positron, but neither seem capable of testing beyond the bounds of a single Activity, and while we can find some utility in these tools for some unit testing, they won't meet our needs for testing scenarios that cut across multiple Activities. We are open to an xUnit framework, scripting, GUI recorders/playbacks, etc. and would appreciate any advice.
View 9 Replies View RelatedSorry if this is a bit of a vague question, however im struggling to find a single solid example on how to do unit testing (isolated testing) with Android. So one project contains models and logic, then another project contains tests for said library. There is no front end or UI, so I want to do the bare minimum to just be able to test that my methods all work in isolation.
View 1 Replies View RelatedI am new to android development. Why is it that the screen looks great on a test avd but when I deploy the app to my Droid everything is off and really small?
View 3 Replies View RelatedI am a tester, is there a way to control the Android phone or do the automated testing using a remote PC? Or how can I dev such a automted tools, Use which technology? thanks.
View 14 Replies View RelatedI'm trying to test a test app I developed on android 2.2 sdk on my htc phone with Froyo on it (2.2). In the emulator it works fine, when I export as unsigned app and try to install on the phone, it doesn't allow me, just telling me 'application non installed'. The phone has the settings to accept installation of non android application, so I'm not sure why I can't test on it. Is it because it's not signed?
View 2 Replies View RelatedI would like to start doing some Android development, and would like a cheap device to deploy apps to, just for testing and demo purposes. Is it possible to deploy apps to, for instance, an Archos 28? I don't know much about Android development yet, and haven't found a good answer to this question elsewhere.
View 1 Replies View RelatedI wanted to test a sample Bluetooth application in android emulator, then i come to know that the android emulator does not have bluetooth support.I read some thing connect external USB Bluetooth dongle to the Mechine and bridge that dongle to android emulator.But they didn't provided the steps.Now i plugged the USB Bluetooth dongle to my System and i do not how to bridge that with android emulator.Is there any way to do this?.
View 5 Replies View RelatedWe have been working on making a Android Application. The issue we are facing is the support across various Handsets, which actually are increasing by everyday. Our application deals with Android Calendar. Does anyone have idea about as to how we can span across the various handsets, is there a way where we can give types of handsets supported, or MARKET can handle it on its own?
View 1 Replies View Related