Thursday, March 21, 2019

How to capture an Android chrome console log?


Today I am going to tell you about how to capture android chrome console log.
Chrome DevTools allows users to capture a console log using a Chrome browser on an Android device, while connected to a computer, using this technique you can debug a website of android chrome.


Requirement :

1.Chrome 32+  on your Mac/Windows machine
2. A USB cable for Android phone to connect to Mac/Windows machine

On Android:
1.OS Android 4.0 +
2. Chrome Browser On Android
3.Enable USB debugging by going to Android Developer option(Enabling this will allow you collect a mobile device log and web console log from the device)


 How To enable USB Debugging?

1.Go to  an Android Setting>>System>>Developer option>>Enable USB Debugging

Those who don’t see developer option please follow this first:

1.Go to Settings > About Phone > >Tap on "Build number" 7 times (you will be notified that the developer options are enabled.)


Now let see how to capture log

1.Open the Chrome browser on your dev machine (Mac/Windows)
2.Open the Chrome browser on your Mobile device as well
3.Connect android phone to dev machine using USB cable
4.a Click on 3 dots menu on the top right corner of the chrome window on your  dev machine
4.b. Click on More tools>>Developer tool

4.c Click on 3 dots menu on  devTool windows , click on Remote devices , new tab get open (Here you can see your connected mobile devices) Note: Discover USB device enabled
  


5.Select the device which is connected on your dev machine
6.You can launch the Website on your mobile chrome browser by either of  this following ways



    6.a.Enter the URL into text box  which shows on the Computer browser, and click on Open





   6.b Or else Enter the URL link in the mobile device web browser’s address bar
   7.Once the website does get open you can observe the inspect button on your computer browser
   8.Click on that inspect button







There you can see the console log J


Monday, June 11, 2018

Mirror image your android phone to PC wirelessly


Hello, There , Today I am going to talk about how to connect phone to your laptop wirelessly.
Actually I was testing the app on my  newly mobile OnePlus 5T :) , normally I use Droid@Screen app to view phone on my PC but unfortunately the droid does not mirror my phone screen on PC though the ADB installed, every prerequisite things already done, but no success using Droid but I had to do recording by Mirroring phone screen on my PC , then I came across  “Connect” app on Windows 10 who was my saviour that day.

Prerequisite:
1.Your both devices should be connect to same network
2.Connect app which is available in Windows 10. On my (Windows 10 home) laptop "connect" app is already available. So, I need to just project it. 

Steps:

1.On your Laptop(Windows10) , Just press Windows key and type : connect

2. Choose the trusted Windows Store app result from the top.







3.On you Android Phone from the top of the screen and select the Cast icon and select your PC,On some phones, it will be a button labeled ‘Cast’. Others might say ‘Screen Mirroring’, In my case- Cast




4.Tap on Cast the pop up appear

 5.You will see notification on your pc while connecting 

This is look like on phone after connecting 
And here is  phone mirror on PC :) 





Pros:
1.ADB installation is not required  
2.No need of USB ,  Wirelessly you can mirror your Phone to PC
3.Display your android screen in portrait as well as Landscape mode which is worth

Corns:
1.Not able to mirror phone while doing offline testing

Monday, October 23, 2017

Screencast - MP4 format Free tool

Today I am going to talk about Screencast O'Matic , one of the Screencast tool.

Before the Screencast O'Matic , I used to use Jing and I was happy using that tool , but On one day I got the mail and request from the client that they want the videos in MP4 format and Jing gives the output file in SWF format and I am not at all intrested to do converison of the videos from SWF to MP4 .

So, I am looking for the tool which should be free and gives me o/p in mp4 format, and Screencast O'Matics solved my problem.Yes, you have read right Screencast O'Matics is free tool,thus they have paid verison too.But as far as now, free tool of Screencast O'Matics solved my all problem.

Access the link is here:
   https://screencast-o-matic.com/screen_recorder

The Key feature of this tool is:
1.No need to install the software
2.It is Free
3.It's gives the output in MP4 format which save more space on your disc
4.It has Record voice over, webcam, pc screen
5.It can be use both MAC as well as windows too.

Every coins has two sides thus,Screencast O'Matics has
It has working limitation , Without internet access you can't able to do recording,

There are limits of free version, it does not allow to recod the video more than 15 minutes those who want to record longer.

But Still I can feel this tool is very easy to use , give it a try.

Monday, July 3, 2017

How to access Android Testing menu ?



In this post I will let you know how to access the Android Testing menu.

When we test the application on the various android devices, most of the time we have to  give  details info about device , normally  those info will get by going to setting of the device.

But there is a code which gives you phone information , usages statistics  and Wifi information those info gets by entering a single code on your dialer. The code is *#*#4636#*#*

Once you dial the above mentioned code the menu appear and you will get surprise that’s menu name is “testing”

But one thing which need to be very careful when accessing the hidden testing menu , You should know what you are accessing.


I have dialed this code in my LG Nexus 5 /6.0.1 and it does work .



Tuesday, January 17, 2017

How to collect android log Using ADB?


In this post, I will let you know that how to collect android log using ADB on Windows.

To collecting log using ADB are always useful :  Why ?

1.You don't need to use third party tool

2.Even If you don't have IDE installed then also your work done because of the ADB

3. Sometimes Android log gets overwritten.so its always better to use ADB

I mostly recommended to collect log using ADB specially when unexpected crashes occur.


Prerequisite:

1. Download and install the Android SDK for windows 

2. Launch the Android SDK Manager, and choose to install Android SDK Platform-tools

3. Install USB Drivers 

4. On the Android device, enable USB debugging

5.Connect the Android device to a Windows computer via the USB cable

Steps:

1.Go to the directory where the ADB executable is located. 

2.Shift+Right Click and select "open command window here"

3. Run the following commands: “adb logcat -c" ---> this use for clearing logs.

4. Reproduce the issue.

5. Then, run the following command to capture the logs in a file:

    “adb logcat -d > Name_of_theFile.txt"


Thursday, May 19, 2016

Difference between Agile model and Waterfall model

NO
NO Agile model Waterfall model
1 Agile model is a combination of iterative and incremental process models The waterfall model is a sequential design process
2 Agile uses adaptive approach,no detailed planning,The product is tested very frequently, through the release of iterations In Waterfall detailed planning is there and Product is tested at end.
3 If there is Error found it can be fixed in the middle of the project. Testing done at the end,so if there is error found in requirement or design doc then project has to start from beginning
4 Testers and developers work together Testers and developers work separately
5 At the end of every sprint, user acceptance is performed. User acceptance is performed at the end of the project
6 The project is executed in short 2-4 weeks iterations. Iterative approach uses here The Project is executed in phased where outcome of first phased is input of the next phased
7 Communication between business dev,coder and tester require, Even Customer interaction is the backbone of Agile Developer does not involve in requirement planning process.
7 Suitable for fixed or changing requirements Suitable for steady requirements

Thursday, February 25, 2016

Basic Step for Android app testing

Android: Android is an operating system which designed and implemented by Google, Android's source code is released by Google under open source licenses. It’s based mainly on Linux OS which forms the kernel of Android and above that kernel a whole framework exists. The kernel and the core libraries are written in C/C++ and the API, through which one can develop his/her applications, uses mainly Java.


Installation of Android app:

1.By using Google play store search for the app which want to install, After that click on Install button and install the app.

2.Without Google play store-Android App comes in .apk file format.In this case download/copy the .apk file on your android base device , Opening of that file installation process start.

Note: Installation of apps from unknown sources one thing which need to do enable the unknown sources by going to Settings -> Applications -> Unknown sources in android device.



Testing android app is very important.because app run on devices with limited memory, CPU power and power supply.
Also Application behavior depends on many factor like network connectivity,device setting.So,.
Testing android app on all possible configuration is not possible , So need to test application at least on one device with the lowest possible configuration and on one device with the highest available configuration.
To testing android app we need to create correct android testing strategy which included unit test, Integration test ,Operational test and System test.

Beta test:
This testing is done once the particular build was moved from the QA, This was achieved by asking the beta users to browse every single page within the mobile app, to ensure that every bug was fixed before the app was released.
Device Test:
The App is tested across multiple OS version/Devices using Real Devices.