mahendrabagul / multimodule-with-selenium-bootstrap

multimodule-with-selenium-bootstrap demo with multiple open source tech integrated

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

To run this project on your machine, clone this project using git's

git clone git@bitbucket.org:mahendrabagul/multimodulewithseleniumandbootstrap.git

After cloning, do some configurations given next.

Configurations

##################################################################################################################################

For Complete Setup

Run	./gradlew doProjectSetup 

(Note: Make sure 'mysql' is install with user 'root' and password 'root')

##################################################################################################################################

For Building DB (Note: For the first time setup, no need to run this command if you have already run above command)

Run ./gradlew buildDB

##################################################################################################################################

/**
(Note: The Following configuration is now available with gradle task 'doProjectSetup')
________________________________________________________________________________________________________________________________

Create database 'neova'

Create tables as:

DROP TABLE IF EXISTS `roles`;

CREATE TABLE `roles` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `role` varchar(20) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;


DROP TABLE IF EXISTS `user_roles`;

CREATE TABLE `user_roles` (
  `user_id` int(6) NOT NULL,
  `role_id` int(6) NOT NULL,
  KEY `user` (`user_id`),
  KEY `role` (`role_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `users`;
CREATE TABLE `users` (
  `id` int(6) NOT NULL AUTO_INCREMENT,
  `login` varchar(20) NOT NULL,
  `password` varchar(20) NOT NULL,
  `emailid` varchar(255) DEFAULT NULL,
  `firstName` varchar(255) DEFAULT NULL,
  `lastName` varchar(255) DEFAULT NULL,
  `country` varchar(255) DEFAULT NULL,
  `mobileNo` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`,`login`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;

Insert sample data as:

INSERT INTO neova.roles (role) VALUES ('admin'), ('moderator');
INSERT INTO neova.users (login, password) VALUES ('user', 'user'), ('admin', 'admin');
INSERT INTO neova.user_roles (user_id, role_id) VALUES (1, 2), (2, 1);

Move to your project's Directory.

Run ./gradlew tomcatinstall to install tomcat.

Run ./gradlew eclipse to generate eclipse nature project.

Run ./gradlew deploywar to deploywar.
________________________________________________________________________________________________________________________________

*/

##################################################################################################################################

Move to tomcat's bin directory and run startup.sh.

Visit http://localhost:8080/web for the baseprojects output.

##################################################################################################################################

For Running Pmd 

Run ./gradlew pmdMain from root project.

##################################################################################################################################

For Running Cobertura

Run ./gradlew cobertura from root project.

##################################################################################################################################

For Selenium Test 

Run ./gradlew runseleniumtest from root project 

##################################################################################################################################

About

multimodule-with-selenium-bootstrap demo with multiple open source tech integrated


Languages

Language:HTML 84.3%Language:Java 13.5%Language:Shell 1.0%Language:Batchfile 0.6%Language:CSS 0.4%Language:XSLT 0.1%Language:JavaScript 0.1%Language:TSQL 0.0%