Android :: Need To Run Skia_bench / Surfaceflinger Tests
Sep 19, 2010
I need to run the skia_bench and surfaceflinger tests.I have downloaded the eclari source code and compiled it with debug option.After compilation I am able to launch the emulator with the target debug image. Now the question is how can I run the skia_bench or surfaceflinger tests (which are available in android source code).
View 1 Replies
Aug 6, 2010
"Hello, World" and "Hello, Testing" tutorials I created an android application created with Eclipse, along with a corresponding Android Test Project.The tests run fine once. After that, in order for me to run the tests again, I have to close the emulator.If I don't close the emulator, the Eclipse console get stuck on "Installing instrumentation android.test.InstrumentationTestRunner on device emulator-5554"... Nothing happens after that.I've been told to exit out of the application under test in the emulator in order to run the test again. Unfortunately the emulator doesn't have the app pulled up (it's in the normal "locked" position and when unlocked brings up the home screen) and even if I do pull it up then exit, it doesn't seem to let me run my tests again.All the example videos and tutorials all stop at the first run of a test. I have yet to see anyone anywhere run a test a second time!
View 1 Replies
View Related
Jul 2, 2010
I am facing in Android display system(Video Rendering using Surface Flinger Native APIs).
As for my understanding, Android display system relies on Surfaceflinger library( a system wide screen composer). Surfaceflinger runs as a service along with Mediaserver service, Camera service, Audioflinger and these services interact with each other through Binder APIs at native level. If any user application wants to access SurfaceFlinger native APIs, it requires Surfaceflinger Access permissions.
My requirement is that I want to create a SurfaceView at the JAVA level (Android Application level) and render video data to that Surface, means, pass video data to the Surface flinger library by invoking native Surface Flinger APIs. But, because of Permission Problems, I am not able to invoke Native Surface Flinger APIs from Application Layer.
Is there any ways to invoke Surface Flinger Native APIs from Application Level ?
View 2 Replies
View Related
Jun 9, 2009
I've got unit tests which are subclasses of AndroidTestCase, I thought they were just taking awhile to run, but for some reason when I run them via Eclipse, they actually run twice. I can verify this in LogCat after the Console outputs "Launching instrumentation android.test.InstrumentationTestRunner on device..." the first run starts, which is only visible via LogCat. Then the JUnit pane comes to life and starts tracking the second run.
View 2 Replies
View Related
Sep 16, 2009
Can you please tell me the process for running the tests on device? currently I am using the eclipse IDE to run the tests as Android Junit tests. And I would like to run the unit tests on device.
View 2 Replies
View Related
Dec 6, 2009
Is it possible to run some android tests for example: AndroidTestCase without using emulator?
View 2 Replies
View Related
Feb 1, 2010
In order to release a device to the market, You need to run the Compatibility Test Suite given by android...I need to know how to download and run it..
View 3 Replies
View Related
Aug 5, 2009
I'm getting VerifyErrors when running unit tests. My tests are setup as a separate eclipse project which references the project I am testing. I have a class in my project which I use fairly heavily in my test project and this class is getting rejected by Dalvik.I also have a third party jar on the build path of both the project under test and the test project. This causes no problems when running the project under test so I can't see why it should when running the test project, basically I'm stumped. I have posted the error text below, MyProjectClass is a class in the project under test which is used fairly heavily in the test project.
View 7 Replies
View Related
Feb 19, 2010
Can someone advise the am command (for adb shell) to run junit tests in the main thread please? The following shows onStart etc running in the test runner thread. am instrument -w -e class co.uk.telesense. tests.MyTest co.uk.telesense.tests/android.test.InstrumentationTestRunner Ewan Benfield ttp://www.telesense.co .uk tel: 0845 643 5691 (+44 845 643 5691) mob: +44 (0) 77859 26477
View 2 Replies
View Related
Jul 23, 2010
My project has the run-of-the-mill HTTP calls to fetch XML files, parsing the XML files, and creating domain objects. Those objects are later used in the actions and services of the Android app, I'd like to isolate that code. I also want to write tests for it. What are some good ways of doing this? Creating an Android Library doesn't seem appropriate. The tests would have to be in a separate project. And there are no services or activities in the extracted HTTP and XML related code. So the test suite doesn't have to be an Android test suite, it could be regular JUnit tests.
View 2 Replies
View Related
Oct 3, 2009
I got a problem launching unit tests. I did: * new android project in eclipse, new android test project in eclipse * added one test case, added one test suite * run as-> android junit test hangs on "Launching instrumentation android.test.InstrumentationTestRunner on device emulator-5556".I got eclipse galileo, newest ADT and android 1.6 sdk
View 5 Replies
View Related
Jan 19, 2010
I am writing my first Android database backend and I'm struggling to unit test the creation of my database. Currently the problem I am encountering is obtaining a valid Context object to pass to my implementation of SQLiteOpenHelper.Is there a way to get a Context object in a class extending TestCase? The solution I have thought of is to instantiate an Activity in the setup method of my TestCase and then assigning the Context of that Activity to a field variable which my test methods can access...but it seems like there should be an easier way.
View 3 Replies
View Related
Sep 4, 2009
How to get the junit test results from eclipse to an XML or any logfile?
View 2 Replies
View Related
Dec 12, 2009
We ran core tests by the command "/development/testrunner/runtest.py - v --coverage core" and got coverage report successfully. But the reports says all are 0%. We ran apidemos and got coverage report which looks good.
Below is the console output for core tests:
CODE:.............
So I wonder why core tests's coverage report says 0% and how can I make the report make sense.
View 2 Replies
View Related
Dec 23, 2009
If u have downloaded any android source code u would see a test folder present for almost all applications and base framework. I wanted to know whether we build the test code too while building sdk from source code or is it just for our reference. If it is for the latter, what is the best way to use it. Please post me the exact use of tests present in android source code.
View 2 Replies
View Related
Mar 22, 2010
We are able to run instrumentation tests of Android from the command line on Windows by launching: adb shell am instrument -w <package.test>/android.test.InstrumentationTestRunner. This gives us good results. Using the same architecture, we are unable to run the same in Kubuntu. We have the same setup in Kubuntu. Can someone let us know, if there are packages with same name.. Then what package will the adb shell point? How will the emulator connect with adb shell from cmd line? DO we need to do any changes to do so in Kubuntu?
View 1 Replies
View Related
Jul 21, 2010
I'm trying to run unit tests on the android platform in accordance with tutorial. Say, for example, I want to run tests for Email application. I open /apps/Email/tests/AndroidManifest.xml file, look for the <manifest> element, and look at the package attribute, which is com.android.email.tests, and in the <instrumentation> element I look at the android:name attribute, which is android.test.InstrumentationTestRunner.
View 3 Replies
View Related
Mar 12, 2010
I get the following stack trace when running my Android tests on the Emulator code...
I run my tests from an extra project. And it seems there are some problems with loading the classes from the other project. I have run the tests before but now they are failing. The project under tests runs without problems.
Line 14 of the Helper Class is:
this.httpHelper = new HttpHelper(userProfile);
I start a HttpHelper class that is responsible for executing httpqueries. I think somehow this helper class is not available anymore, but I have no clue why.
View 1 Replies
View Related
Aug 18, 2010
It appears that Android supports JUnit 3 out of the box.�However, I have some pre-existing JUnit 4 unit tests that I'd like to try on Android. I've tried adding the JUnit 4 jar to eclipse and compiling/ running the tests by pointing a standard JUnit run against them, but nothing seems to happen.�There's no evidence in the eclipse console or the Android emulator that any tests have been run.
Can anyone with knowledge about this subject comment?�Is it even possible to run JUnit 4 tests under Android, and if so, is there a step-by-step explanation as to how to achieve this (preferably under Jetbrains IDEA IDE, and/or Eclipse).
View 11 Replies
View Related
Nov 4, 2010
How do I go about simulating a context menu paste command using the Android JUnit tests?
View 3 Replies
View Related
Jun 25, 2010
I've tried Xtremelabs Speedtest (which seems more reliable) and Speedtest.net's app (which uses Kansas City as the server due to Sprint's proxy). I haven't been able to get over 800Kbps down no matter what. This morning I hit a new low and couldn't go over 350 with full service. My Touch Pro would consistently get about 1.2 - 1.5MBps. I would tether with it and use it as a hot spot with no issues. Friends would comment on how fast the 3G speeds on Sprint are. I don't feel I can have the same confidence in the Evo's speed.I'm thinking either there is some aggressive power saving happening on the phone or Sprint's network has been heavily congested since the release of the phone.Are there other speed tests people are doing? I'm going to try dslreports but I know that one has issues on accuracy sometimes.
View 49 Replies
View Related
Aug 6, 2010
I bought an extended battery on ebay and I want to test how much mah it actually has. Is there an app that tests battery capacity specifically the mah? It wouldn't be that hard for an app to test. Just monitor how much gets used and how much gets put back into the battery. If there isn't an app is there another way I can test the capacity of this battery? I have a lipo battery charger if that could work.
View 4 Replies
View Related
May 4, 2010
During past few day ran three speed tests (speedtest.net) using home WIFI connection. Couldn't believe the download speeds:
(1) 9,885 kbps
(2) 12,181 kbps
(3) 13,372 kbps
My Eris was maybe a tenth of this. Definitely worth the switch. Wonder how it compares to the competition?
View 5 Replies
View Related
Nov 7, 2009
Just wondering if the screen is scratch resistant like an iphone. I hate putting those screens on the phone. I have looked everywhere trying to find something about it but nothing yet.
View 37 Replies
View Related
Sep 6, 2010
Does anyone care to see the comparison benchmark tests between the 2.2 Dinc and DX? I switched back to my Dinc and installed 2.2 and curious if anyone wanted to see them cause i'll post them or video the results. Here are just the graphics.
Graphics:
Total Graphics Score:
DX: 23.985842
Dinc: 26.40585
Draw Opacity Bitmap:
DX: 7.3142858
Dinc: 9.507893
Draw Transparent Bitmap:
DX: 7.356322
Dinc: 6.6428804
Can anyone explain to my why the Dinc gets better graphics than the DX? I thought the DX had a separate GPU which makes the picture quality that much better for the DX and should be smoother. Am i wrong?
View 12 Replies
View Related
Nov 18, 2009
I cannot run android junit tests for classes sitting in main android project that implement interfaces that reside in other included projects. Depending on SDK version I get different errors: from "Test run failed:" on 1.5 and 1.6 and spurious process death to a more polite "NoClassDefFoundError" on SDK 2.0. This happens only on instantiation of classes that reside in the Android project and implement interfaces residing outside that android project. There is no problem instantiating classes that do not fall into this category (i.e. android only or library only classes).
Android project by itself works fine with these classes - it is just the test set-up doesn't and project inclusion/classpath seems to be ok. Test project includes all projects that main project includes. NoClassDefFoundError makes little sense here given that the classloader can see and instantiate classes sitting right next to the ones that do not work. Did anyone else run into this or found a way to set-up android based tests in a multi-project set-up? Below is more detailed set-up and test explanation: 1) Library project: FooLib public interface IFoo { ... }
View 4 Replies
View Related
Jun 2, 2010
Failing JUnit tests, not breaking my Ant script like I expect?
My continuous integration server runs an Ant script, which calls something like:
/tests/ant run-tests
My JUnit tests run, but with errors:
CODE:..............
The errors are OK, but my build script keeps going (eventually publishing my broken app to my testers - bad!). What I would expect is for the instrimentaiton to throw a build error, so my continuous integration server (TeamCity in this case) realises that something has gone wrong and reports a broken build. The "failonerror" is already set in the relevant macrodef, so I'm not sure what else I can do?
View 1 Replies
View Related
Jan 10, 2010
Kind of sad, but I guess it's something we all knew deep down anyways.
Smartphone touch-screen analysis tests finger fidelity | CES 2010 - CNET
View 11 Replies
View Related
Sep 24, 2010
I have an Android project that I have been working on and debugging just fine for several months, but for some reason it is now consistently hanging at the "Runnning tests..." step. I have experienced intermittent hangs from the beginning, but a simple retry and/or restart of Eclipse or the emulator usually resolves it. But now I am just dead in the water.I can run my tests fine, and I can debug my actual program, but I can't debug my tests.I have tried creating a new emulator and that doesn't fix it. I also cleared all my breakpoints and that had no effect.As far as what has changed lately, the primary thing is that I upgraded to rev 7 of the SDK tools. Also, I recently did some debugging (of the program not the tests) on an actual device (not the emulator). Can't see how that would impact it but I thought I would mention it.Actually I had to set Debuggable to "true" in the app manifest to get device debugging to work. Although I have never had that set in my test project, I set it, and that also had no effect on the issue.I'm running out of ideas, and I would greatly appreciate some pointers.
View 1 Replies
View Related
Dec 23, 2009
What exactly are mock tests... I need to know the mock and performance tests available in android for testing android apps..what is the best tool for testing android apps and how..
View 1 Replies
View Related