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
Related
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.
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.
I'm fairly new to Android programming but have experience with other areas. I used to use a program called AutoIT for programming scripts used in Windows. When building the project there was an option that would clean up my code.
Giving each line proper indents, removing blank lines and I even think here as an option that would remove unused variables as well. I believe this was a plug in or add-on script that did this during build. Does Android Studio have something similar?
I want to answer just this image, but I can't. There has to be at least 30 characters.
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.
I simply thought I could use jython for developing Android App.
But it was not easier than I thought.
I created android sample project and added jython.jar into the project.
After soon I encountered with "Conversion to Dalvik format failed" error msg.
So I googled almost every pages about that msg.
However I could not find a proper answer.
Closest answer was using "--no-locals" in dx option.
I did it in command console and it seemed to work well. I guess...
My question is...
I want to use the dx option("--no-locals") with eclipse.
Because eclipse automatically copys apk file to the emulator and runs it.
Is it anyway to set dx.bat option ("--no-locals") in eclipse?
Is there anyone who succeed in use of jython for android?
Now I don't know about jython.jar specifically, but it is not given that it is even possible to add every externaljar file to an Android project. It might very well be that your jar is depending on packages that are not included in the Android SDK (because Android isn't an exact clone of Java, just to have mentioned that), and if so it won't be possible to include it.
Try looking very closely on the error stack trace and look for anything indicating there are some missing dependencies. This might give you a clue if this is the case for your jar.