Closed GoogleCodeExporter closed 9 years ago
Have you installed the test project on device before trying to run the test
suite?
Original comment by renasr...@gmail.com
on 9 Mar 2011 at 11:33
yes I install it on /data/app
Original comment by feu...@gmail.com
on 9 Mar 2011 at 12:30
I am not sure what the problem is. Have you tried to run the test project from
development tools instead?
http://www.youtube.com/watch?v=v1z39IIA7kY
Original comment by renasr...@gmail.com
on 9 Mar 2011 at 1:13
yes I run the test project from development tools. but it was not working. i
have the same error.
adb log.
I/ActivityManager( 805): Start proc com.android.contacts for restart
com.android.contacts: pid=1418 uid=1001 gids={1015}
W/ActivityManager( 805): Crash of app com.android.contacts running
instrumentation
ComponentInfo{com.android.contacts.phoneTesting/android.test.InstrumentationTest
Runner}
I/instrumentation( 981): INSTRUMENTATION_RESULT: shortMsg=Process crashed.
I/instrumentation( 981): INSTRUMENTATION_CODE: 0
D/ActivityManager( 805): Uninstalling process com.android.contacts
D/ActivityManager( 805): Force removing process ProcessRecord{439ac520
1418:com.android.contacts/1001} (com.android.contacts/1001)
I/Process ( 805): Sending signal. PID: 1418 SIG: 9
D/Zygote ( 761): Process 1412 terminated by signal (11)
I/ActivityManager( 805): Start proc com.android.contacts for added application
com.android.contacts: pid=1419 uid=1001 gids={1015}
D/ddm-heap( 1419): Got feature list request
Original comment by feu...@gmail.com
on 9 Mar 2011 at 2:31
Others have had problems with the contacts applicaiton. Try with the
pre-installed calculator instead. I see nothing wrong in how you have created
your test case.
Original comment by renasr...@gmail.com
on 9 Mar 2011 at 4:16
I test already the pre-installed calculator. the test was successful. My next
steps was the contacts application.
Thank you for your support.
Original comment by feu...@gmail.com
on 10 Mar 2011 at 8:07
Can somebody provide solution for it. I am also facing the same issue
Original comment by mydreams...@gmail.com
on 26 Jun 2012 at 12:02
This is what you need to do:
I tested the Contacts.apk with Robotium in emulator.
If you want to test native applications(e.g. Contacts.apk, Settings.apk) then
you have to use test key that is in android
source(/build/target/product/security). There is README file in that place.
Contacts.apk use 'shared' key.
Original comment by renasr...@gmail.com
on 26 Jun 2012 at 1:01
Any one tell me, in case of pre-installed app Calculator. When i use to adb
push the calculator then the icon in emulator goes invisible.
Original comment by mrawat...@gmail.com
on 9 Aug 2012 at 5:30
Can some one tell me how to add test project without having the complete
Package and source code for the application. Like I don't have the complete
source code for contacts.apk and while creating test project it asks for the
package to browse.
Original comment by d.mishr...@gmail.com
on 3 Oct 2012 at 1:49
Please see:
http://code.google.com/p/robotium/wiki/RobotiumForPreInstalledApps
Original comment by renasr...@gmail.com
on 3 Oct 2012 at 2:04
Thanks for the reply.
But the above link only tells about the pushing the new signed apk. While creating robotium test project it asks for the select test target to select from the existing project but for inbuilt apk we don't have the target project.(File > New > other > Android Test project >do next > Give project name> Select Test Target ? here what to select as I don't have the complete code for inbuilt apk).
Original comment by d.mishr...@gmail.com
on 4 Oct 2012 at 8:54
Please download the tutorial test android apk file with Robotium.
http://code.google.com/p/robotium/wiki/RobotiumTutorials
Original comment by renasr...@gmail.com
on 4 Oct 2012 at 8:56
The test android apk(AndroidCalculator) has calculator package and the source
code for calculator. So I will be able to test only calculator package not
other packages like settings. I want to test settings package but I don't have
the source code for it. That's why I was asking what to select in "select Test
Target" field in my previous comment.
Original comment by d.mishr...@gmail.com
on 4 Oct 2012 at 11:02
Original issue reported on code.google.com by
feu...@gmail.com
on 9 Mar 2011 at 11:00