Posts

Showing posts from 2017

Java DataBase Connectivity JDBC

java database connectivity jdbc Test data from database/validate database Mysql.-Installation: Database connectivity with java:- **driver(jars) to connect different DB ---Install the MYSQL-->start the services of Mysql---> cmd -->path of mysql BIN -->mysql -u root(to connect using user id 'root') create a database: create database sudheer; show databases; create table; inserted data into table; ----------------------------------------------- add mysql jar to ecllipse: Java code: Connetion (interface)->it helps to connect to the DB     Connection conn = null;                 String url="jdbc:mysql://localhost:3306/";(path of mysql)         String driver="com.mysql.jdbc.driver";         String dbName="sudheer";[connecting to DB]         String Username="root";         String passwor...

Maven build creation

Image
1-Download the maven and unzip 2- Maven life cycle: 1-MAVEN COMPILE - java classes,code  will be compile (maven compiler plugin )-TO COMPILE  2-MAVEN TEST - test cases, unit,regression,functional(maven surefile plugin)-TO TEST  3-MAVEN RESOURCE --jar-- >JAR's/WAR's/EAR's--Resources(maven Resource plugin)- TO CREATE RESOURCE JAR'S AND WAR'S web application we create war files(will give to QA team and they will test it) Maven dependecy - pom.xml Commands: 1)mvn clean install ---> it will execute all complete life cycle maven compile , maven test and maven resource 2)MVN test :----> execute only test cases 3) MVN package -DskipTests : --->  SKIP the test cases and create Only build. OR 4)mvn package -Dmaven.test.skip=true Steps for selenium maven build creation <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   xs...