Closed GoogleCodeExporter closed 9 years ago
Reviewing and researching...
Original comment by carl.na...@sas.com
on 31 Oct 2013 at 1:07
I see a few things of note:
1. You seem to be using an ADT Bundle for Eclipse as your Android SDK
environment. This mode hasn't been tested. However, in reviewing the
information online about the asset locations in the ADT Bundle I don't think
that in itself is the problem.
What may be the problem is that this ADT Bundle was released AFTER RobotiumRC
2013.09.09. I'm venturing a guess the ADT Bundle might include new versions of
tools--or different Eclipse versions of tools--that are NOT backward compatible
with the normal command-line Android SDK tools we have used before this toolset
release.
We will have to evaluate the use of the ADT Bundle as a supported mode of
command-line driven execution.
This part of the log leads me to believe, for example, the am (Activity
Manager?) tool usage and api might be different:
No 'offline' devices detected.
usage: am [subcommand] [options]
...
[Help for am command usage follows]
...
2. Has the Notepad.apk been build or re-signed with the same developer
certificate used to build the SAFSTCPMessenger and RobotiumTestRunner?
3. Could you clarify the statement below? I don't know what it means:
>> I found it's not "
>> <instrumentation android:name=
>> "com.jayway.android.robotium.remotecontrol.client.RobotiumTestRunner"
>> in lib jar.
What lib jar are you looking at?
The RobotiumTestRunner is not supposed to be in any particular JAR file, per se.
It is in the /src folder for the code that makes the RobotiumTestRunner and is
built into the installed APK.
Original comment by carl.na...@sas.com
on 31 Oct 2013 at 1:45
I think the problem is the parameter 'instrumentArg' is not correctly assigned,
you define it as:
public static final String
instrumentArg="android.test.InstrumentationTestRunner";
If you remove it from your code, I guess the problem will disappear.
This parameter will be used to launch the Instrument by android ADB,
On page http://developer.android.com/tools/help/adb.html, under section of
"Using activity manager (am)", look at the command instrument, the <COMPONENT>
is our parameter 'instrumentArg', it should be given as
<TEST_PACKAGE>/<RUNNER_CLASS>
In RobotiumRCRelease2013.09.09, two TestRunners have been provided, one is
RobotiumTestRunner, the other is SAFSTestRunner. You can use either of them to
do the test, but SAFSTestRunner provides more functionality.
If you use RobotiumTestRunner, you don't need to provide parameter
'instrumentArg'. RobotiumTestRunner is the default Runner, and 'instrumentArg'
has been default assigned as
"com.jayway.android.robotium.remotecontrol.client/com.jayway.android.robotium.re
motecontrol.client.RobotiumTestRunner"
If you want to use SAFSTestRunner, you need to assign 'instrumentArg' as
"org.safs.android.engine/org.safs.android.engine.DSAFSTestRunner". One more
thing, (suppose RC is installed at C:\robotiumrc) you need to modify the file
C:\robotiumrc\SAFSTCPMessenger\local.properties
change value of 'safs.droid.automation.libs' from
"C:\robotiumrc\RobotiumTestRunner\libs" to "C:\robotiumrc\SAFSTestRunner\libs"
Original comment by leiwang...@gmail.com
on 1 Nov 2013 at 3:04
Original comment by carl.na...@sas.com
on 19 Nov 2013 at 3:02
Original issue reported on code.google.com by
bingyuan...@gmail.com
on 31 Oct 2013 at 5:11