I want to make an android app which will install and start another app and then perform the UIautomation tests on that app.
Well currently i know how to intall another apk from my app , but the question is can i call the UIautomation from my app for anther app in question.
I want my app to work as a tool to work as a automation tool which will start automation of a particular app without going through the adb commands of pushing the automation jar and starting the test.
Related
Is there any way to automatically perform test cases on an Android application?
When you finish an android application, you need to test all of the features of the app, in other words you need validation. But since there are so many tests which need to be performed, you need something like a robot to test all of the features.
This is important especially when you have some changes in the code in the future. So all test cases should be repeated and it takes a long time to manually perform such tests.
How do you validate your app? Do you have a robot to automatically perform test cases or you do it manually?
Yes, we can preform automation testing of android mobile application using tool Appium and Selenium. Most imp thing is that Appium and Selenium are open source.
Using appium we can perform automation testing for this we required followings.
Appium Server.
http://appium.io/
Selenium Stand-alone Web Driver.
enter link description here
Java or python or ruby and many more but given are popular.
Debug apk and android studio
Android real device
Java client
enter link description here
Any IDE such as Android studio or eclipse.
After that we have to set environment in windows or mac application and we have write script to for each functionality.
It is easy to write and use. I guess it was help full and download link are given.
I an currently working on an AR app for Android using ARCore, and I'm asked to write automated tests for this app, but I have absolutely no idea how to test augmented reality. Are there any tools, frameworks, or just tricks to run proper tests?
Writing Automated test for an AR application is as good as writing Automated Tests for a native android application. You can use any open source frameworks or develop your own using appium with java or python, testNG, Maven etc. I used an open source framework called Robot framework (based on python) as it was good for my application and platform under test.
I researched appium too and unfortunately couldn't find anything specific to test and validate AR application.
The problem with me was "how to validate if the AR Experience actually showed up on the screen."
To validate this, as there was no resource identifier for the AR asset to validate if it is visible or not, i ran "adb logcat -b system com.android.my_app_packagename:E > testlogs.txt" command while i m performing the automation test and in place of validation point if the AR asset appeared or not, I parsed the "testlogs.txt" text file and checked for availability of the events if they have triggered in the logs while i performed the action. For this i need to ask my developers to log those events in the app while they developed it.
Hope this help.
I am currently testing an app for Android phones using the Espresso library with local devices as well as the Google Firebase Test Lab. For a good portion of these tests to be functional the phone running the test needs to connect to another phone or at least receive feedback from another device. I have been trying to do some research but really can't find anything on what I'm looking to do, seeing that it isn't a common practice.
Is there away to run Espresso or any small script directly on an Android device? I just need a script to sit idle or looping until it receives the information from the tested device, accepts it so the test can continue. I am not trying to alter any direct code in my app to auto accept things, I want to keep the app itself as untouched as possible. And I could manually do it on a small scale, but with Firebase I would like to test lots of devices at once or will run tests daily, sometimes when I'm not there for feedback. I want to automate this process as much as possible, so anything that could do that would help.
I've automated this process completely. The best thing is that you don't have to keep busy of your Android Studio and resources. Everything is done remotely.
You can use this plugin to setup Firebase test lab:
https://github.com/piotrmadry/firebase-test-lab-gradle-plugin
Hopefully you have CI (Continuous Integration) for your project.
So after your setup for test lab (you can define as many devices as you want)
You can create 2 parallel jobs on you CI:
First - it would build your project in normal way
Second - would run android task created by plugin ./gradlew uploadTestLab. After this job you will be able to look at results in Firebase Console.
I am using Selendroid(and a Perl script) and want to know if it's possible to automate pre-installed android apps such as Gallery, Clock, etc. using Selendroid?
You can use Appium with Selendroid to automate a system app in Android. Use UI Automator viewer and adb logcat to get the application details and objects.
You need to provide the application name and the activity for all applications in Appium, where as you only need to provide the apk file for Selendroid
I have and compiled .apk (rather than project source files) which I would like to test on my phone with Robotium.
How should I setup test to run it on my phone?
I'm confused because in every tutorial about Robotium these information that I should create an application project and launch the tests from that, but I have only .apk file (which i don't want to modify) and I want only to automate testing it on my phone.
TL;DR
How should I create test case to application which .apk i CAN'T open and it is on REAL device plugged via USB.
hope this helps
RobotiumForAPKFiles
Blackbox Tutorial 1
Blackbox Tutorial 2