i have implemented UIAutomator with my android app. i am able to run
test cases using "connectedAndroidTest" in verification option in
gradle task and find reports on path
"app\build\reports\androidTests\connected"
all are working fine, in this scenario my phone is connected to PC.
My requirement is that i want to make an apk "androidTest.apk" for
instrumentaion(UiAutomator) test and copy it to android phone and install. after
that i can run testcase using this apk and want to find reports also.
in this scenario phone is disconnected from PC
Is it possible?. if possible then how i can achieve it or if not possible
then reason for it.
You need adb to start the Instrumentation. If you are planning to start it from an Activity it will fail.
Related
I'm new to android, When i'm installing android app via USB cable manually it's running but i want to share it and run in another mobile phones for testing purpose for that what i've to do?
Go to Build menu, then click on Build APK. A pop-up appears having title Build APK
APK(s) generated successfully.
Show in Explorer. Then click on Show in Explorer and your APK file is ready to share.
What's the real issue..? Take the APK and simply sideload it in another phone. Or, connect the phone with your machine.
Firebase offers a limited test for any real and virtual devices on your choice. Use the free services everyday to test it on all available devices.
I am new to Appium and I am trying to run manual and automated tests on the AWS Device Farm. While I am trying to 'Create a new run', it wants me to upload an apk file.
Create a new run
But, when upload the apk and run the test, it gives me the below error during the 'Setup Suite' phase.
Error:
Package com.google.android.calculator is already installed as a default system app
Error message
Please let me know if you need additional info that I may have missed to resolve the issue. Many thanks in anticipation!
You are seeing this error because you're uploading a system app that is already installed on the device.
There is a work around where you could upload a dummy apk and in your Appium tests specifically target the calculator app.
Is there a way to install an application I'm in the middle of development on to my phone without going through all the steps of signing it, releasing it etc.? (Without the phone being connected by USB)
I'm still very much mid-development, but I need to demonstrate the progress I've made so far to other members of my team away from access to my development environment, so I need to install it on my phone.
Inside your project bin folder there is an apk file. If you copy that file to a device you can then install the app from it.
When I am in your situation I throw my apk into dropbox and send out links for people to download it.
You can try adb wireless http://www.helloandroid.com/content/connect-your-android-phone-adb-wireless
But i don't really see why you cannot export and install an unsigned app?
At&t (and possibly other carriers) set up the firmware to prohibit sideloading, so you need USB connection if that is your carrier. Otherwise, just put the apk on a web site and enable installation from unapproved sources.
See for the purpose of debugging you can use the adb-wireless which provides the same functionality as the use of a USB.
Also for installing it on the phone directly you can try this and see if this helps.
Go to Settings -> Applications
Select the Unknown sources option. This allows you to install apps on your phone even if the app is not released into the Android Market.
If you are using Eclipse or any other IDE just click on the project and run as android application. The app shall get installed directly. ( Installation shall not depend upon whether you are using adb-wireless or a USB)
I had import to my project the example of Zxing for Android Application. I dont have errors and when i try to run on device, the console give this output:
[2011-08-26 20:57:06 - CaptureActivity] Re-installation failed due to different application signatures.
[2011-08-26 20:57:06 - CaptureActivity] You must perform a full uninstall of the application. WARNING: This will remove the application data!
[2011-08-26 20:57:06 - CaptureActivity] Please execute 'adb uninstall com.google.zxing.client.android' in a shell.
[2011-08-26 20:57:06 - CaptureActivity] Launch canceled
I try to execute the adb command in shell but give me "permission denied". Before i never have this app in my phone, sometimes with this error i uninstall app from device, run again and works but at this time i dont know what i can do. any suggestion?
You have a copy of Barcode Scanner installed from the Market. You are installing your app under the same name and package. For security reasons, Android does not allow you do to this, since you have not signed the app in the way we have of course.
You would need to uninstall Barcode Scanner first. If you can't, it is perhaps not uninstallable since it is pre-installed on the phone.
However, the problem is that you are trying to create an application using our package and our app name. In fact I assume you have mostly copied our source code. We do not find this acceptable. Please write your own application. If you need to re-use pieces of ours, that's OK -- it's open source. But it is not OK to copy and paste it so much as you are doing here.
I have developed an application using Android SDK 1.5, application works well on Android Simulator.
Now, I am trying to install application on actual device. I don't have the Android device. So, I am going by OTA way.
For this, I have generated the self sign keystore using keytool utility.
And, using Eclipse's "Eclipse Signed Application package.." option I have generated the signed .apk file and moved it to my web server.
Also, i added MIME type on web server for .apk.
But, when I am trying to download and install the same application on device, application get downloaded and it also prompts for permission. After thag when I click on "Install", it fails with error Application Install Unsuccefull.
Interestingly, I test this url on simulator browser, and it worked perfectly well and application get installed successfully.
Even, I checked that, SDCard is there on device. Settings -> Applications and "Unknown sources" option is alos checked.
Am I clear to you all?
Any Idea what may be going wrong here?
Thanks and appreciate your response,
S.Satheesh
What happens if connect the phone via a USB cable and install the application using the adb install command? Testing this will allow you to determine if the problem is with the package or the over the air update.
Also, you could try running adb logcat to view the logs from your phone after the failed install as this should show you what the problem is.