How to properly learn Android testing? [closed] - android

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
What are good ways to learn Android testing?
I'm interested in learning Android testing, I don't actually do TDD but write the tests and code together.
I read all the information at http://developer.android.com/tools/testing/index.html
and the 'Android Application Testing Guide' book and understand the basic concepts but there is almost no information or examples out there that I can find.
the book and examples are very basic and showing how to test a pretty simple activity with 2 EditText boxes,
I need to test more complicated stuff such as IntentService, AsyncTask, ResultReceiver, etc.. I'm interested in building my apps in a TDD or almost TDD way.
is there any way I can learn those things (books, blogs, examples, ...) or Android testing is something very uncommon ?

Question is a bit old and quite few things changed from the time it was asked.
Forget old Robotium, RoboElectric etc..Those were all just temporal and workaround solutions. Android Studio comes now with 1st party testing solution. JUnit Tests doesn't need to run anymore on device but on development host (aka your Mac/Pc machine) JVM. So read a lot, whatever you find (newer books, blog posts, google announcements) and experiment.
Use JUnit with Mockito, Espresso and UiAutomator. There will be more and more explanations on Android Developers pages about those tools. Happy testing ;)

You can write JUnit tests for Unit testing. If you want to test the UI, I'd recommend using a framework like Robotium they have lots of examples on their website, and it makes automated UI testing very easy.
I'm not sure about more advanced techniques, but a tool like Robotium coupled with some good unit tests will give you a good start.

Related

What are Android Architecture Components,LiveData and ViewModel? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
As a beginner it is very hard to understand what are these things
Is there any resource which can give a grasp knowledge of things in easy language?
In simple words:
For a long time Google didn't give any indication to developers on how they should write (architecture wise) their apps. But last year they've released a set of libraries that guide developers on how to structure their code by structuring the app in clear layers and reinforcing good practices. That's what they call architecture components.
LifeCycle, LiveData, ViewModel and Room are the main classes in these libraries. They go well with a MVVM architecture and if you apply them correctly (according to Google) your app will be easy to maintain and test.
As for resources, you can check the Google I/O release talk and the documentation. You can also find many online tutorials to get you started.
If you know nothing of android development it will be hard to understand the use of these components so I would advise you to study more about the SDK and then go back to these components. Note as well that you need to know about Reactive Extensions for android and java/kotlin too because these libraries rely a lot on them.

Travis VS CircleCi VS Jenkins [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I'm writing tests for my android project and since there are more than one developer on my team, we'd like the commits to auto-build when we push our code to Git so we are now thinking of integrating a CI system like Travis or CircleCI. Since there are more than one options available, I'd want to pick one that builds and runs Test cases automatically along-with building the main app so that the team members would be notified if a Test has failed and what changes they need to make in their code. I've tried Travis, its good , (with some headaches while configuring with github repo), i was wondering if any of you guys have tried the three in question here and suggest one for our purpose.
There is a very good comparison made between these three in this stackshare table.
It is community driven too, so it might be a good starting point to decide which one are you going to use.
Travis CI:
Github integration
Free for open source
Easy to get started
Nice interface
Automatic deployment
Tutorials for each programming language
CircleCI
Github integration
Fast builds
Easy setup
Competitively priced
Slack integration
Great customer support
Jenkins
Hosted internally
Free open source
Great to build, deploy or launch anything async
Rich set of plugins with good documentation
Tons of integrations
Has support for build pipelines
I'd like to throw in that Snap CI can also do this. Plus there's also stages to test things incrementally allowing for faster feedback.
Here's a post that brings a little more information to the table.
https://blog.snap-ci.com/blog/2014/07/22/why-snapci-and-travisci-are-not-the-same-thing/

Looking for functional GUI testing tool for Android without code access [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
I'm looking for a functional GUI testing tool for Android without the base of source code. Most things I found are JUnit testing frameworks that extend the ActivityInstrumentationTestCase2<Activity> from Android SDK.
But I look for a tool that provides f. exe. button clicks, enter String to txt fields and so on without knowing the Activity class name, package or further information.
Perfect would be something that finds Widgets on a already started Android app, can interact with it from an other application without the information I told above.
I was having a look at Robotium RC, but found no information, tutorials etc. just the JavaDoc and the .jar file.
edit: It should be open source
I think you should look at the standard monkeyrunner android tool. With the help of this tool you can start your application, emulate drag gestures, press on buttons, tap on the screen. To automate the process of creation of these scripts you can use monkeyrecorder.py script.
You can try bot-bot. Following is the link:
http://imaginea.github.com/bot-bot/
It can integrate itself with an apk. It works best if you have the source code of the app under test.

Android UI examples [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I am new with Android UI and I am looking for some resources about best practices to design a UI (examples of UI elements, tutorials, etc.)
I've been looking in Google or http://developer.android.com/resources/tutorials but there is nothing helpful at all.
Can anyone provide me some resources/links ?
There is actually a nice web which explains the most usable UI Design patters used by many apps already: http://www.androidpatterns.com/
If you have no experience with Android UI but you know a little Java already, maybe this is something for you:
SimpleUi ( https://github.com/bitstars/SimpleUi )
The generated UI (code below):
The complete code to create this Android UI:
I use it in real applications, not only for fast prototyping or dialogs and its well tested over the years. The concept is based on the model view control principle and for most common scenarios there are ready to use components which automatically look correct on any device. I don't say it should be used for any UI (e.g. listviews should be done by hand) but for most usecases this should be quite handy ;) Oh and feel free to fork it and improve it further if you want
UI Patterns, shown on the Twitter app, but they're common on Android in general:
http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
http://www.androiduipatterns.com/
Depending which pattern you want to implement, there are open source projects/samples out there, i.e. for the Quick Contact Bar, etc.
Check anddev.. normally there are nice examples of UI elements. Also some nice tutorials at mobiforge 1 and 2.

Good UI practice in Android, are there some sample code? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I read carefully the good UI practice from the Google Dev Blog; http://android-developers.blogspot.com/2010/05/twitter-for-android-closer-look-at.html
and I found that they are right and twitter is an application that I really love for its User Friendly Interface ( like the Google IO app too)
As I spend most of my time developping the interface of my application, I found that a waste of time and the results are quite bad. I think that a lot of dev's like me have maybe a lack of photoshop skills and "ergonomy" ( does this word exist in english?).
I have read also on Twitter Blog that the application would be Open source: http://blog.twitter.com/2010/04/twitter-for-android-robots-like-to.html
But I havn't heard about any code release.
As there are to many things to care, regarding to the Google dev blog, I would like to know if there is an open source application that could learn me how to use all these pattern ( search bar, moving bitmaps, QuickActions, etc.)
I know that the answer to my question is not a simple line of code, but maybe an open source project or reference application to learn how to do the UI tricks as simple as they are on the Twitter app.
Thank a lot for any guide/blog/code sample.
But I havn't heard about any code
release.
The Twitter application has not been released as of the time of this writing.
I would like to know if there is an
open source application that could
learn me how to use all these pattern
( search bar, moving bitmaps,
QuickActions, etc.)
The Google I|O 2010 app is open source. How closely that app's implementation of the UI concepts meets the Twitter app's implementation of the same is unknown.

Categories

Resources