Posts

Mobile Application Test Automation Strategy

 Need for Test Automation Strategy Mobile applications are evolving and growing at a rapid pace. New features developed for the applications are released incrementally within a short span of time to stay competitive and also to sustain the business. Automation test strategy plays an important role in streamlining the process and defining quality testing cycles.  Selecting the right automation tool Mobile automation tool selection plays a vital role in the automation strategy and can be a tedious task. There are many UI tools available in the market and choosing the right tool depends on many factors. UI automation tools can be widely classified into two types.   Image-based recognition tools Object-Oriented tools. Image-based recognition tools are less preferred over native object recognition tools. Image-based tools work by identifying the images. The main limitation of these tools is maintenance, application UI changes frequently during the development process, and any minor changes

Docker - Failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: open .Trash: operation not permitted - solution security and privacy

Image
Docker Error Message - Failed to solve with frontend dockerfile.v0: failed to read dockerfile: error from sender: open .Trash: operation not permitted - solution security and privacy OS: Mac Solution: Navigate to Security and Privacy  Select the Privacy tab and select Full disk access  Enable the terminal checkbox  Now try running the docker run command again to see if the error is fixed.

Experitest-Appium-Studio-Sample-test-automation-framework

This is a sample test automation framework to get started with android and iOS automation using Experitest Appium Studio. Experitest Appium Studio is an IDE designed for mobile test automation development and execution using the Appium\Selenium WebDriver API. With the latest release of Experitest Appium studio software it allows the user to eleminate prerequisites such as the requirement to develop iOS tests on MAC OSX machines. Thus eradicating the need of MAC machine to automate iOS application. Pre-Requisites : Install Experitest Appium Studio Community edition from- http://experitest.com/appium-studio/ and follow configuring devices with the studio from the documentation provided. Java installed and Environment variables set Maven plugin installed in eclipse TestNG plugin installed in eclipse. Getting Started : To Run the existing project :  1.Run the Experitest Appium Studio software once installed.  2.Connect an android device and add the device in the studi

Maven - Java version changes automatically to 1.5 after maven update

Maven - Java version changes automatically to 1.5 after maven update In my maven project whenever i update the project, my project would default to J2SE-1.5 execution environment. To overcome this issue add the following properties in the POM.xml <properties> <maven.compiler.source> 1.8 </maven.compiler.source> <maven.compiler.target> 1.8 </maven.compiler.target> </properties> Where 1.8 is the java version of your current JDK/JRE. Another way of doing this is adding a with the maven-compile-plugin as <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.2</version> <!-- or whatever current version --> <configuration> <source>1.8</source> <target>1.8</target> </configuration> </plugin> </plugins> </build>

ADB shell commands

Image
The Android Debug Bridge (adb) is a command line tool that helps user to interact or communicate with an emulator or a connected real device. Mentioned below are the list of ADB COMMANDS available: ADB Debugging adb devices adb forward adb kill-server Wireless adb connect adb usb Package Manager adb install adb uninstall adb shell pm list packages adb shell pm path adb shell pm clear File Manager adb pull adb push adb shell ls adb shell cd adb shell rm adb shell mkdir adb shell touch adb shell pwd adb shell cp adb shell mv Network adb shell netstat adb shell ping adb shell netcfg adb shell ip Logcat adb logcat adb shell dumpsys adb shell dumpstate Screenshot adb shell screencap adb shell screenrecord [4.4+] System adb root adb sideload adb shell ps adb shell top adb shell getprop adb shell setprop

Using Android Key Events via ADB adb shell input keyevent

With the help of adb shell input keyevent, either an event_code or a string can be sent to the device. List of Key Codes : 0 -->  "KEYCODE_0" 1 -->  "KEYCODE_SOFT_LEFT" 2 -->  "KEYCODE_SOFT_RIGHT" 3 -->  "KEYCODE_HOME" 4 -->  "KEYCODE_BACK" 5 -->  "KEYCODE_CALL" 6 -->  "KEYCODE_ENDCALL" 7 -->  "KEYCODE_0" 8 -->  "KEYCODE_1" 9 -->  "KEYCODE_2" 10 -->  "KEYCODE_3" 11 -->  "KEYCODE_4" 12 -->  "KEYCODE_5" 13 -->  "KEYCODE_6" 14 -->  "KEYCODE_7" 15 -->  "KEYCODE_8" 16 -->  "KEYCODE_9" 17 -->  "KEYCODE_STAR" 18 -->  "KEYCODE_POUND" 19 -->  "KEYCODE_DPAD_UP" 20 -->  "KEYCODE_DPAD_DOWN" 21 -->  "KEYCODE_DPAD_LEFT" 22 -->  "KEYCODE_DPAD_RIGHT" 23 -->  "KEYCODE_DPAD_

Challenges in Mobile application testing

Image
Why Mobile application testing ? Mobiles and Smartphones are part of our daily lives today. Gartner says by 2017,  mobile apps will be downloaded more than 268 billion times generating a revenue more than $77 billion. So there will be a increased use of mobile applications all over the world. In our day to day life smartphones has changed our lifestyle from making tasks easier for us.   As more and more applications are getting developed for Mobile Devices including Smartphones, Mobile Application Testing is becoming very important part of Mobile Application Development Ecosystem.  Many MNC are investing a lot in testing mobile applications so that the application developed gives a good experience for the users using it.  Challenges in Mobile application testing: >   Variety of Mobile Devices : The biggest challenge for mobile application developers and testers is to develop an application for large number of devices and to ensure it is bug free. The hardware diversity of mobi