I need to deploy my automated test program and ensure manual test team can use it.My solution is write a desktop UI program and install apk,switch language,switch versions,select test cases.Then i can make my test program easy to use anyone who doesnt know code.But if i do this , it takes long time.
Is there anyone have similar experience or provide easier solutions, frameworks to me?
If you need an apk with Robotium tests inside use Gradle tasks like connectedDebugAndroidTest.
To create just an apk file use assembleDebug. Generated '.apk's you would find in this directory: {app-name}/app/build/outputs/apk.
Read also about Continuous Integration and its tools like Jenkinsor Travis(which is free for open-source project on GitHub) to make generating .apk files more automated.
Hope I answer your question. If no, please free to describe what I missed.
Related
Good day,
I'm looking for help on recompiling a github source code/repository to an APK file.
I'm currently working on an app and I am using the Dolphin source code as a reference since its really organized and close enough of a reference to what I already have.
The format for my source code is basically like theirs as seen here: https://github.com/dolphin-emu/dolphin
I have no idea on how to compile those files to a signed or unsigned apk.
I tried using Android studio (v3.6.3) before but got lost on what to do and gave up for a week..... so now I'm looking for some help. I would like if someone could teach me the process, so I could practice converting the Dolphin github repository to an apk and then apply that knowledge to progress into creating an alpha build of my app for testing.
PS. I'm a bit new to coding and App creation (learning on my own right now, especially during the quarantine where I live) so I'd really appreciate any help!
Thanks in advance.
This one is written by C++/C. You cannot make it a APK. But instead you can write another app as a "wrapper application" to launch your C++/C project. By calling shell command or NDK.
So I have an Android project for which I created a test. But I'd like to run this test multiple times in series. So I thought that it is perhaps possible to run a test scenario from the command line and write it into a .bat file. But I can't really find any solutions that I can understand. (I'm quite new to Android Studio.)
So is it possible and if so, how?
You can use the ANT jars ant.jar and ant-launcher.jar
Please go through the documentation here
First of all i am aware that there have been alot of similair questions asked already, but somehow i cant figure anything out, I have a python-kivy program that I want to run on Android, the program works perfectly on my computer, I've ran various simple programs using Python Interpreter with Kivy, so far it was the best open source I could find, but there is some nasty problems with it.
I've been to https://kivy.org/docs/guide/packaging-android.html#packaging-android and since i already had Kivy Launcher installed on my phone i tried that one first, however when i open the app i get a message:
No projects are available to luanch. Please place a project into storage/emulated/0/kivy and restart this application. Press back button to exit.
at https://kivy.org/docs/guide/packaging-android.html#packaging-android I readed that the 'project' consists of my main code, lets say main.py, and android.txt, the android.txt must contain a few things that i wont mention now, these two files must be placed in a folder and placed at the asked directory.
I did this, but i still got the same message.
I've thought of trying Buildozer, but i did not seem to find a proper instalation for it on android.
I'm asking advice, becouse i think that the answer to my problems might not be so dificuilt, so any advice apreciated.
Thanks and regards.
Cid-El
ps. Android Lollipop, python 3.4
You may try using buildozer to package your app and deploy to Android device directly for debug, you only need to install this in your machine, and change the developer options in Android to allow external source.
Basically once you install the buildozer, you need to initialise a project by:
buildozer init
Make sure you have the required dependencies and targeted Android SDK/NDK in your system.
Then it's only a simple edit the build manifest for Python specific dependencies (external modules etc).
And run locally by:
buildozer android deploy run
Read more about buildozer here
Hope this helps.
Is there some way to get the android SDK build process to do partial updates on the actual device? Whenever I make a change it has to rebuild the apk file and deploy it, which seems wasteful, and is slow (especially with the dex defect).
The copying to the device isn't an issue here, it is fast enough. So the emulator doesn't appear to solve my problem. Is there perhaps a way to test the code without producing the APK file for the emulator?
What you want is Test Driven Development (TDD). This article will start you off right :
http://pivotal.github.com/robolectric/
Is there some way to get the android SDK build process to do partial updates on the actual device?
Not presently. It's something they are considering for a future overhaul of the build system, though I think there are other capabilities that are considered to be higher priority..
Is there perhaps a way to test the code without producing the APK file for the emulator?
Not with standard Java-based Android development. Any sort of compiled environment pretty much needs the code to be compiled in order for it to be run.
Is it possible to build an android application with rake? The only other question on this subject I saw was a while back and someone advised using Gradle.
So is there any way to do this on the command line, as I am sure under the hood eclipse just runs a lot of command line guff to get the apk file generated then spits it to the device, I just want to generate the apk file (there is alot of other things to be done but these are prior to the APK building).
Is it possible to build an android application with rake?
Yes, insofar as it is possible to build an Android application using Ant, and rake can in theory do everything Ant can.
If you are expecting to find an existing rake script, though, you will likely be disappointed. The Ant scripts necessary to build an Android app are rather substantial, and porting all of that to rake will take quite some time. And, then, they will perpetually be out of date, as those Ant scripts are often modified with Android tools releases.
Here's a small example project that's worth a look: https://github.com/jberkel/android-helloworld-rake
I've been meaning to try it out myself.