Available for hire

2 views
Skip to first unread message

philhsmith

unread,
May 28, 2009, 4:30:28 PM5/28/09
to Auto-android
Hello, Autoandroiders

With the declaration of the 2nd android competition, I thought I
should mention that I am immediately available for hire, seeking full
time work in the seattle area. I would love to be able to spent my
day building android applications and tools, and this would be the
surest way to ensure auto android's continued growth. If this sounds
interesting, please contact me at phil.h.smith (at) gmail

Ok, shameless plug over. Thanks!
--phil--

stanberka

unread,
Jul 22, 2009, 10:31:36 AM7/22/09
to Auto-android

Is there a way to have Positron stories in a parallel project, rather
than the same one where the app is? I tried it and failed. If it is
possible, could you describe what should be done differently etc?

With Android 1.5, I decided I'd like to be able to run some Android
jUnit tests on the same project, for which I have also Positron
stories. The trouble is, they seem to have a bit of a conflict, well,
may be it's just that I don't know how to configure both so they don't
interfere. That's why I need to move positron stories to a parallel
project.

Phil Smith

unread,
Jul 22, 2009, 1:03:22 PM7/22/09
to autoa...@googlegroups.com
Can you be more specific about the conflict? Perhaps include the
relevant snippets of build script & any stack traces produced?

stanberka

unread,
Jul 22, 2009, 11:16:48 PM7/22/09
to Auto-android
Thanks, Phil. The recommended way to do android unit tests, is to
create a parallel project as described here:
http://dtmilano.blogspot.com/2009/07/android-testing-on-android-platform_4442.html
I did this; the tests project is called DroidWikiTests. When I run it
as Android jUnit Tests, it fails with a message:

07-22 20:09:31.655: ERROR/AndroidRuntime(1278): Caused by:
java.lang.RuntimeException: java.lang.IllegalStateException: Can't
find AndroidManifest.xml to read the intrumented package. Please run
this from your project directory, or specify the
positron.instrumentedPackage system property or pass it as a
parameter.
07-22 20:09:31.655: ERROR/AndroidRuntime(1278): at
com.googlecode.autoandroid.positron.Start.run(Start.java:89)
07-22 20:09:31.655: ERROR/AndroidRuntime(1278): at
com.googlecode.autoandroid.positron.Start.run(Start.java:47)
07-22 20:09:31.655: ERROR/AndroidRuntime(1278): at
com.googlecode.autoandroid.positron.junit3.TestCase.<clinit>
(TestCase.java:12)

The DroidWikiTests minfest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.sjb.droidwiki.tests"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/
app_name">

<uses-library android:name="android.test.runner"></uses-library>
</application>
<uses-sdk android:minSdkVersion="3" />
<instrumentation android:targetPackage="org.sjb.droidwiki"
android:name="android.test.InstrumentationTestRunner"></
instrumentation>
</manifest>

The tested application is in project DroidWiki, in org.sjb.droidwiki
package. That's it. Note, that the DroidWikiTests doesn't mention nor
reference Positron.

Stan Berka

On Jul 22, 10:03 am, Phil Smith <phil.h.sm...@gmail.com> wrote:
> Can you be more specific about the conflict?  Perhaps include the
> relevant snippets of build script & any stack traces produced?
>

stanberka

unread,
Jul 29, 2009, 5:45:10 AM7/29/09
to Auto-android
Any chance for your help?

On Jul 22, 8:16 pm, stanberka <stan.be...@gmail.com> wrote:
> Thanks, Phil.  The recommended way to doandroidunit tests, is to
> create a parallel project as described here:
>    http://dtmilano.blogspot.com/2009/07/android-testing-on-android-platf...
> I did this; the tests project is called DroidWikiTests.  When I run it
> asAndroidjUnit Tests, it fails with a message:
>
> 07-22 20:09:31.655: ERROR/AndroidRuntime(1278): Caused by:
> java.lang.RuntimeException: java.lang.IllegalStateException: Can't
> find AndroidManifest.xml to read the intrumented package.  Please run
> this from your project directory, or specify thepositron.instrumentedPackage system property or pass it as a
> parameter.
> 07-22 20:09:31.655: ERROR/AndroidRuntime(1278):     at
> com.googlecode.autoandroid.positron.Start.run(Start.java:89)
> 07-22 20:09:31.655: ERROR/AndroidRuntime(1278):     at
> com.googlecode.autoandroid.positron.Start.run(Start.java:47)
> 07-22 20:09:31.655: ERROR/AndroidRuntime(1278):     at
> com.googlecode.autoandroid.positron.junit3.TestCase.<clinit>
> (TestCase.java:12)
>
> The DroidWikiTests minfest:
> <?xml version="1.0" encoding="utf-8"?>
> <manifest xmlns:android="http://schemas.android.com/apk/res/android"
>       package="org.sjb.droidwiki.tests"
>      android:versionCode="1"
>      android:versionName="1.0">
>     <applicationandroid:icon="@drawable/icon"android:label="@string/
> app_name">
>
>     <uses-libraryandroid:name="android.test.runner"></uses-library>
> </application>
>     <uses-sdkandroid:minSdkVersion="3" />
> <instrumentationandroid:targetPackage="org.sjb.droidwiki"android:name="android.test.InstrumentationTestRunner"></
> instrumentation>
> </manifest>
>
> The tested application is in project DroidWiki, in org.sjb.droidwiki
> package. That's it. Note, that the DroidWikiTests doesn't mention nor
> referencePositron.
>
> Stan Berka
>
> On Jul 22, 10:03 am, Phil Smith <phil.h.sm...@gmail.com> wrote:
>
> > Can you be more specific about the conflict?  Perhaps include the
> > relevant snippets of build script & any stack traces produced?
>
> > On Wed, Jul 22, 2009 at 7:31 AM, stanberka<stan.be...@gmail.com> wrote:
>
> > > Is there a way to havePositronstories in a parallel project, rather
> > > than the same one where the app is?  I tried it and failed.  If it is
> > > possible, could you describe what should be done differently etc?
>
> > > WithAndroid1.5, I decided I'd like to be able to run someAndroid
> > > jUnit tests on the same project, for which I have alsoPositron
> > > stories.  The trouble is, they seem to have a bit of a conflict, well,
> > > may be it's just that I don't know how to configure both so they don't
> > > interfere.  That's why I need to movepositronstories to a parallel
> > > project.
>
> > > On May 28, 1:30 pm, philhsmith <phil.h.sm...@gmail.com> wrote:
> > >> Hello, Autoandroiders
>
> > >> With the declaration of the 2ndandroidcompetition, I thought I
> > >> should mention that I am immediately available for hire, seeking full
> > >> time work in the seattle area.  I would love to be able to spent my
> > >> day buildingandroidapplications and tools, and this would be the
> > >> surest way to ensure autoandroid'scontinued growth.  If this sounds

Phil Smith

unread,
Jul 29, 2009, 12:00:49 PM7/29/09
to autoa...@googlegroups.com
Hi,

If the manifest doesn't include the positron instrumentation, then
that's going to be (at least part of) your problem. Positron works by
providing an instrumentation that in turn is controlled by a web
service. This is how it can let tests and such live on the client
side (on your laptop) and avoid running inside the actual phone.
Without an instrumentation declaration, there is nothing the client
objects can talk to.

Hope it helps,
--phil--
Reply all
Reply to author
Forward
0 new messages