Saturday, October 12, 2013

Basic use of Instruments for iOS and Mac application

Instrument tools is used to collect performance data of your iOS or Mac application. It also has a record option to record the whole data collected from your application. I use instruments tool to check with real memory and fps. Memory through Activity Monitor and fps through core animation. 

1) How do i download Instrument tool ?
- Instrument tool comes with Xcode 4 toolset. Xcode can be downloaded from Mac App store

2) How do you check with real memory and virtual memory?
- Select Activity Monitor through library and then select the target application and hit record button. In log section you would be listing with real memory and virtual memory of the application. You can also check with CPU utilization too.

3) Where is library, how to select target application and where is record and log section?
- Screenshot would explain you everything


 4) How do you check with FPS?
- Select Core animation in library section and then select the target application and then hit record button. You would be listed with FPS of your application.

Thursday, October 10, 2013

LDPI MDPI HDPI XHDPI XXHDPI


BrandDevicesPixel Per inch (ppi)
SamsungSamsung Galaxy Ace mdpi 165
Samsung Galaxy Tab 10 inch tabletmdpi 149
Samsung Galaxy Tab 2 10 inch tablet mdpi 149
Samsung Galaxy S hdpi 233
Samsung Galaxy S2 hdpi 217
Samsung Note xhdpi 285
Samsung Note 2 xhdpi 267
Samsung Galaxy S3 xhdpi 306
Samsung Nexus 10 inch tablet xhdpi 299
Samsung Galaxy S4 xxhdpi 441
Samsung Galaxy S5 xxhdpi432
MicromaxMicromax Canvas 2 A110 hdpi 196
Micromax Canvas Doodle A111 hdpi 185
Micromax Canvas 2 + A110Q hdpi 196
Micromax Canvas HD A116 xhdpi 294
Micromax Canvas 4 A210 xhdpi 294
Micromax Canvas Magnus A117 xhdpi 294
Micromax Canvas Turbo xxhdpi 441
HTCHTC Wildfire mdpi 125
HTC Desire hdpi 252
HTC Desire S hdpi 252
HTC Sensation hdpi 256
HTC Desire X hdpi 233
HTC One S hdpi 256
HTC One V hdpi 252
HTC Nexus One hdpi 252
HTC One X Xhdpi 312
HTC One xxhdpi 469
HTC One X+ xhdpi 312
HTC One M8 xxhdpi 441
GoogleGoogle Nexus One hdpi 252
Google Nexus S hdpi 233
Google Nexus 7 2012 hdpi 216
Google Nexus 7 2013 xhdpi 323
Google Nexus 4 xhdpi 318
Google Nexus 10 xhdpi299
LGLg Optimus one mdpi 180
Lg Optimus S   mdpi 180
Lg Optimus V  mdpi 180
Lg F70 mdpi 199
Lg G2 mini hdpi 234
Lg L90 hdpi 234
Lg G Pad hdpi 273
Lg Nexus 4 xhdpi318
Lg Nexus 5 xxhdpi 455
Lg G2 mini hdpi 234
Sony XperiaSony Xperia mini   mdpi 192
Sony Xperia P hdpi 275
Sony Xperia S xhdpi 342
Sony Xperia J hdpi 245
Sony Xperia Arc hdpi 233
Sony Xperia Pro hdpi 265
Sony Xperia Z xxhdpi 441
Sony Xperia Z2 xxhdpi 424
MotorolaMotorola Droid mdpi 265
Motorola Defy hdpi 265
Motorola Razr XT910 hdpi 256
Motorola Moto G xhdpi 326
Motorola Moto X xhdpi 312

If you dint find the device which you were searching please check this link to find few more devices which were added.

http://qualitytestingtips.blogspot.in/2016/02/brand-devices-pixel-per-inch-ppi.html

How do you identify ?
You identify the category by just checking the DPI
ldpi - 120 dpi
mdpi - 160 dpi
hdpi - 240 dpi
xhdpi - 320 dpi
xxhdpi - 480 dpi
xxxhdpi - 640 dpi

Will be updating with few more devices soon :) help me out if i am wrong or you can add some more devices in list if you know in which category the devices falls in.

Thursday, September 26, 2013

How to perform monkey testing using Shell? (Monkey Testing in Android)

What comes to your mind when you hear the word monkey, Yes it is trouble :D so as tester we always need to think like a monkey while testing to stress the application. Manual Monkey testing mainly concentrates on randomly tapping on the screen without any sequence, using two fingers to tap two different buttons simultaneously, scroll several times in a loop and so on. Looks very monkeyish right :O Do try to think like a monkey while testing :)
But rather than manually executing the monkey test if you could automate it wouldn't it be great? Yes its possible for android applications through terminal. Android has Monkey program which generates a random events like touch, gestures and taps. I use this for stressing android applications and games.

How do you execute monkey test ?

- Open terminal and change directory to platform tools folder 
- Type adb shell (./adb for Mac OS)
- Type monkey -p com.your.package.name -v 5000( You can change values. More the value more the time it runs)
Ex: monkey -p com.zzepod -v 10000
- Observe the screen.

You would see your screen automatically performing touch, gesture and tap operation. If your application doesn't crash after performing this automation then your application is quite stable.

Thursday, September 19, 2013

How do you install an android application through terminal in a Mac system

Installing application

- Open terminal and change directory to platform tools folder 

- Type ./adb devices to check if device is connected.

1) Normal installation type
./adb install .apk (file location)

2) If there are more than 1 devices connected then type
./adb -s (device number) install .apk (file location)
Please note: You can see the device number from ./adb devices

3) If you are connected to emulator and you want to install the apk only to device then type
./adb install -d .apk (file location)
Please note if there are multiple devices connected then an error is displayed.

4) Re-install the application
./adb install -r .apk (file location)

5) Install in sd card instead of internal storage
./adb install -s .apk (file location)

Few other commands which are useful

1) To get log from your device
./adb logcat

2) Uninstall application
./adb uninstall (pacakage_name)

3) Uninstall application without removing data and cache
./adb uninstall -k (pacakage_name)

4) Start server to ensure its running
./adb start-server

5) Kill server if its running
./adb kill-server

Saturday, September 14, 2013

10 things you will hear from an Android developer.

1. Have they completed this feature in iOS
2. Please do not compare our build with iOS.
3. We cannot provide any animation because android doesn't support those animations.
4. You cannot find a single android application without a crash. Nothing is stable.
5. Its not like iOS, we have to support multiple resolutions.
6. No, Its a feature in Android
7. Its a devices issue, we cannot do anything about it.
8. Its a Google developer phone, memory problem.
9. Sorry, we cannot customize anything. Its better to use built-in android things.
10. I hate apple