Comments (8)
From [email protected] on February 22, 2010 08:58:29
The security exception that you get means that the test cases are trying to interact
with an application that they are not allowed to interact with (e.g. another
application or the platform). This tells me that Note pad does not start when your
test cases start to execute. One example when this can happen is when the emulators
lock screen is active. Then the test cases try to interact with the lock screen
instead and therefore a security exception is thrown.
Can you please make sure that Note pad does indeed start when you select the example
test project and click run application as Android JUnit Test. If it does not start,
try to run Note pad separately by right clicking it and select run as Android
Application. If that is successfull then try to run the test cases again.
If this does not work then please get back to me with more information and observations.
from robotium.
From [email protected] on February 22, 2010 09:24:01
Thanks for your quick reply. You were correct. This error is occurring because the
lock screen is active. If I unlock the emulator after it starts and then start the
test, it will run.
Is there a solution so that I can run this as an automated test and not have to
manually go to the home screen?
from robotium.
From [email protected] on February 22, 2010 09:25:27
Sorry, the above reply is from jaglassjr. I was signed into another account.
from robotium.
From [email protected] on February 22, 2010 10:49:44
Once you have unlocked the emulator there is no need to go the home screen. Its just
the first time when you start the emulator that you need to unlock it. Im sure there
must be an adb command that you can send to the emulator in order to unlock it. Try
looking at different adb commands and see if you find one that suites your needs.
Status: Invalid
from robotium.
From [email protected] on October 12, 2010 18:52:04
U can do the following:
KeyguardManager km =
(KeyguardManager) context.getSystemService(Context.KEYGUARD_SERVICE);
if (km.inKeyguardRestrictedInputMode())
{
KeyguardManager.KeyguardLock lock = km.newKeyguardLock("some_tag");
lock.disableKeyguard();
SystemClock.sleep(2000);
}
from robotium.
From [email protected] on October 13, 2010 01:23:18
That's not a very good workaround; it requires adding that code to the application under test and adding the android.permission.DISABLE_KEYGUARD permission to your app.
This is described here: http://developer.android.com/intl/fr/guide/topics/testing/testing_android.html#UnlockDevice Perhaps this is also useful for automatically unlocking the emulator: http://bit.ly/cMrbEM
from robotium.
From [email protected] on November 17, 2010 20:35:28
I am using SMS appliction in my project while testing through robotium when it goes into SMS app it is not coming back to my applicion......if anyone knows solution plz reply as soon as possible.
from robotium.
From [email protected] on February 26, 2014 01:10:04
I have the same problem but I try to test UI with robotium.
Also I build project with gradle. When I worked with eclipse/IDEA(without gradle) it worked fine.
from robotium.
Related Issues (20)
- update repository description URL
- Build error with JavaCompile.setDependencyCacheDir() HOT 4
- Recording failed; Build failed with an exception HOT 3
- Links to PDF tutorials are broken
- Application not launch on test started HOT 4
- ClickOnScreen Not working
- ClickOnwebElement not working
- Build failed: Could not find :ExecutorLibrary: HOT 3
- Is Robotium dead? HOT 4
- CLick on TwoWayView, Viewpager
- robotium typetext wrong order HOT 2
- Cannot find Activity class on Android7.0 HOT 1
- Can't open Javadoc HOT 1
- assertFalse does not work on Android Oreo 8.1 HOT 1
- [QUESTION] Where I can find the CI service?
- Robotium Recorder : Please install a compatible Android API level (15 or higher) HOT 2
- Image validation in mobile native app HOT 2
- Robotium to work with targetSdkVersion 30
- Could not find manifest file within jar
- Could find http://recorder.robotium.com/updates
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robotium.