Skip to content

Instantly share code, notes, and snippets.

View shankybnl's full-sized avatar
👋

Shanky Sharma shankybnl

👋
View GitHub Profile
@shankybnl
shankybnl / HibernateUtil.java
Created June 6, 2018 18:34
HibernateUtil.java
public class HibernateUtil {
private static final SessionFactory sessionFactory;
static {
try {
Configuration cfg = new Configuration();
cfg.setProperty("hibernate.connection.url", CommonUtil.loadTestData.getString("connection.url"));
cfg.setProperty("hibernate.connection.username", CommonUtil.loadTestData.getString("connection.username"));
cfg.setProperty("hibernate.connection.password", CommonUtil.loadTestData.getString("connection.password"));
cfg.setProperty("hibernate.dialect", "org.hibernate.dialect.MySQLDialect");
@shankybnl
shankybnl / BreachEngine.feature
Created June 6, 2018 18:36
BreachEngine.feature
@allbreach
Feature: Breach engine tests to verify breach in case vehicle ETD change.
Background: Assign pilots on activity. Two home pilots (of DELP1 with pilot id:1422 and 1423)
reseted to a pitstop (DELP1). One Vehicle is going from DELP1 to AMBP1 (1121286)
and other to JAIP1(894440).ETD of both vehicles is in next 2 hours
(ETD from current time) at DELP1.
Given Active pilots "1422,1423"
And Reset pilot 1422 to "DELP1"
@shankybnl
shankybnl / BreachEngineTags.feature
Created June 13, 2018 12:36
BreachEngineTags.feature
@allbreach
Feature: Breach engine tests to verify breach in case vehicle ETD change.
Background: Assign pilots on activity. Two home pilots (of DELP1 with pilot id:1422 and 1423)
reseted to a pitstop (DELP1). One Vehicle is going from DELP1 to AMBP1 (1121286)
and other to JAIP1(894440).ETD of both vehicles is in next 2 hours
(ETD from current time) at DELP1.
Given Active pilots "1422,1423"
And Reset pilot 1422 to "DELP1"