AutomationPracticeShop
There is a fake-store website for training automation tests. My goal is building a framework using Java and Selenium WebDriver. Besides, I use Page Object Model. Each page has a class in the PageObjects folder. Also, I use Selenium Grid to configure browsers version and their instances.
- Java
- Selenium WebDriver - version 3.141.59
- JUnit - version 5.3.2
First method:
- Clone project repository from GitHub: git clone https://github.com/igor27g/AutomationPracticeShop.git
- Open folder with project
- Open command line
- Write mvn -version in command line
- Write mvn install Tests should run.
Second method:
- Clone project repository from GitHub: git clone https://github.com/igor27g/AutomationPracticeShop.git
- Open folder with project
- Open project using Intellij
- Run tests using Intellij
@Test
public void addOneProductAndNotAcceptTerms()
{
HomePage homePage = new HomePage(driver).goTo(configuration.getBaseUrl());
ShippingPage shippingPage = homePage.addProductToCart().clickAddToCartButton().confirmSummary()
.logIn(email, password)
.buttonProccedClick()
.NotAcceptTermsAndButtonProccedClick();
Assertions.assertAll("Checking order summary",
() -> Assertions.assertEquals("You must agree to the terms of service before continuing."
, shippingPage.getTextAlert(), "Wrong text alert")
);
}
Project is: in progress