English 中文(简体)
Can 阻塞 测试Case2 用于单一roid子体。
原标题:Can the android ActivityInstrumentationTestCase2 be used agaisnt a monodroid app?

i am trying to use Robotium to drive a app written bu monodroid and it seems there is a problem in invoking the app through the test app. As it seems the robotium initialize the test and the target app using android ActivityInstrumentationTestCase2 and some how it seems that it get confused by the package and the main activity specified ... i am not sure but i feel it may be due to difference in package structure in java and how the namespace is used in c# ..have any body tried robotium or nativedriver against a monodroid app?

I/dalvikvm(  487): DALVIK THREADS:
I/dalvikvm(  487): "main" prio=5 tid=1 RUNNABLE
I/dalvikvm(  487):   | group="main" sCount=0 dsCount=0 s=N obj=0x4001d8e0 self=0xccb0
I/dalvikvm(  487):   | sysTid=487 nice=0 sched=0/0 cgrp=default handle=-1345026008
I/dalvikvm(  487):   | schedstat=( 3609087971 361797990 223 )
I/dalvikvm(  487):   at java.lang.Class.getDeclaredConstructors(Native Method)
I/dalvikvm(  487):   at java.lang.Class.getConstructors(Class.java:499)
I/dalvikvm(  487):   at    android.test.suitebuilder.TestGrouping$TestCasePredicate.hasValidConstructor(TestGrouping.java:226)
I/dalvikvm(  487):   at android.test.suitebuilder.TestGrouping$TestCasePredicate.apply(TestGrouping.java:215)
I/dalvikvm(  487):   at android.test.suitebuilder.TestGrouping$TestCasePredicate.apply(TestGrouping.java:211)
I/dalvikvm(  487):   at android.test.suitebuilder.TestGrouping.select(TestGrouping.java:170)
I/dalvikvm(  487):   at android.test.suitebuilder.TestGrouping.selectTestClasses(TestGrouping.java:160)
I/dalvikvm(  487):   at android.test.suitebuilder.TestGrouping.testCaseClassesInPackage(TestGrouping.java:154)
I/dalvikvm(  487):   at android.test.suitebuilder.TestGrouping.addPackagesRecursive(TestGrouping.java:115)
I/dalvikvm(  487):   at android.test.suitebuilder.TestSuiteBuilder.includePackages(TestSuiteBuilder.java:103)
I/dalvikvm(  487):   at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:360)
I/dalvikvm(  487):   at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4218)
I/dalvikvm(  487):   at android.app.ActivityThread.access$3000(ActivityThread.java:125)
I/dalvikvm(  487):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2071)
I/dalvikvm(  487):   at android.os.Handler.dispatchMessage(Handler.java:99)
I/dalvikvm(  487):   at android.os.Looper.loop(Looper.java:123)
I/dalvikvm(  487):   at android.app.ActivityThread.main(ActivityThread.java:4627)
I/dalvikvm(  487):   at java.lang.reflect.Method.invokeNative(Native Method)
I/dalvikvm(  487):   at java.lang.reflect.Method.invoke(Method.java:521)
I/dalvikvm(  487):   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
I/dalvikvm(  487):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
I/dalvikvm(  487):   at dalvik.system.NativeStart.main(Native Method)

i 猜测问题应当是一个小ava类是否对C#类进行反思?

more importantly... Is there an implementation of some thing like android ActivityInstrumentationTestCase2 which supports android instrumentation with mono droid? or is there a way to invoke a mono droid app using a test app that uses ActivityInstrumentationTestCase2?

问题回答

我不了解机器人,但小组的一名成员一直在研究本地的驾驶人,而本地的驾驶人因蒙奥·安内斯的服饰而破灭,因为在莫诺有机会启动之前,他们援引 Java<条码><>>>标准。

我们重新努力,但我不知道何时会完工并可供公众使用。

Java在C#类,目前是可能的。 Java只能通过,每个Java.Lang.Object子等生成的roid,并为每个 Java的界面和任何压倒性基类方法生成方法。





相关问题
Android - ListView fling gesture triggers context menu

I m relatively new to Android development. I m developing an app with a ListView. I ve followed the info in #1338475 and have my app recognizing the fling gesture, but after the gesture is complete, ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

Android intent filter for a particular file extension?

I want to be able to download a file with a particular extension from the net, and have it passed to my application to deal with it, but I haven t been able to figure out the intent filter. The ...

Android & Web: What is the equivalent style for the web?

I am quite impressed by the workflow I follow when developing Android applications: Define a layout in an xml file and then write all the code in a code-behind style. Is there an equivalent style for ...

TiledLayer equivalent in Android [duplicate]

To draw landscapes, backgrounds with patterns etc, we used TiledLayer in J2ME. Is there an android counterpart for that. Does android provide an option to set such tiled patterns in the layout XML?

Using Repo with Msysgit

When following the Android Open Source Project instructions on installing repo for use with Git, after running the repo init command, I run into this error: /c/Users/Andrew Rabon/bin/repo: line ...

Android "single top" launch mode and onNewIntent method

I read in the Android documentation that by setting my Activity s launchMode property to singleTop OR by adding the FLAG_ACTIVITY_SINGLE_TOP flag to my Intent, that calling startActivity(intent) would ...

From Web Development to Android Development

I have pretty good skills in PHP , Mysql and Javascript for a junior developer. If I wanted to try my hand as Android Development do you think I might find it tough ? Also what new languages would I ...

热门标签