Android CTS Test On Device

Jun 24, 2010

i am working on android CTS test, i am getting API check time out error whenever i start test plan CTS, i followed the below steps for CTS test and also i mentioned my doubts.

CTS test steps :

1. Please download and install the Android 1.6 SDK on your machine.

2. Your phone should be running a user build (Android 1.6 and later) from source.android.com

3. Please refer to this link on the Android developer site and set up your device accordingly.

4. Make sure that your device has been flashed with a user build (Android 1.6 and later) before you run CTS.

5. You need to download the TTS files via Settings > Speech synthesis > Install voice data before running CTS tests. (Note that this assumes you have Android Market installed on the device, if not you will need to install the files manually via adb)

6. It is advisable to log in to the device with a test Google account, not an account that you actually use.

7. Make sure the device has a SD card plugged in and the card is empty. Warning: CTS may modify/erase data on the SD card plugged in to the device.

8. Do a factory data reset on the device (Settings > SD Card & phone storage > Factory data reset). Warning: This will erase all user data from the phone.

9. Make sure no lock pattern is set on the device (Settings > Security & location > Require Pattern should be unchecked.Google Confidential

10. Make sure the "Screen Timeout" is set to "Never Timeout" (Settings > Sound & Display > Screen Timeout should be set to "Never Timeout".

11. Make sure the "Stay Awake" development option is checked (Settings > Applications > Development > Stay awake).

12. Make sure Settings > Application > Development > Allow mock locations is set to true.

13. Make sure the device is at the home screen at the start of CTS (Press the home button).

14. While a device is running tests, it must not be used for any other tasks.

15. Do not press any keys on the device while CTS is running. Pressing keys or touching the screen of a test device will interfere with the running tests and may lead to test failures.

Doubts :

1) is it necessary to follow all the steps ?
2) for step 5, i copied the voice data to the SD card and if i follow step 8 it will erase all contents of SD card so how can i follow both step 5 and step 8 at a time...?

error message while doing CTS test on Device :

pvteam@pvteam-desktop:~/Desktop/android-cts/tools$ ./startcts
Android CTS version 2.1_pre_r1
Device(HT9A4LV00787) connected
cts_host > start --plan CTS
cts_host > There are 3 existing session(s) for plan CTS.
[code]...

the Device restart took place three times then i stoped the CTS test.

Android CTS test on Device


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 :: Way To Test Rotating Device / Emulator?

Jun 9, 2009

I'm using the 1.5 SDK. I read in 1.0 that rotating the device would cause onCreate() to be called in our apps (possibly recreating the entire app?). Is there a way to test rotating the device in the emulator? I just want to see what happens, I don't have a device to test this. Will the behavior be the same for 1.5 as it was in 1.0?

View 3 Replies View Related

Android :: Test App On Real Device Without Publishing?

Jan 18, 2010

Is there a way to test the application on the real device without publishing to android market?

View 2 Replies View Related

Android :: Phone Doesn't Allow To Test App On Real Device

Oct 29, 2010

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

Android :: Can Archos 28 Be Used As Test Device For Phone Development?

Nov 15, 2010

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

Android :: How Can I Reliably Test Alarm Manager On Device?

Aug 5, 2010

I'm writing an android application that depends on network activity and the alarm manager sometimes waking the phone up from a sleeping state. My question is how can I reliably test this on device? Ideally, how can I force the phone into a full-on sleeping state. Failing that, how can I know for sure when the phone has fully gone to sleep? How do you test your Alarm Manager / Wake Lock / Sleep handling code?

View 2 Replies View Related

Android :: Unable To Test Applications On Physical Device

Dec 26, 2009

Just started developing apps and am having a small problem. I can test the apps on the emulator but I cannot test them on my physical android device. When I am asked to select a running device I get a device listed as: Serial Number/name:? AVD name: N/A Target: unknown etc,

It seems that my device is being picked up but not able to be used. When I try to run the app I get an "Must set android.target.avd" error.

Is there something I am missing?

I am using netbeans 6.7.1 on Ubuntu 9.10, everything up to date. I have a G2-Touch from T-mobile, if someone tells me where to find it, I will post any other needed information.

View 2 Replies View Related

Android :: Need Device To Test Custom Input Method Application

Aug 27, 2010

1. I am in the process of creating an Input Method for Android devices. I using Eclipse(3.4) IDE and have Android (1.5 and 2.2) SDK. 2. Currently i am doing testing on the Emulator. But i wish to test it on actual Android device. 3. Can you please tell me which ideal device should i buy to test my application 4. Is there any lead device assigned by Android for a given SDK. 5. I intend to sign and publish my application so can you please tell me is there any Certification criteria which i have to follow.

View 2 Replies View Related

Test SMS App In Real Device?

Mar 5, 2014

how to do the text messaging app in android. i created test app. with an edit text and button and wrote the code to send sms. i could test it with 2 emulator. and the message sent successfully. but i need it to test on real device. In emulator we are giving emulator id as the phone number. what should we do if in the case of real device.

View 1 Replies View Related

Android :: Launch Virtual Device From Eclipse Every Time We Want To Test Our Code?

Jun 5, 2010

Do we need to launch the virtual device from eclipse every time we want to test our code? If yes, then is there any other method to make it a bit faster?

View 4 Replies View Related

HTC EVO 4G :: No Need Of Protective Skins - Device Survives Scratch Test

Jun 11, 2010

I thought it was pretty interesting. Glad I just bought no skins. Sprint HTC EVO 4G Survives Scratch Test.

View 6 Replies View Related

Motorola Milestone :: Test New App On Phone Device / Want Tester

Feb 4, 2010

Could someone test my new application on Motorola Milestone device? Please send private message if you can help.

View 12 Replies View Related

Android :: Test Android Apps - Develop On Real Hardware Device

Jun 22, 2010

Since I don't know (and I don't think anyone does) when the next version of the Android Developer Phone that will support Android 2.x be available, can I use the following unlocked Android phone available on Amazon

http://www.amazon.com/Motorola-Milestone-Unlocked-International-Warranty/dp/B0030G6HRQ/ref=sr_1_23?ie=UTF8&s=wireless&qid=1277232350&sr=8-23

To test my Android apps (that is after testing on simulators).

View 1 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 :: Modes Connectivity Device Identification & Device Inter Communication?

May 28, 2010

Can someone explain a couple of very simple concepts to me - I'm interested in mobile devices running android and how they are identified over networks. Some scenarios: Device is connected over WiFi - presumably the device has a standard IP address as with any host and can communicate with any other android host over TCP/IP (assuming it knows the participating device's IP? device is connected over bluetooth - how are devices identified in this case? device is connected over mobile operator's network - this is the one I'm interested in and confused by - is there anyway for two or more devices to discover each other and communicate via the mobile operator's network? How does a device communicate with a backend server in this scenario? In other words, how do apps and devices communicate when not connected to a WiFi network?

View 2 Replies View Related

Android :: Permission Denied On Device - Emulator Failed On Device

Jun 6, 2010

I have developed and tested my app on the emulator, and now want to install it on my HTC device. the apk installs successfully, however my database is not going with it. I have created my database using sqliteman browser b/c I have to insert a bulk data before the app starts. I have four tables in my db and call each in different activities and created all on the sqliteman. after the data is inserted I pull back the db onto the data folder of the emulator. it works perfect on the emulator but failed on the device. when I try to pull my db on the real device, it shows access denied problem

View 2 Replies View Related

Android :: Multiplayer Game - Device To Device Connection Using Sets Of Api

Mar 24, 2009

I have developed a sports game which is single player. Now I want to have one more game mode which is multiplayer.

My question is how can i do device to device connection in android using sets of api which can be :

1.Bluetooth - whose APIs are not currently available.

2.gtalkservice - removed from sdk1.0 3.wifi - I dont knw how to connect 2 devices using wifi apis . I have asked about wifi because we have developed a game on iphone which used wifi connection for multiplayer stuff.

Or is there any other apis which can be used for implementation of multiplayer in game ?

View 3 Replies View Related

Android :: Device Orientation / Mapping Device Y To Screen Y

Oct 30, 2009

How do I map the device Y axis to the screen Y axis?I can't figure this out.I'm the developer of Tricorder, and I'm trying to make it so that the accelerometer and magnetometer indicators I draw always point in the right direction.On the G1 phone with the slider closed, all is well.But when I open the slider, I end up showing that gravity is pulling me to the left (if the phone is held with the display vertical).So, I know that the device, and hence sensor, Y axis is always in the direction of the earpiece; and the screen Y axis changes when I open the slider.And I know that I can use remapCoordinateSystem() to change the device axes to match the screen axes.But where do I find out what the device's orientation is?In other words, how do I compute the correct values for the X and Y parameters to remapCoordinateSystem()?

Configuration.orientation seems quite useless.Suppose it is set to LANDSCAPE.What does this mean?Does it mean a device which is "naturally" portrait (i.e. the sensor Y axis points to the narrow end), and which has been turned into landscape mode?If so, which way was it turned?Or does it mean a device which is naturally landscape?In other words, LANDSCAPE could mean that the screen axis is off from the sensor axis by +90, 0, OR -90 degrees.Not much help.So how do I do this?Obviously I want my app to work on all devices, not just the G1 phone.

View 2 Replies View Related

Android :: How To Write App To Connect Device To Host USB GPS Device

Oct 29, 2010

I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be as generic as possible).Replicating the GUI is not that difficult, but I am having trouble getting started on the USB communication. I'd appreciate it if someone could point me towards an example, or the appropriate tutorial.

View 1 Replies View Related

General :: App To Use Android Device As Media Controller For IOS Device

Feb 28, 2014

Basically I have an old iPod touch 2g on iOS 4.x and a Nexus 5.

I want to use my iPod as my media player but I'd like to be able to control music from my Nexus (only basic controls).

Is there an app on either device that allows this? I know tsk skipping can be done by some Bluetooth headphones so I'm hoping there's a way to make iOS accept command from my Nexus

View 1 Replies View Related

Android : Where Can I Get An App For Gps Test?

Mar 3, 2009

I need a GPS application on android so I can test my gps function. Can any one who knows and being so kind to tell me about?

View 5 Replies View Related

Android : Need To Test Apk On G1

Feb 12, 2009

Need to test apk file on actual G1 device urgently.

Could any anyone with the device please help me on this?

View 5 Replies View Related

Android :: Device Chooser Device Not Showing Up

Feb 13, 2010

I'm using the android plugin for eclipse, and when I try to run my program using a real device through the android device chooser, my phone is not listed as a device. I have updated eclipse and all of the android packages, but it still isn't showing up. My phone is running 1.6, which is also the target version listed in the eclipse project.Also, the reason I decided to try testing on a real device is because the emulator doesn't seem to be working right anymore when I run my project. The emulator launches, but the program never does. Any ideas?(using windows 7/t-mobile mytouch 3g)

View 3 Replies View Related







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