Android :: Need To Test UI Testing

Feb 8, 2010

Is there anything to test the UI of an Android app like Jemmy for Swing?

Android :: Need to test UI Testing


Android :: Unit Testing With Test Only Assets

Jul 3, 2009

I my main app and tests are organized like this (standard from "android create project"): AndroidManifest.xml assets/ main app asset files src/tests/AndroidManifest.xml -- uses <instrumentation> to point to the main app assets/ -- test-specific asset files src/ Writing test cases with AndroidTestCase, I'd like to load asset files from the test-specific assets/ directory, not from the main app assets/ directory. How can I accomplish that? The normal way to load an asset would be getContext().getAssets().open ("foo.txt"), for assets/foo.txt in the main app. I assume I just have to somehow change the Context or the AssetManager to point to the test- specific assets directory, but I don't see any way to do that. I have looked into the tests/bin/MyApp-debug.apk to confirm that the test assets are in there. Now I just need a way to access them.

View 2 Replies View Related

Android :: Test Data Sources In Android Unit Testing

Jan 27, 2010

I want to test parsing of data returned from server.I thought I might create several test XML files and then feed them to the sax parser which uses my custom data handler (as in the application that I test).But where should I put those test XMLs?I tried with [project_root] /res/xml, but then I get the error: android.content.res.Resources $NotFoundException: Resource ID #0x7f040000 type #0x1c is not valid at android.content. res. Resources. loadXml ResourceParser(Resources.java:1870)at android.content.res. Resources. getXml(Resources. java:779) Does that mean that the xml is invalid, or that android couldn't find the XML file?(I use the same XML that comes from the server - copied it from the firebug's net panel and pasted into the file).Can I somehow read that XML as a text file, since etContext(). getResources() .getXml (R.xml.test_response1) returns XmlResourceParser instead of String (which I'd prefer)?

View 1 Replies View Related

Android :: Android AsyncTask Testing With Android Test Framework

Feb 23, 2010

I have a very simple AsyncTask implementation example and have problem to test it using Android JUnit framework. It works just fine when I instantiate and execute it in normal application. However when it's executed from any of Android Testing framework classes (i.e. AndroidTestCase, ActivityUnitTestCase, ActivityInstrumentationTestCase2 etc) it behaves sarngely:

- It executes doInBackground() method correctly
- However it doesn't invokes any of its notification methods (onPostExecute(), onProgressUpdate(), etc) --
just silently ignores them whitout showing any errors. This is very simple AsyncTask example................................

View 2 Replies View Related

Android :: Testing Problem With ActivityInstrumentationTestCase2 - T - Error When Trying To Access Activity Under Testing

Feb 24, 2010

I wrote a simplest test based on android.test.ActivityInstrumentationTestCase2.

CODE:..............

View 2 Replies View Related

Android :: Android Functional Testing - Testing Multiple Activities

Apr 16, 2009

I've been exploring the Android test package and I'm very confused on how to implement functional testing for endpoint-to-endpoint.

Consider the example below, I have 4 activities: 1. A Contact List Activity 2. A View Contact Activity 3. An Add/Edit Contact Activity 4. A Sync Contact List activity

I want to automate a few tests that will go through multiple test cases simulating a user experience: From launching the application, to selecting 'Add contact;' opening the add contact activity, entering data, saving it, going back to the list activity, and verifying the new contact was saved properly.

As I understand it, ActivityInstrumentationTestCase<T extends Activity> and ActivityUnitTestCase<T extends Activity>, are only useful for testing single activity functionality.

But what if I need to switch between 2 or more activities inside a single functional test case?

View 5 Replies View Related

Android :: How To Transfer Test Fixture File To Device From Unit Test Application?

Sep 24, 2010

I'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 Related

Android :: Error When Unit Test With Activity Instrumentation Test Cas­e 2?

Aug 23, 2009

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 Related

Android :: Getting Test Run Failed No Test Results?

Aug 11, 2010

I 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.

View 1 Replies View Related

Android :: Is It Unit Test Or An Integration Test?

Nov 9, 2010

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 Related

Motorola Droid X :: Touchscreen Test - Drawing Lines Test

Jul 15, 2010

One 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 Related

Missing Target Class To Test In Test Application?

Nov 10, 2011

I 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 Related

Android :: Android And Junit Reports Test Run Failed - No Test Results

Jul 16, 2010

I 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() ;

View 3 Replies View Related

Android :: CheckBox Test - (CheckBox) FindViewById (R.id.test) - Returns Null

Mar 17, 2009

why CheckBox is always null.

<CheckBox id="@+id/checkbox" android:layout_width="wrap_content" android:layout_height="wrap_content" />
code file-
package com.reblogr.reblogrclient;
public class Test extends Activity { /** Called when the activity is first created. */
public CheckBox checkbox;
@Override public void onCreate(Bundle savedInstanceState) { ....................

View 5 Replies View Related

Android :: Looking For Testing An App

Oct 10, 2010

I don't know if this is kosher, but I wanted to see if anyone would want to test an app I built. I don't want to release an app to the market without getting out all the bugs I can, but I'm a lone developer trying to build apps on the side in my free time. I don't know many people with Droids, so I'm trying to reach out to the community. I built an app I call "Next Track on Shake". Not a good name, (and I'm up for suggestions for a better name) but I can't think of anything else to explain its function. I listen to alot of music, usually on shuffle, and I hate having to wake the phone up, unlock the screen, open the music player, and change the track. The new versions of Android require PIN or Password when you use a corporate account, and that adds another step in changing tracks. I built an app that allows you to shake the phone, whether awake or not, and it will move to the next track for you. I also added the ability to customize the shake; you can set how hard or how fast you need to shake the phone to change the track. The default shake is a good setting for most people, but alot of people jog with the phone on their arm or hip and would need to adjust the strength of the shake so as to not accidentally change tracks. I've also added the ability to stop/start the service when needed, and I display an ongoing notification when the service is running. When the phone is rebooted, the app checks the preferences, and only starts the app if you had the service running before reboot.

View 3 Replies View Related

Android :: Want App Testing

Jan 26, 2010

I have created an app which needs some testing done. I have tested it on the HTC Hero (UK version) and the HTC Tattoo. Worked well on both the devices. I wanted to test it on the newer android phones like the Droid or the Nexus One. If anyone could help me out with the testing, there is a link to the .apk file below. This app does functions like silencing the ringtone when the phone is flipped, switching on the speakerphone when in call etc.
http://dl.dropbox.com/u/556550/FlipShake.apk.

View 3 Replies View Related

Android :: Testing Uses Permission

Jun 24, 2009

I'm prepping my first app for publishing and am a bit confused about how to properly test my <uses-permission> tags.. if i don't specify any permissions my app runs with no complaints on my G1. I tried installing it via "adb install" as well as with the eoeAppInstaller (as somebody had recommended). Also, the app is signed with my own certificate (not the debug cert). given that it works fine with no permissions (btw, it accesses camera and sd card), how will I know if I've set all of the proper <uses- permission> tags?

View 5 Replies View Related

Android :: Nexus One Testing

Jul 18, 2010

Can someone with a Nexus One download AppFriend from android market (qr code -http://www.zappmarket.com/catalog/27) and give me a stack trace of the error message? I've got reports coming in that it crashes on startup (and the nice 1 star reviews that follow). The code that it is breaking on is really simple, so I'm not sure what the incompatibility could be, as it works on G1 and Magic.

View 4 Replies View Related

Android :: Testing On Every Possible Device?

Nov 13, 2009

We have many phones, but we don't--and probably never will--have all of them.

It's frustrating that some phones cannot see our apps in the market, and we'd like to know which phones those are.

We'd like to have a simple way to have our app tested on each phone, but at this point there's no easy way to do that.

My question is: what would we as developers be willing to do to get these needs met? Is there enough demand for someone to buy all possible Android devices and charge a nominal fee for these services?

We would pay a small fee to have out app accessed and downloaded on all phones--this would give us a report of which phones could access our app. We would pay a fee to have a step-by-step test ran on each possible device so we could know it worked on that device, at least minimally.

View 3 Replies View Related

Android :: About The Testing Of Bluetooth?

Jul 8, 2010

I have some questions about the testing of bluetooth.

I have tried the bluetooth chat and it worked pretty well on my two Andriod 2.1 based mobile phones.

However, this test can only be done only by someone who has 2 android phones and the version must be 2.1.

I assume this is a big issue because i looked into the CTS related to Bluetooth topic and it doesnt explain much about it.

The regular expectation for testing Bluetooth should be:

# Scan for other Bluetooth devices # Query the local Bluetooth adapter for paired Bluetooth devices # Establish RFCOMM channels # Connect to other devices through service discovery # Transfer data to and from other devices

In my case:

I would like to implement the application to send the file(image file, mp3, whatever...) from my Android 2.1 mobile to any device with Bluetooth module.

View 3 Replies View Related

Android :: Testing 3D GPS Application

Sep 9, 2009

We are working on an application that is a "Black Box in a phone" Written only for Android at the moment, we have tested on T1 and Magic, and we are looking for people to help us test it in various circumstances.

The app is designed for pilots and those that fly, tracks the phone in realtime and displays it on others phones and also in 3D on the website, GPS Logbooks - Home | Black Box Flight Recording, using only your Android cell phone.

The app is now in the marketplace, so we are looking for pilots, navigators, glider pilots, balloonists, sky divers and anyone else who likes to fly to download the app and go flying. After that you can publish your flights and share them with others.

Please note that your location data is visible to anyone on the site when you are flying live, so don't use it if you are somewhere that you don't want people to know about.

View 1 Replies View Related

Android App Alpha Testing

Aug 4, 2013

I have been having issues downloading the latest version of my app as part of Alpha testing. I have uploaded 6 versions and every time i download the app i just get the first version.

Thinking this is something to do with cache on google play store, on few versions, i waited more then 24 hrs for the download. Even this did not work.

Is there anything that i can do to make sure that i download the latest version. All the previous versions are archived and only the latest version is published/active.

View 2 Replies View Related

Android :: Backflip Testing Results

Apr 1, 2010

I got my app to install on the Backflip and started testing it. On the emulator everything appeared ok but on the Backflip there are a few notable differences.

I have edittext boxes which on the emulator automatically vary in size to accommodate the text. The text is a number, the max being two digits, i.e., 1-99. On the Backflip the edit boxes seem to be a fixed width and that width is larger than needed. Consequently some of the edittext boxes go past the end of the screen and can't be used or seen. This doesn't happen on the emulator.

I also have spinners. One set of spinners is created using android.R.layout.simple_spinner_dropdown_item populated by an array from array.xml. These spinners have the radio button showing and they work on both the emulator and the Backflip displaying a white background with black text.

The other spinner is created using int layoutID = android.R.layout.simple_spinner_item and is populated with strings from the database using an ArrayAdapter. This spinner displays ok on the emulator with a white background with black text. On the Backflip however, it displays the white background but with white text making the list essentially impossible to see. The list is populated because when I press on an item the background color changes to red, the text is white, and the program works ok.

My question is: Are these discrepancies peculiar to the Backflip or am I doing something wrong in the code? I'd hate to think all devices come with peculiarities that require workarounds. Hopefully I'm doing something wrong and hope someone can point out what it is. I'll post any code someone wants to see but right now I don't know what to post. Thanks.

I should add that when I use android.R.layout.simple_spinner_dropdown_item for the other spinner the text shows up ok but I now have the radio buttons which I don't want.

View 1 Replies View Related

Android :: Testing FPS Using Plugin For Eclipse

Jul 25, 2010

Ive no doubt this question may have been addressed before but how can I turn on a framerate monitor to use when I run my programs using the android emulator so I can see exactly what my android game is achieving at a given time?

View 1 Replies View Related

Android :: Process Of Interrupt Testing?

May 11, 2009

What is the process of Interrupt testing of Android applications. Looking to know how to destroy all the background activities of the application any time of the test and see if the application is behaving well. Any good place to know the detailed procedure.Is Android has any thing Andriod Certified (3rd party testing to certify) like the Java Verified cert approach. Regards, Raja Nagendra Kumar, C.T.O www.tejasoft.com

View 3 Replies View Related

Android :: Testing Using Easy Mock

Mar 26, 2009

Can EasyMock be used with Android SDK to test my code? I integrated EasyMock Class Extension to one of my test case to mock an object operates on SQLite db. When executing my test case I got the following exception when setUp() is called: Code...

View 3 Replies View Related

Android :: Using Instrumentation Testing Framework

Oct 17, 2010

How do I use instrumentation testing framework to test flow between activities? The example goog gives is for one activity only.

View 4 Replies View Related

Android :: Automated GUI Testing Framework

Jul 14, 2010

Does there exist an automated GUI testing framework for Android?

View 1 Replies View Related

Android :: App Crashes While Testing Through Instrumentation

Sep 27, 2010

I have separated java code from Android code and have two projects. Android dependent on Java project. Now i want to get the memory trace of the Java project on Android. For that I have created Androd Junit Project implementing Android Instrumentation, and a dummy android project dependent on my actual java project.(as I only want to get memory trace of java project on android).Problem is when I execute Android Junit project, and give a reference of dummy project removing java project dependency, all tests(dummy) run fine.But when I run junit project, with dummy android proj keeping dependency on java project, my application crashes.I get an error message like : "Process crash" not getting any error message in logcat. No clue whats wrong with code.Any help is highly needed.

View 1 Replies View Related

Android :: Testing An Asynchronous Activity

Dec 2, 2009

I'm using a web service disguised as a ContentProvider and AsyncQueryHandler to isolate my activity from the delays of transport. My question is: during testing, how can I determine when my activity has retrieved the data from the web service? That would be after onQueryComplete() in the AsyncQueryHandler has come back with the "real" data. During manual testing, I just sit there and wait until the view updates. How can I do that using ActivityUnitTestCase and ActivityInstrumentationTestCase2?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved