How do I use Robotium step-by-step?
-
I have searched almosty everywhere. I have collected many tutorials like these on the bottom of this post. But none of the tutorials tells me how to start writing anything in Robotium while I have only .apk installed on my phone :( So... 1. I installed ADT -> It's empty ADT (No projects) 2. Then what? Add Robotium library? Where when I do not have any Application Project like there is on tutorials :( Should I write Robotium test? But how when I don't have any Application Project. Only .apk Tutorials said that I should create test Project for my Application Project. But I do not have any Application Project! I only have .apk on my phone which i really, really want to test :( - Robotium Getting Started https://code.google.com/p/robotium/wiki/Getting_Started - Set Up Android Working Environment - Design Simple Android Calculator Application - Test Android Calculator White Box Testing - Test Android Calculator APK Black Box Testing - Common Robotium Issues- Video Tutorial https://code.google.com/p/robotium/wiki/RobotiumTutorials --- http://www.slideshare.net/MindfireSolutions/android-automation-using-robotium --- --- http://www.slideshare.net/mobilemarch/robotium-tutorial --- http://www.vogella.com/tutorials/Robotium/article.html
-
Answer:
Robotium is meant for testing Android user interfaces for which you have the source code. You only have the .apk, which is the finished Android application. If you do not have the source code, Robotium is of no use to you. The idea of Robotium is that you are testing your code and looking for problems to fix. It sounds like you are trying to automate a finished application. I will hunt around for something to automate Android applications, and if I find something interesting, I'll update my answer.
Kris Larson at Quora Visit the source
Other answers
It looks like you want to run Robotium automated tests against a project for which you don't have access to the source. Sounds like you will want to follow instructions close to this: https://code.google.com/p/robotium/wiki/RobotiumForAPKFiles
Geoffrey Wiseman
I think that you first need to learn write Android apps. You seem to have never made any android apps. First Go through the basic tutorials to get Started with Android apps and then read the Tutorials of Robotium to undertand what they are talking about.
Rishabh Poddar
Is it that you only want to use Robotium for .apk testing? Robotium is mainly for the dev level testing. To get the maximum out of Robotium you should have a source code with you. In case you want to test the .apk file only, there are other tools too like Appium that are coming out well and are launched as OSS.
Vipul Gupta
An APK file is essentially a zip file (change extension and you would know that). It contains signing information. For testing on Android, the test and the APK under test, both should be signed with the same key. So, you need to resign the APK file with your debug key. In one of the help documents of Robotium, it is explained how to resign an APK file. (I can recollect that there is a tool. You can also do it manually using unzipping, jarsigner and zipalign) You can very well use Robotium in a pure black box manner. The only difference in case of code availability is that during building, the app code and test both automatically get signed with the same key. For black box (source coide of app not available), there are additional steps.
Rahul Verma
I think you should be going for a simple app for android first. Do it by "making your device(phone) a developer " . You can do this by going in About phone--> build number. Click on it 7,8 times. You'll be shown as an android developer. After that, follow steps for making an app. Try running it on emulator before your phone. Write the code properly. You can refer 'android developer' site for that(search On google) . Your get the concept of using robotium after that for sure.
Saloni Verma
Related Q & A:
- How should I use Youtube API?Best solution by Stack Overflow
- How do I use "John et. al. 1990 " citation for more than two authors?Best solution by tex.stackexchange.com
- How can I use SSL with django?Best solution by Stack Overflow
- Where do I find my Yahoo briefcase and how do I use it?Best solution by Yahoo! Answers
- How do I use chat when I am in a room?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.