Wednesday 24 October 2018

Shell script for debugging Android Application in Wifi mode


Shell script for debugging Android Application in Wifi mode



To Start first confirm your device is available in ADB mode, open the terminal and type below cmd:

adb devices




Once device is available,type


adb tcpip 5555



Now Search for the IP address of your device by

`adb shell ifconfig wlan0 | grep 'inet addr' | cut -d: -f2 | awk '{print $1}'`



Remove your device from USB mode and connect it to the same wifi network as your system 

Now run the below command to 

adb connect <ip address of the device>:5555



The same step can be performed from the shell script I have written,just download the .sh file and run it with ./


Thursday 18 October 2018

How to configure desired capabilities in Appium

What are desired Capabilities:

Desired capabilities are the set of information send to the Appium server whenever we are starting a new session.

They help us in defining the Version of the device,Version of the OS, the device which we are going to use,Application under test path and not limited too......


Below is the screenshot to create desired capabilities from Appium Desktop Interface 

















Here is the Sample example of the desired Capability for Appium
        

Usually I keep them in Config File

package utils;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.remote.DesiredCapabilities;

import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.java_client.android.AndroidDriver;
import screens.android.HomePageAndroid;
import screens.android.LoginPageAndroid;
import screens.android.UserSettingAndroid;

public class CommonUtils {
DesiredCapabilities caps = new DesiredCapabilities();
public AppiumDriver<MobileElement> driver;
caps.setCapability("platformName", platformName);
        
caps.setCapability("deviceName", deviceName);
       
caps.setCapability("app", uri);
        
caps.setCapability("noReset", true);
        
URL remoteUrl = new URL("http://localhost:4723/wd/hub");
        
driver = new AndroidDriver<MobileElement>(new URL("http://127.0.0.1:4723/wd/hub"),   caps);
        
driver.manage().timeouts().implicitlyWait(20, TimeUnit.SECONDS);

}
}

Interview Experience with AMAZON for the role of Quality Assurance Tester

This role was for Digital/ IoT/Mobile Application based testing :)  Amazon is a dream company and everyone wants to work for that company a...

Popular Posts