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