Android :: Consistent System Bug While Using UI Test Monkey App

Dec 22, 2009

I'm using the UI test monkey tool provided with android. This is a consistent error I see and wonder how I can avoid it.

Somehow the test app will rotate the orientation of my app such that the emulator window is still in portrait orientation, but the screen surface is in a landscape orientation. When in this configuration, any time you click on an EditText, a system exception gets thrown:

"The application OpenWnn (process jp.co.omronsoft.openwnn) has stopped unexpectedly. Please try again."

So this OpenWnn process is not mine, it looks like it handles display of the virtual keyboard. When in this odd orientation mode, and you try to click in an EditText, I can see the virtual keyboard try to slide in from the left side of the screen, then that exception gets thrown.

I'm not sure what orientation this is, because it's not the normal landscape orientation you get by hitting ctrl + F11. In fact, the virtual keyboard shouldn't even be trying to display itself in landscape mode? Much less from the left side of the emulator?

Android :: Consistent system bug while using UI test monkey app


Android :: Monkey Test - Service Name Too Long Error

Aug 9, 2010

I want to include about 40 packages in monkey command.But when I tried to include 40 packages using -p option, adb shell returned me "Service name too long " error .This seems to be limitation of adb shell. Is there any way to overcome this?

View 3 Replies View Related

Android :: Send Monkey Commands In A Test Application?

Jan 19, 2009

I was trying to send Monkey commands in one of my test applications. But When I install it on the emulator, the packageManager refuses to grant permission "SET_ACTIVITY_WATCHER" which is required to run Monkey.

Is it possible to call Monkey in a test application?

View 2 Replies View Related

Android :: Monkey Test Error / Event Remote Exception

Jun 28, 2010

I am doing monkey test for my application, and I meet Remote Exception many times. I don't know why remote-invocation errors occurs. Has anyone experienced such exception?

Monkey Log snippet:
:Sending Pointer ACTION_MOVE x=-1.0 y=-3.0
:Sending Pointer ACTION_DOWN x=322.0 y=77.0
:Sending Pointer ACTION_UP x=322.0 y=77.0
:Sending Pointer ACTION_DOWN x=299.0 y=488.0
Error: RemoteException while injecting event.
Events injected: 11088
:Dropped: keys=0 pointers=2 trackballs=0 flips=0
## Network stats: elapsed time=1511978ms
(1511978ms mobile, 0ms wifi, 0ms not connected)
System appears to have crashed at event 11088 of 56000 using seed 25194847

View 5 Replies View Related

Android :: Monkey Commands - Adb Shell Monkey - Port 1080

Sep 7, 2010

Once I start up monkey from the shell like:

adb shell monkey --port 1080

Then, If I write normal java code to establish a connection to 127.0.0.1:1080 (on the device itself) and then issue monkey commands from there?

I have tried this and I am able to create a socket, but to get the response, I wait for an awfully long time and nothing happens. Why this behavior?

View 2 Replies View Related

Android :: Good Automated Unit And System Test Tools?

Nov 3, 2010

I approached this problem as an oh hey that's not too bad, I can write a bunch of unit tests, and I have been keeping my suite green. However as things get more involved continuous integration and testing is a great great thing to have. And then I saw oh Android has emma integration as well awesome ... and then that's where it get's iffy. So I setup Hudson and have it call the coverage target of the ant build.xml that the android executable in the sdk can generate. And then it hits me. adb -s <emulator> shell am instrument -w ... will never return a result code that is not 0 ... because adb technically exited cleanly and usually will regardless of how the shell command that executed did..............

View 6 Replies View Related

Android :: Unable To Open Or Create Cache For System/app/test.apk

Oct 12, 2010

When I am trying to build my application as a part of image I am getting the following error :

E/dalvikvm( 1334): Can't open dex cache '/data/dalvik-cache/ system@a...@test.apk@classes.dex': No such file or directory I/dalvikvm( 1334): Unable to open or create cache for /system/app/ test.apk (/data/dalvik-cache/system@a...@test.apk@classes.dex) E/Util( 1334): Class Not Found : java.lang.ClassNotFoundException:

But when I push the apk manually to the device (into system/app), it works fine.

I am wondering why is it so as both ways the apk is present at system/ app only.

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 :: Intent.putExtras Not Consistent

May 16, 2010

I have a weird situation with AlarmManager. I am scheduling an event with AlarmManager and passing in a string using intent.putExtra. The string is either silent or vibrate and when the receiver fires the phone should either turn of the ringer or set the phone to vibrate.

The log statement correctly outputs the expected value each time.

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

The receiver that fires when the alarm executes also has a log statement and I can see the first time around that the statement outputs the expected string either SILENT or VIBRATE but for each subsequent execution the output shows the original value on the receiver end. The alarm executes and then I change the value for putExtra to opposite string and the receiver still displays the previous value event though the call from the code above shows that the new value was passed in. The value for setAction is the same each time.

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

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 :: How To Maintain Consistent UI Over Multiple Versions Of OS?

Sep 9, 2010

I would like to know if its possible to prevent my application from looking different every time I run it on a different android phone. For example, on stock 2.2, my seek bar (with default values and theme) has an orange color for the selected portion, whereas on a Samsung Galaxy S (with 2.1), it is green. Also the tab background is grey in stock 2.2, but blue in Galaxy S. On a similar note, my rating bar changes size too. I do not implement multiple screen resolutions and all my drawables are located in the "drawables" folder under "res". I donot specify a minimum sdk requirement.

View 5 Replies View Related

Android :: Behavior Of SingleTask Not Consistent With Document

Mar 31, 2010

I have an app with two activities, one of which the launchmode is set to "singleTask". From the Android dev guide, I got the impression that my SingleTaskActivity should start a new task (or reuse an old task) and always sit at the root of the stack when launched.

However, it's inconsistent with the behavior of the app if I follow the steps below: - launch StandardActivity from home - click the "home" key - launch SingleTaskActivity from home, you will see it's in the foreground as expected - click the "Back" key, StandardActivity comes to the foreground whereas I expect to see the home screen because SingleTaskActivity is supposed to be at the ROOT of the stack. It appears SingleTaskActivity was launched into the task that StandardActivity started, rather than starting its own task.

Is my understanding about the "singleTask" launch mode correct?

=== The Android Dev guide (http://developer.android.com/guide/topics/ manifest/activity-element.html#lmode) says:

In contrast, "singleTask" and "singleInstance" activities can only begin a task. They are always at the root of the activity stack. Moreover, the device can hold only one instance of the activity at a time — only one such task.

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

View 5 Replies View Related

Android : Scroller Not Maintaining Consistent Speed / Getting Slower

Nov 22, 2010

I have a problem while using the scroller in my application. I have used the scroller but it is not working properly as it is not able to maintain a consistent speed while automatically scrolling. The speed of the text is getting slower with time as the text moves upward.

View 1 Replies View Related

Android :: String Resource ID Values Guaranteed To Be Consistent Over Different Projects

Jun 7, 2010

I have some messages being passed back from my server through php. The problem is that the messages are in English and if the user is using another language they will still get the message in English.

So I had an idea that maybe instead of passing back the message I would instead pass the String resource Id from the android app, that way the app will get the correct string id for their language. I will use this in a number of apps so I just want to know if the string id is guaranteed to be the same across different android projects?

View 3 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

HTC Incredible :: Want Contacts Consistent As Last Name First / Fix To Have In This Order?

May 5, 2010

I want all my contacts consistent - last name, first name. But When the phone consolidated everyone from Outlook, Facebook, and Google (about 800 people, everything is all screwed up and inconsistent. Is there a way to fix that without having to manually open and edit each contact not in the correct order?

View 1 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

Nexus :: Consistent Call Drop-out Problems

Feb 21, 2010

At about 5-10 seconds into a call (either outgoing or incoming), my transmissions are muffled for about 10 seconds. Thereafter, I have occasional intermittent similar problems. I can always hear the other party perfectly; they just can't hear me. It happens with either the built-in mic or the corded headset or bluetooth.

View 8 Replies View Related

General :: Any Mod To Make Upload Speed Consistent?

Nov 22, 2013

I'm using Wi-Fi hotspot to connect my ps3 to mobile network but gameplay is slightly laggy. I've been told this is because of slow/inconsistent upload speeds. So is there an app/mod to make upload speed of my network faster or more consistent?

View 3 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 :: Monkey Script

Jun 12, 2010

I am really interested to use monkey with my own script,but i don't know the format of the script, can you give me a complete example for monkey script.

View 2 Replies View Related

Android :: Smarter Monkey

May 5, 2009

I was testing my program with Monkey under the 1.5 emulator. It gets hung up on some of the dialogs which a user would just dismiss with the back key and quits with a "not responding" error. The application hasn't quit and dismissing the dialog the program continues to run normally. This will also happen with any of the edit dialogs that the SoftKeyboard pops up during entry. Soemtimes it will manage to dismiss a dialog. I don't see anything in the options to prevent this.

View 2 Replies View Related

Motorola Droid X :: 3g Connection Consistent - Drops In And Out Like Every Other 5 Seconds

Aug 3, 2010

When im at my house 3g drops in and out like every other 5 seconds I was just wondering if this is normal or not.

View 10 Replies View Related

Motorola Droid :: Slow 3G Speed With Consistent 4 Bars?

Nov 20, 2009

This is my first smartphone and my first experience with any sort of high-speed mobile internet, so talk to me like an idiot. But my 3g speeds seem to be incredibly slow and I'm hoping there's something I can do about it. I might've just chalked it up to poor coverage in this area, but I get consistent 4 bars and I've ran SpeedTest.net and XtremeLabs Speedtest and, oddly, I'm getting very high numbers for upload speeds which seems to suggest the network is fine in this vicinity and something else is going on. WiFi speeds are perfect, very quick.

Here are the results of my most recent tests.
SpeedTest.net
Download: 100 kbps
Upload: 855 kbps
XtremeLabs
Max Download: 100.2 kbps
Upload: 223.6 kbps (Don't know about the large discrepancy here)

So is there any course of action I can take to improve the situation? I've not tested speeds at any other locations yet (just got the phone Wednesday) but the high upload speed seems to tell me that it's not just a matter of my house being a 3g dead zone. And of course, this is my first experience so maybe I'm completely wrong with all my assumptions.

View 6 Replies View Related

Samsung EPIC 4G :: Consistent Battery Life And Stability

Aug 22, 2010

Battery life and Battery stability. I still cannot seem to get a good consistent battery life from my Evo. One day it lasts 10 hours the next I get only 5 hours with about the same usage time and its driving me bonkers. If I find the Epic to be more reliable with power management I'm keeping the Epic and changing over. Its all up to the battery now!

View 14 Replies View Related

Android :: Write Monkey Script

Jul 8, 2010

I am doing to wirte Monkey Script but i have no idea about it

someone have a sample script?

I searched in google so found some it. but i don't know that mean of the script

=========================== type= point <---- how many type can i use? count= 10 speed= 1.0 start data >> captureDispatchPointer(5109520,5109520,0,230,358,0,0,0,0,0,0,0); captureDispatchPointer(5109521,5109521,1,230,358,0,0,0,0,0,0,0); delay(5000) <-----how many function can i use and type?

captureDispatchKey(5113146,5113146,0,4,0,0,0,0); captureDispatchKey(5113146,5113146,1,4,0,0,0,0);

View 2 Replies View Related

Android :: Monkey Tool Script

Mar 23, 2010

Android Monkey tool can use user supplied script to run, but very few information are present in this regarding to writing android monkey script. one guy only copied the stuff from source code and apart from that no information is present. Can anyone tell abount the sysntax of android monkey script to launch browser using the command from script and to browse particular website.

View 7 Replies View Related

Android :: Load An External Library In Monkey

Mar 30, 2009

I want to load an external library in monkey.For example,i write a series method in a new class with java,and i want to pack it to be a library like .so/.dll/.JAR or something else.Then the monkey is to load the library ,to use the mothod in it. I know the source code must be rebuild ,but how can it be done--how to pack it into a library,and load the library? If any one knows anything ,please help me out.

View 2 Replies View Related







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