Comments (8)
From [email protected] on July 18, 2010 00:22:30
Thanks for the issue.
Can you please send me some code that exhibits this problem or some more information? How often does this happen to you, is it under certain conditions?
from robotium.
From [email protected] on July 22, 2010 00:48:32
I think this only happens if you specify a solo.goBack() too many so that you actually exit your app and then try to searchText() wrongfully. I'll try and see if I can create some minimal sample code that exhibits this. Downloading my project and its dependencies might be a bit much. Though you can find it at https://code.launchpad.net/~pjv/collectionista/tests . Should be revision 14 (or 15) with some small changes (try inserting goBack()'s). You will also need the other trunks and dependencies.
I certainly don't always see this as a real exception. I think when this happens still INSIDE the app, you just get a comparable stacktrace, but WITHIN junit, as it should.
from robotium.
From [email protected] on July 22, 2010 01:08:28
For instance, now I see (but within Junit, so ok):
java.lang.NullPointerException
at com.jayway.android.robotium.solo.ViewFetcher.getCurrentScrollViews(ViewFetcher.java:242)
at com.jayway.android.robotium.solo.Scroller.scroll(Scroller.java:149)
at com.jayway.android.robotium.solo.Scroller.scrollDown(Scroller.java:104)
at com.jayway.android.robotium.solo.Searcher.searchForText(Searcher.java:354)
at com.jayway.android.robotium.solo.Searcher.searchText(Searcher.java:312)
at com.jayway.android.robotium.solo.Searcher.searchText(Searcher.java:294)
at com.jayway.android.robotium.solo.Searcher.searchText(Searcher.java:278)
at com.jayway.android.robotium.solo.Solo.searchText(Solo.java:273)
at net.lp.collectionista.test.usecases.collections.ManageCollectionUseCaseTest.testUpdateRenameCollection(ManageCollectionUseCaseTest.java:227)
at net.lp.collectionista.test.usecases.collections.ManageCollectionUseCaseTest.testUpdateRenameCollection(ManageCollectionUseCaseTest.java:207)
at java.lang.reflect.Method.invokeNative(Native Method)
at android.test.InstrumentationTestCase.runMethod(InstrumentationTestCase.java:204)
at android.test.InstrumentationTestCase.runTest(InstrumentationTestCase.java:194)
at android.test.ActivityInstrumentationTestCase2.runTest(ActivityInstrumentationTestCase2.java:186)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:520)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1447)
from robotium.
From [email protected] on July 22, 2010 02:07:41
So the last NullPointerException you have posted happened while still being in the application? A special scenario to make it happen?
I will make a change in the next release so that this problem is avoided. Thanks for pointing it out.
Status: Accepted
from robotium.
From [email protected] on July 25, 2010 04:06:25
Exactly, the stacktrace from comment #3
is benign. It's the thing you want to see in jUnit if your program or test code is wrong. The stacktrace from the original post is not, it was retrieved through logcat.
I've been trying to get back the code that exhibited the problem, both in my fullproject, as in a small sample project, but have been unsuccessful. However at the time I could reproduce this 100% with that code. Sorry, I should have made a commit at that moment. Can you do anything useful with the stack trace by itself and the context of my code?
from robotium.
From [email protected] on July 25, 2010 11:45:49
Yes this problem will be fixed in the next release. I know exactly why it happens, thanks for submitting this issue.
from robotium.
From [email protected] on August 12, 2010 09:40:39
Owner: renasreda
from robotium.
From [email protected] on August 23, 2010 21:53:50
This issue has been fixed.
Status: Verified
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.