Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
84 changes: 84 additions & 0 deletions HeeeyWebSite/Chrome/AddProductChrome.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Chrome;

import contentspeed.Constants;
import contentspeed.CosCumparaturi;
import contentspeed.ProdusCeai;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

public class AddProductChrome {

static ProdusCeai objProdus;

static CosCumparaturi objCos;

static WebDriver driver;



@Test
public void AdaugProdusLaCos() {

try {

objProdus = new ProdusCeai(driver);

objProdus.Actions("Anda", "Cristea", "andadeacu10@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9");



//objCos = new CosCumparaturi(driver);

//objCos.Completeaza("Anda", "Cristea", "andadeacu10@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9");


} catch (WebDriverException ex) {

ex.printStackTrace();
//driver.quit();
}
}

@BeforeClass
public static void setUpClass() throws Exception {

System.setProperty("webdriver.chrome.driver", "D:\\Proiecte\\selenium-java-2.47.1\\selenium-2.47.1\\chromedriver_win32\\chromedriver.exe");

ChromeOptions options = new ChromeOptions();

options.addArguments("--start-maximized");

driver = new ChromeDriver(options);

driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

driver.get(Constants.URLRoot);
}

@AfterClass
public static void tearDownClass() throws Exception {

driver.quit();
}

@BeforeMethod
public void setUpMethod() throws Exception {
}

@AfterMethod
public void tearDownMethod() throws Exception {
}
}
70 changes: 70 additions & 0 deletions HeeeyWebSite/Chrome/ContactPageChrome.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Chrome;

import contentspeed.Constants;
import contentspeed.ContactPage;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

/**
*
* @author andad
*/
public class ContactPageChrome {

public ContactPageChrome() {
}

static ContactPage objContactPage;

static WebDriver driver;

@Test
public void verifyContactPage() {

try {

objContactPage = new ContactPage(driver);
objContactPage.run("SC HEEEY INTERNATIONAL SRL", "36991028");

} catch (WebDriverException ex) {

ex.printStackTrace();
//driver.quit();
}

}

@BeforeClass
public static void setUpClass() throws Exception {

System.setProperty("webdriver.chrome.driver", "D:\\Proiecte\\selenium-java-2.47.1\\selenium-2.47.1\\chromedriver_win32\\chromedriver.exe");

ChromeOptions options = new ChromeOptions();

options.addArguments("--start-maximized");

driver = new ChromeDriver(options);

driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

driver.get(Constants.URLRoot);
}

@AfterClass
public static void tearDownClass() throws Exception {

driver.quit();
}

}
65 changes: 65 additions & 0 deletions HeeeyWebSite/Edge/AddProductEdge.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Edge;

import contentspeed.Constants;
import contentspeed.CosCumparaturi;
import contentspeed.ProdusCeaiIE11;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.edge.EdgeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

public class AddProductEdge {

static ProdusCeaiIE11 objProdus;

static CosCumparaturi objCos;

static WebDriver driver;

@Test
public void AdaugProdusLaCos() {

try {

objProdus = new ProdusCeaiIE11(driver);

objProdus.Actions("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9");

// objCos = new CosCumparaturi(driver);
// objCos.Completeaza("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9");
} catch (WebDriverException ex) {

ex.printStackTrace();
//driver.quit();
}
}

@BeforeClass
public static void setUpClass() throws Exception {

System.setProperty("webdriver.edge.driver", "D:\\Documentatie\\Selenium\\MicrosoftWebDriver16299.exe");
driver = new EdgeDriver();

driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

driver.manage().window().maximize();

driver.get(Constants.URLProdus);
}

@AfterClass
public static void tearDownClass() throws Exception {

driver.quit();
}


}
66 changes: 66 additions & 0 deletions HeeeyWebSite/Edge/ContactPageEdge.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Edge;

import contentspeed.Constants;
import contentspeed.ContactPage;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.edge.EdgeDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

/**
*
* @author andad
*/
public class ContactPageEdge {

public ContactPageEdge() {
}

static ContactPage objContactPage;

static WebDriver driver;

@Test
public void verifyContactPage() {

try {

objContactPage = new ContactPage(driver);
objContactPage.run("SC HEEEY INTERNATIONAL SRL", "36991028");

} catch (WebDriverException ex) {

ex.printStackTrace();
//driver.quit();
}

}

@BeforeClass
public static void setUpClass() throws Exception {

System.setProperty("webdriver.edge.driver", "D:\\Documentatie\\Selenium\\MicrosoftWebDriver16299.exe");
driver = new EdgeDriver();

driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

driver.manage().window().maximize();

driver.get(Constants.URLRoot);
}

@AfterClass
public static void tearDownClass() throws Exception {

driver.quit();
}

}
73 changes: 73 additions & 0 deletions HeeeyWebSite/Firefox/AddProductFirefox.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package Firefox;

import contentspeed.Constants;
import contentspeed.CosCumparaturi;
import contentspeed.ProdusCeai;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;
import org.testng.annotations.Test;

public class AddProductFirefox {

static ProdusCeai objProdus;

static CosCumparaturi objCos;

static WebDriver driver;

@Test
public void AdaugProdusLaCos() {

try {

objProdus = new ProdusCeai(driver);

objProdus.Actions("Anda", "Cristea", "andadeacu11@yahoo.com", "0741010736", "observatii test ", "Bucuresti", "Bucuresti", "strada Fericirii nr. 9");

//objCos = new CosCumparaturi(driver);
//objCos.Completeaza();
} catch (WebDriverException ex) {

ex.printStackTrace();
//driver.quit();
}
}

@BeforeClass
public static void setUpClass() throws Exception {

System.setProperty("webdriver.gecko.driver", "D:\\Documentatie\\Selenium\\geckodriver\\geckodriver.exe");
driver = new FirefoxDriver();

driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);

driver.manage().window().maximize();

driver.get(Constants.URLProdus);
}

@AfterClass
public static void tearDownClass() throws Exception {

driver.quit();
}

@BeforeMethod
public void setUpMethod() throws Exception {
}

@AfterMethod
public void tearDownMethod() throws Exception {
}
}
Loading