Skip to main content

Posts

Showing posts from 2016

Android Debug Bridge (adb) Wireless Debugging Over Wi-Fi

We mostly connect our Android device to our computers with a USB cable for debugging purposes. It is possible to use adb over a wifi connection than a USB to save some wire-related hassles in our lives. The process is super simple, let’s go through it quickly. STEP 1 Make sure both your adb host computer and Android device are on the same Wifi network. STEP 2 Connect the Android device with the computer using your USB cable. As soon as you do that, your host computer will detect your device and adb will start running in the USB mode on the computer. You can check the attached devices with   adb devices   whereas ensure that adb is running in the USB mode by executing   adb usb . 1 2 3 4 5 $ adb usb restarting in USB mode $ adb devices List of devices attached ZX1D63HX9R  device STEP 3 Restart   adb   in tcpip mode with this command: 1 2 $ adb tcpip 5556 restarting in TCP mode ...

Resigning APK file for automation Testing

Resigning app means we are signing apk file by same signature as we have in our system. Why Resign Sometime for automation of android application, resigning of apk file is required as while working with few automation tools we should have same signature in apk file as well as on the system from which cases need to be triggered What is resigning? All apk file holds complete information about developer of that application For some automation tools, we should have same signature in apk as well as on the system from which cases need to be triggered. For this first we need to generate debug key on our system and then we need to sign apk file using debug key. Process to resign an android application Step 1:  Start Debug Mode in phone and connect with system through USB Step 2:  Check device unique code                Open Command prompt and write  adb devices Step 3:  Now place my application  apk fil...

How to re-sign a Android apk file for testing

There are two possible cases how to sign the apk file. The first one is really simple, if you build the Android app you want to test on your own within eclipse you don’t need to resign the apk file. The signatures should be the same. The second case is more complex. If you get the apk file you have to test e.g. from your developers, from jenkins or from the market you have to resign the app. Do the following steps to resign it with your keystore: Rename the apk file into a zip file, e.g. Name.apk = Name.zip Unpack/ Unzip the zip file Delete the META-INF folder Repack/ Rezip the folder again to a zip file Rename the zip file again to an apk file Open a terminal window / Command prompt and enter (the jarsigner tool is located in the bin folder of your installed java sdk jarsigner -keystore ~/.android/debug.keystore -storepass android -keypass android APPNAME.apk androiddebugkey Enjoy Testing !!!!!!!!!!!

Handling JSON responses in Apache JMeter

There are various types of   post processor elements   that we can use out of the box when handling responses in a JMeter test plan. For example,   Regular Expression Extractor   can be used to capture a specific value or set of values from a XML, HTML or JSON response. However, handling JSON responses through the default regular expression extractor will be a daunting task when the JSON response becomes complex. When handling complex XML responses, Xpath extractor is the obvious choice in JMeter. Similarly, it will be quite efficient to have a similar post processor element to handle complex JSON responses. JSONPath  is a way to extract parts of a given JSON document and is now available in many programming languages. In this simple post, we will look at how we can use JSONPath expressions to extract values from JSON responses in JMeter. Pre-Requisites: Download and install JMeter version 2.8 or later Step 1 Download  this  JMeter plugin libr...

Mobile Performance Testing: Record Script in JMeter

Before we jump to how to do it we need to understand why to do it. Mobile applications can be classified into below types: Native Apps -  Applications downloaded from online market/store and installed on specific device are categorized as native mobile apps. These applications are developed by using specific programming language (like Java for Android and Objective-C for iOS) and device specific API. These applications are static applications and they do not communicate to sever. Games and applications downloaded from app store or market are examples of native apps. Web Apps - Applications accessed through internet on mobile browsers are called mobile web apps. These applications are developed with web technologies like HTML, JQuery and JavaScript. Popular social media applications like Facebook ( http://m.facebook.com ) and Gmail ( http://m.gmail.com ) etc. have their separate mobile based web apps which are very famous among mobile users. Hybrid Apps-  Combination of web...