Steth0 – Great Debug brige for Android Apps

Stetho is one of the great debug tool i have come across during my android development. it has helped me to identify the issue with any Rest call and also fix them easily. In addition to it, it can access to the DB information of the clients…wow…one tool to explore lot of android apps in ease. refer http://facebook.github.io/stetho/ – ( Features, setup, How to use it…etc).

Configuration

Screen Shot 2016-03-31 at 10.45.33 am

Integrating with App

Its best suggested to use it only in Debug mode. Try to initialize stetho in your application onCreate.

if (BuildConfig.DEBUG) Stetho.initializeWithDefaults(this); // integrate with Stetho

Also help your http client to know about stetho by adding the below code.

if (BuildConfig.DEBUG) networkInterceptors().add(new StethoInterceptor()); // debugging with stetho

Voila…you are done now with integration. Time to launch the tool

Using Stetho tool

When enabled, developers have access to the Chrome Developer Tools feature natively part of the Chrome desktop browser. Just launch your chrome browser and type

chrome://inspect/

refer the screenshot below. Just click Inspect, Stetho launched

Screen Shot 2016-03-31 at 10.55.02 am
Resources Tab : access DB info of the app. Quite easy.

Screen Shot 2016-03-31 at 11.05.09 am

Network tab: Provides network call with detail headers, param and response.
Pretty good info if your app is using lot of Rest calls.

Screen Shot 2016-03-31 at 11.12.48 am

I haven't fully realize the tool, but it worth mentioning that it helped me
in development.

Happy Coding 🙂

Appium Setup – Test tool

Appium Setup – Test tool for Mobile Apps

Installations steps:

·    Brew: Package Manger Install – helpful in installing most apps/tools for mac OS.

Brew install command in cmd

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 

Link: http://brew.sh/

Check Status: type brew doctor – To Check for any issues. If No Issues, then you should be able to see the msg  “Your system is ready to brew”

·    maven

Using brew, you can install the maven. Its very easy. Just type the below command in cmd

“brew install maven”

·     Appium – Automation testing tool for IOS / Android

brew install node      # get node.js
npm install -g appium  # get appium

 Link: http://appium.io/

To verify that all is setup accordingly for each platform, run the following from command line:

"appium-doctor"

·     Appium Server

  • Automation tools works on client-server based model.
  • Test Client will be your app which you will testing with your test instructions
  • Server will be appium server. To execute the appium server, type the below command in Terminal.
Start Appium Server:  "appium &"

Appium GUI

You can also use GUI Interface to run the Appium server, configure the capability and also use the Appium inspector to identify the UI elements (similar to Android UIAutomator). For instructions on setting up GUI interface, checking out code etc.