The following repo contains a barebone example for Selenium/Java test automation framework.
Run the example tests by:
-
Clone this repository
-
Load the release directory in IntelliJ
-
Run the /src/com/tests/tests_pages.java file
.
└── src
├── demo # demo classes
└── com # Component files
├── custom # Custom libraries
├── pages # Pages descriptions
└── tests # Tests files
Selected web driver by default is Chrome and it can be changed:
@BeforeTest
public void loadTheHomePage() throws InterruptedException {
pageHome = new page_home();
pageElements = new page_elements();
driver = new ChromeDriver();
driver.manage().window().maximize();
}The main task is to build similar framework, but for another web app with different structure and business logic i.e. you will have to:
- Explore the web app and make notes for its properties
- Think about the business logic, note what is important to test
- Prepare a list of test cases to be automated
- Build a framework to run the web tests
- Upload the solution in Git
Configure* the framework to be run from CI/CD tool i.e. JenkinsProvide a report - tests descriptions, run results, etc.
Mind that in order to configure a framework to be ran from CI/CD, it has to be uploaded in a Git repo.
Also you will have to install a local Jenkins instance, and then to configure it to run the repo.
- Level of difficulty: low
- Login data provided i.e. no need of registration and login tests
- Web app to be automated: https://robotsparebinindustries.com/
Please note that this is a demo project which is not yet complete
i.e. there are broken things in it!