Road to setup and configure Git repository.

In this post I will show you how to setup Git repository on windows machine.
Installation:
1 Download git exec file from link: click
2 Click on downloaded git exe file for installation.

Road To NUnit setup, test execution with a simple test script

NUnit:
Nunit is an open source unit testing framework for all .Net language

Setup NUnit: 
Download nunit exe from link: download
Install downloaded exe in your machine. your nunit GUI look like below screen when you open nunit

Road to reading SVG graph values in Webdriver

Here is example of the reading svg graph values in java webdriver.
package com.test;

import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

public class ReadSVGChartData {
 
    public WebDriver driver;
 
    @BeforeSuite
    public void setUp(){
         driver = new FirefoxDriver();
         driver.manage().timeouts().implicitlyWait(5, TimeUnit.SECONDS);
    }

    @AfterSuite
    public void testDown(){
        driver.quit();
    }
 
    @Test
    public void testChart1() throws InterruptedException {
  
        driver.get("http://yuilibrary.com/yui/docs/charts/charts-column.html");
  
        //read chart value
        List elements = driver.findElements(By.xpath("//*[contains(@class,'yui3-svgRect yui3-seriesmarker')]"));
        WebElement toolTip = driver.findElement(By.xpath("//div[contains(@class,'yui3-chart-tooltip')]"));
        System.out.println("Specify Chart Type Data");
        for (WebElement el:  elements)
        {
             el.click(); 
             String chartValue = toolTip.getText();
             System.out.println(chartValue);
        }  
    }
 
    @Test
    public void testChart2(){  
        //open url
        driver.get("http://yuilibrary.com/yui/docs/charts/charts-dualaxes.html");
  
        //read chart value
        List elements = driver.findElements(By.xpath("//*[contains(@class,'yui3-svgCircle yui3-seriesmarker')]"));
  
        WebElement toolTip = driver.findElement(By.xpath("//div[contains(@class,'yui3-chart-tooltip')]"));
        System.out.println("\nDual Axes Chart Data");
        for (WebElement el:  elements)
        {
             el.click(); 
             String chartValue = toolTip.getText();
             System.out.println(chartValue);
        }
    }
}

Road to execution of SoapUI Project using maven

In my previous post “Click” I have posted how to create JUnit test for SoapUI project. In this post I will show you how to execute SoapUI-JUnit project using maven
Create java maven project as following directory.

SampeProject
                    src/main/java
                    ******** com/ maven/ example
                    **************************
                    src/test/java
                    ******** com/maven/example/
                    ********************** SopUIJunitTest.java
                    pom.xml

Road to setup git repository with Jenkins

To set up Jenkins with git repository follows below steps:
1. Launch your Jenkins server.
2. Open Jenkins url.
3. Install “GitHub Plugin” into Jenkins.
4. Install Git in your machine.

Road to setup and create first Appium Webdriver android script in Java

About Appium:
Appium is open source automation tool for iOS and android application supported by Sauce Lab. It is cross platform, supported Native, Hybrid iOS and android application. At backend it uses webdriver JSON wire protocol to communicate with iOS and android applications.
Appium supported many languages like Webdriver. You can write your test scripts any language that has selenium client library.
Appium support UIAutomator framework for ios and android library (For newer Api) and use selendroid for older android platform.

Road to find android application element details using UI Automator Viewer

In this post I will show you how to find element details of android application using Android “UI Automator Viewer”. Following are the steps:
1. Open android application on emulator or real device. Like I have opened below app on emulator.

Execution of Calabash test on multiple Simulator

In this post I have run below calabash android scenario in two simulator

Feature: Login feature

  Scenario: As a valid user I can log into my app
    When I press "Login"
    And click on web menu
    And enter into input field
    And enter into text area
    And click on Radio button B
    And click on check boxes
    And click on go button
    And set second device
    And click on web menu
    And enter into input field
    And shut down test server
    And set first device
    And click on web menu
    And enter into input field 


Running and closing application for each monkey talk test method

From couple of days I was looking that each monkeyTalk automation script would run individually without affecting each other, It means that AUT (Application Under Test) at initial stage for each test. 
So I think that if I launch application before running test and closing after test execution, I will get solution.

After searching, I got some adb commands to launch and close installed application. Below commands are for the same:
To launch Application:

adb shell am start -n com.gorillalogic.monkeytalk.demo1/.RootActivity

Where “com.gorillalogic.monkeytalk.demo1” is application package name and “RootActivity” is main activity class name.
To close application

adb shell am force-stop com.gorillalogic.monkeytalk.demo1

Where “com.gorillalogic.monkeytalk.demo1” is application package name.

Mobile app automation using MonkeyTalk Java API

Gorilla Logic has released its MonkeyTalk api for java. We can automate mobile application using java language for both iOS and android application. In this post I will show you how to setup and created test scripts in java. Following are requirement to setup:
Setup:
  1. Install Java on your machine.
  2. Download MonkeyTalk from link: “https://www.cloudmonkeymobile.com/developer-resources/downloads”
  3. Unzip downloaded monkeytalk zip file in your machine.
  4. You need to setup your application with monkeytalk agent, 
  5. Run application on emulator or devices.